X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fi18n%2Fupdate.sh;h=cc22050793a1756c6d4cc411755cee79b1b0a087;hb=458685e0d039a0ad3fa4f26d99746f7d6d0b40e9;hp=916918f84c789780ebd3d65077950a77f2d4097e;hpb=49a56c72031802addffcaa8d6c374720d17e4d14;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/i18n/update.sh b/scripts/i18n/update.sh index 916918f84..cc2205079 100755 --- a/scripts/i18n/update.sh +++ b/scripts/i18n/update.sh @@ -4,16 +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 - -# Workaround of https://github.com/angular/angular/issues/38437 -sed -i 's/other {{INTERPOLATION}/other {/g' 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" "hr" "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" "tok" # Add our strings too cd ../