mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Format xliff files
This commit is contained in:
parent
af859056da
commit
f85e1a57d4
65 changed files with 579114 additions and 241021 deletions
|
@ -14,6 +14,14 @@ locales=$(find src/locale -type f | grep -e 'angular\.[^.]\+\.xlf' | sed 's#^src
|
|||
# Merge new translations in other language files
|
||||
node ./node_modules/.bin/xliffmerge -p ./.xliffmerge.json $locales
|
||||
|
||||
(
|
||||
cd src/locale
|
||||
|
||||
for file in angular.*.xlf; do
|
||||
xmllint --format $file > "$file.tmp" && mv "$file.tmp" "$file"
|
||||
done
|
||||
)
|
||||
|
||||
# Add our strings too
|
||||
cd ../
|
||||
npm run i18n:create-custom-files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue