angular-filemanager
angular-filemanager copied to clipboard
break translation provided via partial loader
Seems to break translation provided via partial loader
I'm trying to use angular-filemanager in a single page application. The entry point module of my application configure angular translate in this way:
angular.config(["$translateProvider", "$translatePartialLoaderProvider",function($tp,$tpl){ $tp.useLoader('$translatePartialLoader', {urlTemplate: '{part}{lang}.json'}) .useSanitizeValueStrategy('escapeParameters') .preferredLanguage("it") .fallbackLanguage(["it"]) .useLocalStorage(); }]) ;
Each module add partial using:
$tpl.addPart('path/to/module/lang/local-');
Taking a look at ajax requests partials are never downloaded. Commenting inject of "FileManagerApp" module everything works.
Hi.. Can you write more details about it? And examples if possible
Hi, I'm using angular-filmanager as explained on README.md file, in an existing project where I use angular-translate (pascalprecht.translate module). My project is a SPA composed by a lot of angular modules. Each of these angular modules has its own translations in a json file loaded via partial loader.
More about partialLoader is available here: https://angular-translate.github.io/docs/#/guide/12_asynchronous-loading. When partialLoader works I can see from network panel of browser all the the ajax requests to json files containing partial translations. Injecting FileManagerApp, json files are not downloaded.
I just solved avoiding partialLoader, but it's not a true solution.
+1
Same problem here.