aboutsummaryrefslogblamecommitdiffhomepage
path: root/scripts/i18n/update.sh
blob: f42d8d38ac55df01360200cf431ce38428ba683f (plain) (tree)
1
2
3
4
5
6
7
8
9



         

                                              

                       
         

                                                                                                                  

                                                


                     
                                
#!/bin/sh

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

# Merge new translations in other language files
npm run ng run -- PeerTube:xliffmerge

# Add our strings too
cd ../
npm run i18n:create-custom-files