You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
I refreshed my browser and the page translation was not updated immediately. I use angular-translate-loader-static-files to introduce the JSON language package. The page is to create filters to internationalize the content of Html pages. Here is my code.
index.html:
angular.module('admin', ['pascalprecht.translate'])
.config(['$translateProvider',function($translateProvider){
let version = za.config.version || (new Date()).getTime();
var _domain= za.config.template_url;
var lang = LANG || 'cn';
console.log("lang..i8n ",lang);
$translateProvider.preferredLanguage(lang);
$translateProvider.useStaticFilesLoader({
prefix: `${_domain}/i18n/`,
suffix: '.json' + '?v=' + version
});
$translateProvider.useSanitizeValueStrategy('escape');
}]);
Subject of the issue
Describe your issue here.
Your environment
Steps to reproduce
I refreshed my browser and the page translation was not updated immediately. I use angular-translate-loader-static-files to introduce the JSON language package. The page is to create filters to internationalize the content of Html pages. Here is my code.
index.html:
app.js:
TranslateFilter.js:
error.html:
Tell us how to reproduce this issue. Please provide a working demo, you can use this template as a base.
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead
The text was updated successfully, but these errors were encountered: