angular-translate / angular-translate/grunt-angular-translate

Multiple languages, default translations in JSON files

Aberta
#65 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
90
Forks
49
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.