javascript - Angular translate multiple json files -


i'm working on mobile app angular cordova , ionic. want use in app multiple traduction files. :

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

i'm using code :

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

my question how load multiple files ? searched lot , found nothing.

thanks in advance

you can use partial loader : https://github.com/angular-translate/bower-angular-translate-loader-partial

see how best organize translation strings in angular-translate? sample code


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -