aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GlobalClass
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-03-04 23:51:41 +0100
committer GitHub <noreply@github.com>2024-03-04 23:51:41 +0100
commiteaae420cd2aca224d15f6276624c2fab882c978a (patch)
treebacc8f4094eff5514a94b3852e9cec9c28391669 /game/src/Game/GlobalClass
parent521f7d3d156f42535fb7574fb36f2726e9d13885 (diff)
parente2077a0d93be8b2dd48f1ee680809420f1f690d7 (diff)
Merge pull request #211 from OpenVicProject/for-loop-types
Add types to GDScript for-loop variables
Diffstat (limited to 'game/src/Game/GlobalClass')
-rw-r--r--game/src/Game/GlobalClass/Localisation.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/src/Game/GlobalClass/Localisation.gd b/game/src/Game/GlobalClass/Localisation.gd
index 78afb69..25232ef 100644
--- a/game/src/Game/GlobalClass/Localisation.gd
+++ b/game/src/Game/GlobalClass/Localisation.gd
@@ -4,12 +4,12 @@ extends RefCounted
# REQUIREMENTS
# * SS-59, SS-60, SS-61
static func get_default_locale() -> String:
- var locales := TranslationServer.get_loaded_locales()
+ var locales : PackedStringArray = TranslationServer.get_loaded_locales()
var default_locale := OS.get_locale()
if default_locale in locales:
return default_locale
var default_language := OS.get_locale_language()
- for locale in locales:
+ for locale : String in locales:
if locale.begins_with(default_language):
return default_language
return ProjectSettings.get_setting("internationalization/locale/fallback", "en_GB")