diff options
Diffstat (limited to 'scripts/i18n')
-rwxr-xr-x | scripts/i18n/pull-hook.sh | 3 | ||||
-rwxr-xr-x | scripts/i18n/xliff2json.ts | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh index 3d57040cc..3a8394110 100755 --- a/scripts/i18n/pull-hook.sh +++ b/scripts/i18n/pull-hook.sh | |||
@@ -9,4 +9,5 @@ for i in 1 2 3; do | |||
9 | perl -pi -e 's|<x id=(.+?)/>([^"])|<x id=\1/>\2|g' client/src/locale/target/*.xml | 9 | perl -pi -e 's|<x id=(.+?)/>([^"])|<x id=\1/>\2|g' client/src/locale/target/*.xml |
10 | done | 10 | done |
11 | 11 | ||
12 | npm run i18n:xliff2json \ No newline at end of file | 12 | npm run i18n:xliff2json |
13 | |||
diff --git a/scripts/i18n/xliff2json.ts b/scripts/i18n/xliff2json.ts index 17c73181b..ed6854514 100755 --- a/scripts/i18n/xliff2json.ts +++ b/scripts/i18n/xliff2json.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import * as xliff12ToJs from 'xliff/xliff12ToJs' | 1 | import * as xliff12ToJs from 'xliff/xliff12ToJs' |
2 | import { readFile, readFileSync, unlink, writeFile } from 'fs' | 2 | import { readFileSync, unlink, writeFile } from 'fs' |
3 | import { join } from 'path' | 3 | import { join } from 'path' |
4 | import { buildFileLocale, I18N_LOCALES, isDefaultLocale } from '../../shared/models/i18n/i18n' | 4 | import { buildFileLocale, I18N_LOCALES, isDefaultLocale } from '../../shared/models/i18n/i18n' |
5 | import { eachSeries } from 'async' | 5 | import { eachSeries } from 'async' |