Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.
Swift apple-siliconcustom-formathomebrewiosipaipadipadosiphonemetalnative-portnintendo-switchnxnativeromfsswitch-games
fix(qt): cycle through all supported languages
seedds5a2a96787c78
diff --git a/frontend-qt/nspb_qt/i18n.py b/frontend-qt/nspb_qt/i18n.pyindex 2566b754..93a88286 100644--- a/frontend-qt/nspb_qt/i18n.py+++ b/frontend-qt/nspb_qt/i18n.py@@ -14,7 +14,7 @@ class Lang(Enum):@propertydef other(self) -> 'Lang':- return Lang.EN if self is not Lang.EN else Lang.ZH+ return {Lang.ZH: Lang.EN, Lang.EN: Lang.SV, Lang.SV: Lang.ZH}[self]@propertydef toggle_label(self) -> str:diff --git a/frontend-qt/tests/test_i18n_detect.py b/frontend-qt/tests/test_i18n_detect.pyindex d7618e1e..60b76fc6 100644--- a/frontend-qt/tests/test_i18n_detect.py+++ b/frontend-qt/tests/test_i18n_detect.py@@ -34,6 +34,11 @@ def detect(locale_name: str, platform: str = 'darwin', env: dict | None = None)class Detect(unittest.TestCase):+ def test_language_button_cycles_through_each_available_language(self):+ self.assertEqual(Lang.ZH.other, Lang.EN)+ self.assertEqual(Lang.EN.other, Lang.SV)+ self.assertEqual(Lang.SV.other, Lang.ZH)+def test_a_saved_choice_wins(self):self.assertEqual(detect('English_United States', env={'NSPB_LANG': 'zh'}), Lang.ZH)self.assertEqual(detect('Chinese (Simplified)_China', env={'NSPB_LANG': 'en'}), Lang.EN)