]> git.p6c8.net - jirafeau_project.git/blob - lib/locales/rename.sh
Translated using Weblate (Slovak)
[jirafeau_project.git] / lib / locales / rename.sh
1 #!/bin/bash
2 original_id=$1
3 new_id=$2
4 if [ -z "$original_id" ] || [ -z "$new_id" ] ; then
5 echo "arguments: [OLD_ID] [NEW_ID]"
6 exit 1
7 fi
8 locales_dir=$(cd "$(dirname $0)" && pwd)
9 o="\"$original_id\":"
10 i="\"$new_id\":"
11 find . -type f -name "*.json" -print0 | xargs -0 sed -i "s/$o/$i/g"
12

patrick-canterino.de