]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Use update i18n command instead of generate
authorChocobozzz <me@florianbigard.com>
Mon, 24 Aug 2020 07:35:27 +0000 (09:35 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 24 Aug 2020 07:35:27 +0000 (09:35 +0200)
package.json
scripts/i18n/update.sh [moved from scripts/i18n/generate.sh with 90% similarity]
support/doc/development/localization.md

index 02c456e82536edb8b0e013bd5b04bc71620c4944..946b53018489fab7bdff05c46a1d7c0e2231d2da 100644 (file)
@@ -35,7 +35,7 @@
     "danger:clean:dev": "scripty",
     "danger:clean:prod": "scripty",
     "danger:clean:modules": "scripty",
-    "i18n:generate": "scripty",
+    "i18n:update": "scripty",
     "plugin:install": "node ./dist/scripts/plugin/install.js",
     "plugin:uninstall": "node ./dist/scripts/plugin/uninstall.js",
     "i18n:create-custom-files": "node ./dist/scripts/i18n/create-custom-files.js",
similarity index 90%
rename from scripts/i18n/generate.sh
rename to scripts/i18n/update.sh
index 0d1cd35c0ea15d5b13ee339c55cc9d7ff93f4220..916918f84c789780ebd3d65077950a77f2d4097e 100755 (executable)
@@ -2,6 +2,8 @@
 
 set -eu
 
+git fetch weblate && git merge weblate/develop
+
 npm run build -- --i18n
 
 cd client
index 626c0ff9f4616e7ebd0c0496ce1da6629242da47..3d09bbecbe018599ca1fe470015f34d57ff3c34f 100644 (file)
@@ -8,10 +8,8 @@ Source files are in `client/src/locale` and translated files merged from [Weblat
 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`).
 Then, it will merge new translation keys into localized Angular files (`angular.fr-FR.xlf` etc).
 
-**Only generate new translations after a Weblate pull to avoid conflicts**
-
 ```
-$ npm run i18n:generate
+$ npm run i18n:update
 ```