summaryrefslogtreecommitdiff
path: root/sync_translations.sh
blob: ae61df1c1acc7a05900e9c4ca806e44dca6fbd58 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# This should be run when the source code is updated

go generate ./...
files=$(find client/locales -iname "out.gotext.json")
for f in $files
do
    dir=$(dirname $f)
    cp "$f" "$dir"/messages.gotext.json
done