From 14f24fa4cd1dd711f8aaf428c52423799a5cd468 Mon Sep 17 00:00:00 2001 From: seria Date: Tue, 26 Nov 2024 08:51:21 +0800 Subject: [PATCH] Fix issue with HSR and Turkish --- genshin/client/components/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/genshin/client/components/base.py b/genshin/client/components/base.py index b7956c4e..e178ac28 100644 --- a/genshin/client/components/base.py +++ b/genshin/client/components/base.py @@ -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