]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/i18n/update.sh
Update translations
[github/Chocobozzz/PeerTube.git] / scripts / i18n / update.sh
index 916918f84c789780ebd3d65077950a77f2d4097e..4d3e9af17d013c98f76cc3282c9b1e549344516a 100755 (executable)
@@ -4,13 +4,8 @@ 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 {<x id="INTERPOLATION"\/>/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