1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Change update_language_files.sh script to rename pt-PT to pt

This commit is contained in:
Stefan Haller
2025-02-10 09:36:53 +01:00
parent 20fe43f972
commit 555ab8735a

View File

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