fix(creditos): Default language.
This commit is contained in:
@@ -5,11 +5,13 @@ signal finished
|
|||||||
|
|
||||||
var has_ended = false
|
var has_ended = false
|
||||||
|
|
||||||
|
var _default_language = "es_ES"
|
||||||
|
|
||||||
func _enter_tree() -> void:
|
func _enter_tree() -> void:
|
||||||
var current_locale = TranslationServer.get_locale()
|
var current_locale = TranslationServer.get_locale()
|
||||||
%Titles.text = titles[current_locale]
|
|
||||||
%Names.text = names[current_locale]
|
%Titles.text = titles[current_locale] if titles.has(current_locale) else titles[_default_language]
|
||||||
|
%Names.text = names[current_locale] if names.has(current_locale) else names[_default_language]
|
||||||
pass # Replace with function body.
|
pass # Replace with function body.
|
||||||
|
|
||||||
func _process(_delta):
|
func _process(_delta):
|
||||||
|
|||||||
Reference in New Issue
Block a user