Localization concept added

This commit is contained in:
Your Name
2025-07-20 16:41:54 +04:00
parent 688106eedd
commit b1e79492ab
13 changed files with 95 additions and 21 deletions

View File

@@ -0,0 +1,11 @@
extends Node
func _ready():
# Set default locale if not already set
if TranslationServer.get_locale() == "":
TranslationServer.set_locale("en")
func change_language(locale: String):
TranslationServer.set_locale(locale)
# Signal to update UI elements
get_tree().call_group("localizable", "update_text")