We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 603eede commit 2a5c1ddCopy full SHA for 2a5c1dd
packages/server/lib/app/page/intl.ts
@@ -9,12 +9,11 @@ import {
9
} from "@keybr/intl";
10
import { type IntlShape } from "react-intl";
11
12
-export const localePattern = `(${[...allLocales, "zh-Hans", "zh-Hant"]
+export const localePattern = `(${allLocales
13
.filter((locale) => locale !== defaultLocale)
14
.join("|")})`;
15
16
export async function pIntl(ctx: Context, value: LocaleId): Promise<IntlShape> {
17
- value = value.toLowerCase();
18
if (allLocales.includes(value)) {
19
return await loadIntl(value);
20
} else {
0 commit comments