Home Ask Login Register

Developers Planet

Your answer is one click away!

Barzull February 2016

Angular translate multiple json files

i'm working on an mobile app with Angular Cordova and Ionic. I want to use in my app multiple traduction files. Like :

  • menu-fr.json
  • faq-fr.json
  • local-fr.json

i'm using this code :

$translateProvider.useStaticFilesLoader({
        prefix: 'main/i18n/local-',
        suffix: '.json'
    });

My question is how to load multiple files ? i searched a lot , but i found nothing.

Thanks in advance

Post Status

Asked in February 2016
Viewed 3,354 times
Voted 14
Answered 1 times

Search




Leave an answer


Quote of the day: live life