translation improvements

This commit is contained in:
fschade
2026-08-31 13:03:24 +02:00
parent 2a6f2b0e52
commit 520a3dce25
19 changed files with 1457 additions and 55 deletions
+13
View File
@@ -11,3 +11,16 @@ var player_name = "Spieler1"
var chatbot_opened = false
var balloon_collected = false
var resource_balloon = ""
var locale := ""
func _ready() -> void:
if locale.is_empty():
var os_lang := OS.get_locale_language()
locale = "de" if os_lang == "de" else "en"
apply_locale(locale)
func apply_locale(new_locale: String) -> void:
locale = new_locale
TranslationServer.set_locale(locale)