2025-01-08 14:08:37 +00:00
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
func _ready() -> void:
|
|
|
|
print("loaded_locales:", TranslationServer.get_loaded_locales())
|
|
|
|
print("locale:", TranslationServer.get_locale())
|
2025-01-10 09:53:12 +00:00
|
|
|
print(tr("阅读"))
|
|
|
|
print(tr("阅读"))
|
|
|
|
print(tr("c02_张胖子_招呼吕萍5"))
|
2025-01-08 14:08:37 +00:00
|
|
|
TranslationServer.set_locale("en")
|
|
|
|
print("locale:", TranslationServer.get_locale())
|
2025-01-10 09:53:12 +00:00
|
|
|
print(tr("ui_阅读"))
|
|
|
|
print(tr("c02_张胖子_招呼吕萍5"))
|
|
|
|
|