aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/i18n
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-19 14:02:57 +0200
committerChocobozzz <me@florianbigard.com>2018-06-19 14:02:57 +0200
commit9c2e0dbfa9098675390e00ccb0fa49c51b3c6732 (patch)
treede2b894e0ba439bb012b895cc86d90b892eead7b /scripts/i18n
parent3aa5cea8fec998805e32c0480884906d8e4fd490 (diff)
downloadPeerTube-9c2e0dbfa9098675390e00ccb0fa49c51b3c6732.tar.gz
PeerTube-9c2e0dbfa9098675390e00ccb0fa49c51b3c6732.tar.zst
PeerTube-9c2e0dbfa9098675390e00ccb0fa49c51b3c6732.zip
Update iso639 translations for french and deutch
Diffstat (limited to 'scripts/i18n')
-rwxr-xr-xscripts/i18n/pull-hook.sh3
-rwxr-xr-xscripts/i18n/xliff2json.ts2
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|&lt;x id=(.+?)/&gt;([^"])|<x id=\1/>\2|g' client/src/locale/target/*.xml 9 perl -pi -e 's|&lt;x id=(.+?)/&gt;([^"])|<x id=\1/>\2|g' client/src/locale/target/*.xml
10done 10done
11 11
12npm run i18n:xliff2json \ No newline at end of file 12npm 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 @@
1import * as xliff12ToJs from 'xliff/xliff12ToJs' 1import * as xliff12ToJs from 'xliff/xliff12ToJs'
2import { readFile, readFileSync, unlink, writeFile } from 'fs' 2import { readFileSync, unlink, writeFile } from 'fs'
3import { join } from 'path' 3import { join } from 'path'
4import { buildFileLocale, I18N_LOCALES, isDefaultLocale } from '../../shared/models/i18n/i18n' 4import { buildFileLocale, I18N_LOCALES, isDefaultLocale } from '../../shared/models/i18n/i18n'
5import { eachSeries } from 'async' 5import { eachSeries } from 'async'