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

Multiple languages, default translations in JSON files

未關閉
#65 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
90
分支
49
PR 合併指標
30 天內沒有已合併 PR

描述

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?

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。