Skip to content

Commit 555ab87

Browse files
committed
Change update_language_files.sh script to rename pt-PT to pt
1 parent 20fe43f commit 555ab87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/update_language_files.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ fi
1818

1919
download_dir="$1"
2020

21+
# The Portuguese translation is named pt-PT, but we want to use pt instead (it
22+
# is used both for Brasilian and European Portuguese). I couldn't figure out how
23+
# to change this in Crowdin, so we'll do it here.
24+
[ -d "$download_dir/pt-PT" ] && mv "$download_dir/pt-PT" "$download_dir/pt"
25+
2126
for d in "$download_dir"/*
2227
do
2328
# We need to remove empty strings from the JSON files; those are the ones

0 commit comments

Comments
 (0)