angular-filemanager icon indicating copy to clipboard operation
angular-filemanager copied to clipboard

break translation provided via partial loader

Open slillo opened this issue 8 years ago • 4 comments
trafficstars

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.

slillo avatar Feb 22 '17 18:02 slillo

Hi.. Can you write more details about it? And examples if possible

joni2back avatar Mar 16 '17 12:03 joni2back

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.

slillo avatar Mar 16 '17 14:03 slillo

+1

ayZagen avatar May 04 '17 11:05 ayZagen

Same problem here.

carlosrc avatar Nov 05 '17 12:11 carlosrc