diff --git a/src/platform/i18n.tsx b/src/platform/i18n.tsx index ccc71e6..72e791e 100644 --- a/src/platform/i18n.tsx +++ b/src/platform/i18n.tsx @@ -58,7 +58,7 @@ export function autoMatchRegion() { } } } else if (s.length === 2) { - const [lang, region] = s[1]; + const [lang, region] = s; for (const available of SUPPORTED_REGIONS) { if (available.toLowerCase() === `${lang}_${region}`.toLowerCase()) { return available;