aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-24 09:35:27 +0200
committerChocobozzz <me@florianbigard.com>2020-08-24 09:35:27 +0200
commit49a56c72031802addffcaa8d6c374720d17e4d14 (patch)
treefc7738d9f42edbb6f5550951b2f8c47ee4710226
parent1e7eb457eda647b4fa22a0ae8e59c0a618f662f8 (diff)
downloadPeerTube-49a56c72031802addffcaa8d6c374720d17e4d14.tar.gz
PeerTube-49a56c72031802addffcaa8d6c374720d17e4d14.tar.zst
PeerTube-49a56c72031802addffcaa8d6c374720d17e4d14.zip
Use update i18n command instead of generate
-rw-r--r--package.json2
-rwxr-xr-xscripts/i18n/update.sh (renamed from scripts/i18n/generate.sh)2
-rw-r--r--support/doc/development/localization.md4
3 files changed, 4 insertions, 4 deletions
diff --git a/package.json b/package.json
index 02c456e82..946b53018 100644
--- a/package.json
+++ b/package.json
@@ -35,7 +35,7 @@
35 "danger:clean:dev": "scripty", 35 "danger:clean:dev": "scripty",
36 "danger:clean:prod": "scripty", 36 "danger:clean:prod": "scripty",
37 "danger:clean:modules": "scripty", 37 "danger:clean:modules": "scripty",
38 "i18n:generate": "scripty", 38 "i18n:update": "scripty",
39 "plugin:install": "node ./dist/scripts/plugin/install.js", 39 "plugin:install": "node ./dist/scripts/plugin/install.js",
40 "plugin:uninstall": "node ./dist/scripts/plugin/uninstall.js", 40 "plugin:uninstall": "node ./dist/scripts/plugin/uninstall.js",
41 "i18n:create-custom-files": "node ./dist/scripts/i18n/create-custom-files.js", 41 "i18n:create-custom-files": "node ./dist/scripts/i18n/create-custom-files.js",
diff --git a/scripts/i18n/generate.sh b/scripts/i18n/update.sh
index 0d1cd35c0..916918f84 100755
--- a/scripts/i18n/generate.sh
+++ b/scripts/i18n/update.sh
@@ -2,6 +2,8 @@
2 2
3set -eu 3set -eu
4 4
5git fetch weblate && git merge weblate/develop
6
5npm run build -- --i18n 7npm run build -- --i18n
6 8
7cd client 9cd client
diff --git a/support/doc/development/localization.md b/support/doc/development/localization.md
index 626c0ff9f..3d09bbecb 100644
--- a/support/doc/development/localization.md
+++ b/support/doc/development/localization.md
@@ -8,10 +8,8 @@ Source files are in `client/src/locale` and translated files merged from [Weblat
8Will generate XLIFF base files for Angular (`angular.xlf`) and JSON files for the player (`player.en-US.json`) and the server (`server.en-US.json`). 8Will generate XLIFF base files for Angular (`angular.xlf`) and JSON files for the player (`player.en-US.json`) and the server (`server.en-US.json`).
9Then, it will merge new translation keys into localized Angular files (`angular.fr-FR.xlf` etc). 9Then, it will merge new translation keys into localized Angular files (`angular.fr-FR.xlf` etc).
10 10
11**Only generate new translations after a Weblate pull to avoid conflicts**
12
13``` 11```
14$ npm run i18n:generate 12$ npm run i18n:update
15``` 13```
16 14
17 15