angular-translate / angular-translate/grunt-angular-translate
Multiple languages, default translations in JSON files
- Lingua principale
- JavaScript
- Stelle
- 90
- Fork
- 49
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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**;
``` javascript
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?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.