Skip to content

Commit

Permalink
Add Ukrainian and Russian localizations (#344)
Browse files Browse the repository at this point in the history
Co-authored-by: volkov <[email protected]>
  • Loading branch information
Vovkiv and volkov authored Dec 21, 2023
1 parent 853ddb5 commit eed61f5
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 102 deletions.
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ shorthand_cubic_bezier_absolute={

[internationalization]

locale/translations=PackedStringArray("res://translations/translation_sheet.bg.translation", "res://translations/translation_sheet.en.translation", "res://translations/translation_sheet.de.translation")
locale/translations=PackedStringArray("res://translations/translation_sheet.bg.translation", "res://translations/translation_sheet.en.translation", "res://translations/translation_sheet.de.translation", "res://translations/translation_sheet.ru_RU.translation", "res://translations/translation_sheet.uk_UA.translation")

[rendering]

Expand Down
2 changes: 1 addition & 1 deletion src/ui_parts/settings_menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func _on_close_pressed() -> void:

func _on_language_pressed() -> void:
var btn_arr: Array[Button] = []
for lang in ["en", "bg", "de"]:
for lang in TranslationServer.get_loaded_locales():
btn_arr.append(Utils.create_btn(
TranslationServer.get_locale_name(lang) + " (" + lang + ")",
_on_language_chosen.bind(lang)))
Expand Down
Loading

0 comments on commit eed61f5

Please sign in to comment.