aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/i18n
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-10-21 17:13:07 +0200
committerChocobozzz <me@florianbigard.com>2019-10-21 17:13:22 +0200
commit2aaa1a3fdc49be77aec5309dab5507865c38d392 (patch)
treebc83c5b1ff49faf03461c78a110e0a5613343c31 /scripts/i18n
parent576ddf645ff2223126d28ef172bb6388602c35f4 (diff)
downloadPeerTube-2aaa1a3fdc49be77aec5309dab5507865c38d392.tar.gz
PeerTube-2aaa1a3fdc49be77aec5309dab5507865c38d392.tar.zst
PeerTube-2aaa1a3fdc49be77aec5309dab5507865c38d392.zip
Use typescript paths in cli scripts too
Diffstat (limited to 'scripts/i18n')
-rwxr-xr-xscripts/i18n/create-custom-files.ts3
-rwxr-xr-xscripts/i18n/xliff2json.ts3
2 files changed, 6 insertions, 0 deletions
diff --git a/scripts/i18n/create-custom-files.ts b/scripts/i18n/create-custom-files.ts
index 95897afa3..e946b8fd6 100755
--- a/scripts/i18n/create-custom-files.ts
+++ b/scripts/i18n/create-custom-files.ts
@@ -1,3 +1,6 @@
1import { registerTSPaths } from '../../server/helpers/register-ts-paths'
2registerTSPaths()
3
1import * as jsToXliff12 from 'xliff/jsToXliff12' 4import * as jsToXliff12 from 'xliff/jsToXliff12'
2import { writeFile } from 'fs-extra' 5import { writeFile } from 'fs-extra'
3import { join } from 'path' 6import { join } from 'path'
diff --git a/scripts/i18n/xliff2json.ts b/scripts/i18n/xliff2json.ts
index 7e6de2893..68fc95f34 100755
--- a/scripts/i18n/xliff2json.ts
+++ b/scripts/i18n/xliff2json.ts
@@ -1,3 +1,6 @@
1import { registerTSPaths } from '../../server/helpers/register-ts-paths'
2registerTSPaths()
3
1import * as xliff12ToJs from 'xliff/xliff12ToJs' 4import * as xliff12ToJs from 'xliff/xliff12ToJs'
2import { readFileSync, unlink, writeFile } from 'fs-extra' 5import { readFileSync, unlink, writeFile } from 'fs-extra'
3import { join } from 'path' 6import { join } from 'path'