Files
godot-demo-projects/gui/translation/main.gd
2025-10-02 16:39:50 -07:00

14 lines
262 B
GDScript

extends Panel
func _on_english_pressed():
TranslationServer.set_locale("en")
func _on_spanish_pressed():
TranslationServer.set_locale("es")
func _on_japanese_pressed():
TranslationServer.set_locale("ja")
func _on_play_pressed():
get_node("audio").play()