From 7ae56f38349a7cd8ec54ccda39d3b97f5c3cc369 Mon Sep 17 00:00:00 2001 From: "GL.iNet-RenBo.Xu" Date: Tue, 30 Jul 2024 17:59:30 +0800 Subject: [PATCH] fix: fixed the problem of irregular naming in Simplified Chinese Fixed the problem of irregular naming in Simplified Chinese Signed-off-by: GL.iNet-RenBo.Xu --- build-langs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-langs.sh b/build-langs.sh index c74c029ea..251ee6ce2 100755 --- a/build-langs.sh +++ b/build-langs.sh @@ -19,6 +19,9 @@ merge_lang() { if [ "$filename" == "zh_Hant" ]; then filename="zh-tw" fi + if [ "$filename" == "zh_Hans" ]; then + filename="zh-cn" + fi output_file="$output_folder/release.$filename.json" if [ -f "$output_file" ]; then merged_json=$(jq -s 'reduce .[] as $item ({}; . * $item)' "$output_file" "$file")