Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
angular-translate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Custom Issue Tracker
Custom Issue Tracker
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
angularjs
angular-translate
Commits
c9ee10f9
You need to sign in or sign up before continuing.
Commit
c9ee10f9
authored
Mar 21, 2021
by
吕兵川
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev]version 2.18.4
parent
b1ecca63
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
angular-translate.js
angular-translate.js
+12
-4
No files found.
angular-translate.js
View file @
c9ee10f9
...
@@ -2051,8 +2051,9 @@ function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvide
...
@@ -2051,8 +2051,9 @@ function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvide
if
(
translation
.
substr
(
0
,
2
)
===
'@:'
)
{
if
(
translation
.
substr
(
0
,
2
)
===
'@:'
)
{
result
=
determineTranslationInstant
(
translation
.
substr
(
2
),
interpolateParams
,
interpolationId
,
uses
,
sanitizeStrategy
);
result
=
determineTranslationInstant
(
translation
.
substr
(
2
),
interpolateParams
,
interpolationId
,
uses
,
sanitizeStrategy
);
}
else
{
}
else
{
result
=
Interpolator
.
interpolate
(
translation
,
interpolateParams
,
'filter'
,
sanitizeStrategy
,
translationId
);
// result = Interpolator.interpolate(translation, interpolateParams, 'filter', sanitizeStrategy, translationId);
result
=
applyPostProcessing
(
translationId
,
translation
,
result
,
interpolateParams
,
uses
,
sanitizeStrategy
);
//result = applyPostProcessing(translationId, translation, result, interpolateParams, uses, sanitizeStrategy);
result
=
translation
;
}
}
}
else
{
}
else
{
var
missingTranslationHandlerTranslation
;
var
missingTranslationHandlerTranslation
;
...
@@ -3741,10 +3742,17 @@ function translateFilterFactory($parse, $translate) {
...
@@ -3741,10 +3742,17 @@ function translateFilterFactory($parse, $translate) {
var
ctx
=
this
||
{
var
ctx
=
this
||
{
'__SCOPE_IS_NOT_AVAILABLE'
:
'More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f'
'__SCOPE_IS_NOT_AVAILABLE'
:
'More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f'
};
};
interpolateParams
=
$parse
(
interpolateParams
)(
ctx
)
;
interpolateParams
=
$parse
(
interpolateParams
)(
ctx
)
}
}
if
(
translationId
){
if
(
translationId
.
indexOf
(
"."
)
>
0
){
return
$translate
.
instant
(
translationId
,
interpolateParams
,
interpolation
,
forceLanguage
);
return
$translate
.
instant
(
translationId
,
interpolateParams
,
interpolation
,
forceLanguage
);
}
else
{
return
translationId
;
}
}
// return $translate.instant(translationId, interpolateParams, interpolation, forceLanguage);
};
};
if
(
$translate
.
statefulFilter
())
{
if
(
$translate
.
statefulFilter
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment