Skip to content

Commit

Permalink
Fix issue with HSR and Turkish
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Nov 26, 2024
1 parent 2a2d04f commit 14f24fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions genshin/client/components/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ def lang(self) -> str:
def lang(self, lang: str) -> None:
if lang not in constants.LANGS:
raise ValueError(f"{lang} is not a valid language, must be one of: " + ", ".join(constants.LANGS))
if lang == "tr-tr" and self.default_game is types.Game.STARRAIL:
warnings.warn("Starrail does not support Turkish language, falling back to English.")
self.lang = "en-us"

self._lang = lang

Expand Down

0 comments on commit 14f24fa

Please sign in to comment.