ecinc-cloud-mappaio 9.6.61 → 9.6.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/ecmappaio.common.js
CHANGED
|
@@ -272,13 +272,17 @@ function $tx(expression, variables, defaultText) {
|
|
|
272
272
|
debugger;
|
|
273
273
|
}
|
|
274
274
|
var text;
|
|
275
|
-
if ($scope.$te(expression)) {
|
|
275
|
+
if ($scope.$te && $scope.$te(expression)) {
|
|
276
276
|
text = $scope.$t(expression);
|
|
277
277
|
} else if (_typeof(variables) !== 'object') {
|
|
278
278
|
text = variables;
|
|
279
279
|
} else {
|
|
280
280
|
text = defaultText;
|
|
281
281
|
}
|
|
282
|
+
if (!$scope.$te) {
|
|
283
|
+
debugger;
|
|
284
|
+
console.log('$t', expression);
|
|
285
|
+
}
|
|
282
286
|
if (_typeof(variables) === 'object' && text) {
|
|
283
287
|
Object.keys(variables).forEach(function (key) {
|
|
284
288
|
text = text.replace('{' + key + '}', variables[key]);
|
package/lib/ecmappaio.umd.js
CHANGED
|
@@ -282,13 +282,17 @@ function $tx(expression, variables, defaultText) {
|
|
|
282
282
|
debugger;
|
|
283
283
|
}
|
|
284
284
|
var text;
|
|
285
|
-
if ($scope.$te(expression)) {
|
|
285
|
+
if ($scope.$te && $scope.$te(expression)) {
|
|
286
286
|
text = $scope.$t(expression);
|
|
287
287
|
} else if (_typeof(variables) !== 'object') {
|
|
288
288
|
text = variables;
|
|
289
289
|
} else {
|
|
290
290
|
text = defaultText;
|
|
291
291
|
}
|
|
292
|
+
if (!$scope.$te) {
|
|
293
|
+
debugger;
|
|
294
|
+
console.log('$t', expression);
|
|
295
|
+
}
|
|
292
296
|
if (_typeof(variables) === 'object' && text) {
|
|
293
297
|
Object.keys(variables).forEach(function (key) {
|
|
294
298
|
text = text.replace('{' + key + '}', variables[key]);
|