diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-24 09:35:27 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-24 09:35:27 +0200 |
commit | 49a56c72031802addffcaa8d6c374720d17e4d14 (patch) | |
tree | fc7738d9f42edbb6f5550951b2f8c47ee4710226 | |
parent | 1e7eb457eda647b4fa22a0ae8e59c0a618f662f8 (diff) | |
download | PeerTube-49a56c72031802addffcaa8d6c374720d17e4d14.tar.gz PeerTube-49a56c72031802addffcaa8d6c374720d17e4d14.tar.zst PeerTube-49a56c72031802addffcaa8d6c374720d17e4d14.zip |
Use update i18n command instead of generate
-rw-r--r-- | package.json | 2 | ||||
-rwxr-xr-x | scripts/i18n/update.sh (renamed from scripts/i18n/generate.sh) | 2 | ||||
-rw-r--r-- | support/doc/development/localization.md | 4 |
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 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | git fetch weblate && git merge weblate/develop | ||
6 | |||
5 | npm run build -- --i18n | 7 | npm run build -- --i18n |
6 | 8 | ||
7 | cd client | 9 | cd 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 | |||
8 | Will 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`). | 8 | Will 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`). |
9 | Then, it will merge new translation keys into localized Angular files (`angular.fr-FR.xlf` etc). | 9 | Then, 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 | ||