From 4c1b189ca0de1096bd682f1ffde9af3a79d5a227 Mon Sep 17 00:00:00 2001 From: thislight Date: Wed, 20 Nov 2024 15:35:26 +0800 Subject: [PATCH] Settings/i18n: rename lang-names to generic --- src/settings/Language.tsx | 2 +- src/settings/Region.tsx | 2 +- src/settings/Settings.tsx | 2 +- src/settings/i18n/{lang-names.json => generic.json} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename src/settings/i18n/{lang-names.json => generic.json} (100%) diff --git a/src/settings/Language.tsx b/src/settings/Language.tsx index c9ec4e3..825aeca 100644 --- a/src/settings/Language.tsx +++ b/src/settings/Language.tsx @@ -29,7 +29,7 @@ import { useNavigator } from "../platform/StackedRouter"; const ChooseLang: Component = () => { const { pop } = useNavigator(); const [t] = createTranslator( - () => import("./i18n/lang-names.json"), + () => import("./i18n/generic.json"), (code) => import(`./i18n/${code}.json`) as Promise<{ default: Record & { diff --git a/src/settings/Region.tsx b/src/settings/Region.tsx index c4b7a50..ec85e6d 100644 --- a/src/settings/Region.tsx +++ b/src/settings/Region.tsx @@ -27,7 +27,7 @@ import { useNavigator } from "../platform/StackedRouter"; const ChooseRegion: Component = () => { const {pop} = useNavigator(); const [t] = createTranslator( - () => import("./i18n/lang-names.json"), + () => import("./i18n/generic.json"), (code) => import(`./i18n/${code}.json`) as Promise<{ default: Record & { diff --git a/src/settings/Settings.tsx b/src/settings/Settings.tsx index 219052d..e879714 100644 --- a/src/settings/Settings.tsx +++ b/src/settings/Settings.tsx @@ -161,7 +161,7 @@ const Settings: Component = () => { import(`./i18n/${code}.json`) as Promise<{ default: Strings; }>, - () => import(`./i18n/lang-names.json`), + () => import(`./i18n/generic.json`), ); const { pop } = useNavigator(); const settings$ = useStore($settings); diff --git a/src/settings/i18n/lang-names.json b/src/settings/i18n/generic.json similarity index 100% rename from src/settings/i18n/lang-names.json rename to src/settings/i18n/generic.json