Skip to content

Commit

Permalink
fix: fixed the issue that the Bluetooth translation in traditional Ch…
Browse files Browse the repository at this point in the history
…inese is not merged into the overall traditional Chinese translation

Fix the issue that the Bluetooth translation in traditional Chinese is not merged into the overall traditional Chinese translation

Signed-off-by: GL.iNet-RenBo.Xu <[email protected]>
  • Loading branch information
XuRenBo committed Jul 30, 2024
1 parent f8f12a6 commit dbfdf67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build-langs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ merge_lang() {
files=$(ls "$path"/*.json)
for file in $files; do
filename=$(basename "$file" .json)
if [ "$filename" == "zh_Hant" ]; then
filename="zh-tw"
fi
output_file="$output_folder/release.$filename.json"
if [ -f "$output_file" ]; then
merged_json=$(jq -s 'reduce .[] as $item ({}; . * $item)' "$output_file" "$file")
Expand Down

0 comments on commit dbfdf67

Please sign in to comment.