diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-19 14:02:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-19 14:02:57 +0200 |
commit | 9c2e0dbfa9098675390e00ccb0fa49c51b3c6732 (patch) | |
tree | de2b894e0ba439bb012b895cc86d90b892eead7b /scripts | |
parent | 3aa5cea8fec998805e32c0480884906d8e4fd490 (diff) | |
download | PeerTube-9c2e0dbfa9098675390e00ccb0fa49c51b3c6732.tar.gz PeerTube-9c2e0dbfa9098675390e00ccb0fa49c51b3c6732.tar.zst PeerTube-9c2e0dbfa9098675390e00ccb0fa49c51b3c6732.zip |
Update iso639 translations for french and deutch
Diffstat (limited to 'scripts')
-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' |