X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fi18n%2Fupdate.sh;h=4cf0d65b742ecce4aa429278bddd1c626c097fae;hb=6348fb18840c912e107cfbc0f51d1c440b9c1cba;hp=f42d8d38ac55df01360200cf431ce38428ba683f;hpb=ed78004086f4feec748554b26b69dcfe7b2cc9e8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/i18n/update.sh b/scripts/i18n/update.sh index f42d8d38a..4cf0d65b7 100755 --- a/scripts/i18n/update.sh +++ b/scripts/i18n/update.sh @@ -4,13 +4,11 @@ set -eu git fetch weblate && git merge weblate/develop -npm run build -- --i18n - cd client -./node_modules/.bin/localize-extract -r . -f xliff --locale "en-US" -s 'dist/en-US/*.js' -o src/locale/angular.xlf +npm run ng -- extract-i18n --out-file src/locale/angular.xlf # Merge new translations in other language files -npm run ng run -- PeerTube:xliffmerge +node ./node_modules/.bin/xliffmerge -p ./.xliffmerge.json "ar" "ca-ES" "gl-ES" "cs-CZ" "da-DK" "de-DE" "el-GR" "en-GB" "en-US" "eo" "es-ES" "eu-ES" "fa-IR" "fi-FI" "fr-FR" "gd" "gl-ES" "hu-HU" "it-IT" "ja-JP" "jbo" "kab" "ko-KR" "lt-LT" "nb-NO" "nl-NL" "oc" "pl-PL" "pt-BR" "pt-PT" "ru-RU" "sk-SK" "sl-SI" "sv-SE" "ta" "th-TH" "tr-TR" "uk-UA" "vi-VN" "zh-Hans-CN" "zh-Hant-TW" "nn" "nb-NO" # Add our strings too cd ../