Skip to content

Commit 2a5c1dd

Browse files
committed
Revert "feat: accept legacy locale ids"
This reverts commit 3905d65.
1 parent 603eede commit 2a5c1dd

File tree

1 file changed

+1
-2
lines changed
  • packages/server/lib/app/page

1 file changed

+1
-2
lines changed

packages/server/lib/app/page/intl.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ import {
99
} from "@keybr/intl";
1010
import { type IntlShape } from "react-intl";
1111

12-
export const localePattern = `(${[...allLocales, "zh-Hans", "zh-Hant"]
12+
export const localePattern = `(${allLocales
1313
.filter((locale) => locale !== defaultLocale)
1414
.join("|")})`;
1515

1616
export async function pIntl(ctx: Context, value: LocaleId): Promise<IntlShape> {
17-
value = value.toLowerCase();
1817
if (allLocales.includes(value)) {
1918
return await loadIntl(value);
2019
} else {

0 commit comments

Comments
 (0)