1.0.0-beta.23 • Published 1 year ago
xlf-google-translate v1.0.0-beta.23
Deprecated, not supporting translation anymore since v1.0.0-beta.22
xlf-google-translate
It translates the Angular 2 i18n output with google translate
Features
It uses a *.xlf
file as an input and translates the source
tags of the xml with google translate and appends them to the xml as target
.
It can extend existing translations. A good feature if new/additional text appear in the app.
Usage
1) Run npm run build
2) Edit the config.js
to match your requirements
3) Run npm run start
and your files will be created
config example:
{
//source data and it language
"source": {
"lang": "en",
"file": ".../messages.xlf"
},
//desitnation folder and the laguages to translate
"destination": {
"folder": ".../src/locale",
"languages": ["hu","de"],
"filename": "messages"
},
//if extend, it does not override the already trasnlated parts
"method": "extend",
//replaces all line breaks, whitespaces with a single space
"formatOutput": true
}
known bugs:
Can't handle variable in the source
1.0.0-beta.23
1 year ago
1.0.0-beta.22
3 years ago
1.0.0-beta.20
3 years ago
1.0.0-beta.21
3 years ago
1.0.0-beta.19
4 years ago
1.0.0-beta.18
4 years ago
1.0.0-beta.17
4 years ago
1.0.0-beta.16
5 years ago
1.0.0-beta.15
5 years ago
1.0.0-beta.14
5 years ago
1.0.0-beta.13
5 years ago
1.0.0-beta.12
6 years ago
1.0.0-beta.11
6 years ago
1.0.0-beta.10
6 years ago
1.0.0-beta.9
6 years ago
1.0.0-beta.8
6 years ago
1.0.0-beta.7
6 years ago
1.0.0-beta.6
6 years ago
1.0.0-beta.5
6 years ago
1.0.0-beta.4
6 years ago
1.0.0-beta.3
6 years ago
1.0.0-beta.2
6 years ago
1.0.0-beta
6 years ago