diff --git a/Scripts/Dialogs/PreferencesDialog.gd b/Scripts/Dialogs/PreferencesDialog.gd index c9c69f61c..606a8cc08 100644 --- a/Scripts/Dialogs/PreferencesDialog.gd +++ b/Scripts/Dialogs/PreferencesDialog.gd @@ -66,7 +66,7 @@ func _on_Language_pressed(button : Button) -> void: else: TranslationServer.set_locale(Global.loaded_locales[index]) - if TranslationServer.get_locale() == "zh_TW": + if "zh" in TranslationServer.get_locale(): Global.control.theme.default_font = preload("res://Assets/Fonts/NotoSansCJKtc-Regular.tres") else: Global.control.theme.default_font = preload("res://Assets/Fonts/Roboto-Regular.tres") diff --git a/Scripts/Main.gd b/Scripts/Main.gd index d99c816e9..e2ca454ba 100644 --- a/Scripts/Main.gd +++ b/Scripts/Main.gd @@ -93,7 +93,7 @@ func _ready() -> void: else: # If the user doesn't have a language preference, set it to their OS' locale TranslationServer.set_locale(OS.get_locale()) - if TranslationServer.get_locale() == "zh_TW": + if "zh" in TranslationServer.get_locale(): theme.default_font = preload("res://Assets/Fonts/NotoSansCJKtc-Regular.tres") else: theme.default_font = preload("res://Assets/Fonts/Roboto-Regular.tres")