wir.social/tools/merge-locales.sh
2022-10-12 15:33:07 +02:00

11 lines
251 B
Bash
Executable File

#!/bin/bash
for locale in `ls locales/*.json`;
do
file = basename $locale;
if [ -f locales/tmp/$file ]; then
jq -s '.[0] * .[1]' $locale locales/tmp/$file > locales/tmp/tmp.json;
mv locales/tmp/tmp.json $locale;
fi;
done;