ActivityPub-federated video streaming platform using P2P directly in your web browser
Use update i18n command instead of generate
Chocobozzz49a56c720318
diff --git a/package.json b/package.jsonindex 02c456e825..946b530184 100644--- a/package.json+++ b/package.json@@ -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",diff --git a/scripts/i18n/generate.sh b/scripts/i18n/update.shsimilarity index 90%rename from scripts/i18n/generate.shrename to scripts/i18n/update.shindex 0d1cd35c0e..916918f84c 100755--- a/scripts/i18n/generate.sh+++ b/scripts/i18n/update.sh@@ -2,6 +2,8 @@set -eu+git fetch weblate && git merge weblate/develop+npm run build -- --i18ncd clientdiff --git a/support/doc/development/localization.md b/support/doc/development/localization.mdindex 626c0ff9f4..3d09bbecbe 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 [WeblatWill 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```