Skip to content

Commit

Permalink
feat(Locale): add localization support to overlay mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowApex committed Feb 1, 2024
1 parent 75d6db2 commit c809807
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/ui/card_ui_overlay_mode/card_ui_overlay_mode.gd
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ func _ready() -> void:
logger.warn("Launched via update pack without arguments! Falling back to default.")
args = ["steam", "-gamepadui", "-steamos3", "-steampal", "-steamdeck"]

# Configure the locale
var locale := settings_manager.get_value("general", "locale", "en_US") as String
TranslationServer.set_locale(locale)

# Set the theme if one was set
var theme_path := settings_manager.get_value("general", "theme", "") as String
if theme_path == "":
Expand Down

0 comments on commit c809807

Please sign in to comment.