Skip to content

Commit 2dd953e

Browse files
committedJan 18, 2019
support for various file accessors
1 parent e40e5d2 commit 2dd953e

File tree

48 files changed

+539
-209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+539
-209
lines changed
 

‎angular.json

+17
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,23 @@
391391
"**/node_modules/**"
392392
]
393393
}
394+
},
395+
"xliffmerge": {
396+
"builder": "./dist/tooling:xliffmerge",
397+
"options": {
398+
"xliffmergeOptions": {
399+
"srcDir": "projects/tiny-translator/src/i18n",
400+
"genDir": "projects/tiny-translator/src/i18n",
401+
"autotranslate": ["fr-google"],
402+
"apikeyfile": "projects/tiny-translator/googleTranslateApiKey.txt",
403+
"languages": [
404+
"en",
405+
"de",
406+
"fr-google",
407+
"ru-google"
408+
]
409+
}
410+
}
394411
}
395412
}
396413
},

‎projects/tiny-translator/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test": "ng test tiny-translator",
1111
"lint": "ng lint tiny-translator",
1212
"e2e": "ng e2e tiny-translator",
13-
"extract-i18n": "ng xi18n tiny-translator --output-path src/i18n --i18n-locale en && xliffmerge --profile xliffmerge.json en de fr-google ru-google",
13+
"extract-i18n": "ng xi18n tiny-translator --output-path src/i18n --i18n-locale en && ng run tiny-translator:xliffmerge",
1414
"start-en": "ng serve tiny-translator --configuration=en",
1515
"start-de": "ng serve tiny-translator --configuration=de",
1616
"start-fr": "ng serve tiny-translator --configuration=fr",

0 commit comments

Comments
 (0)