grunt-angular-translate
grunt-angular-translate copied to clipboard
Multiple languages, default translations in JSON files
Hi,
I have an angular app that needs to have multiple language translations. I have setup angular translate task as follows. What I want to create is a different language file which I load later using useStaticFilesLoader;
i18nextract: {
default_options: {
jsonSrc: ['<%= srcdir %>/i18n/*.json'],
src: [ '<%= src.js %>', '<%= src.html %>'],
lang: ['ro', 'en', 'fr', 'pl', 'de'],
dest: '<%= distdir %>/i18n'
}
}
In srcdir there are multiple language files with original translations, to use them as a source: Unfortunately, the result doesn't load the translation
Also tried passing source: ['<%= srcdir %>/i18n/*.json'], and jsonSrc: {"ro":'<%= srcdir %>/i18n/ro.json', "de":'<%= srcdir %>/i18n/de.json'}, without any luck.
Is there an option I'm missing?