mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-02 04:37:57 +02:00
31 lines
474 B
TypeScript
31 lines
474 B
TypeScript
import { defineRouting } from "next-intl/routing";
|
|
|
|
export const APP_LOCALES = [
|
|
"en",
|
|
"es",
|
|
"de",
|
|
"ja",
|
|
"fr",
|
|
"pt",
|
|
"ru",
|
|
"it",
|
|
"nl",
|
|
"pl",
|
|
"zh",
|
|
"hi",
|
|
"ar",
|
|
"bn",
|
|
"id",
|
|
"tr",
|
|
] as const;
|
|
|
|
export const RTL_LOCALES = ["ar"] as const;
|
|
|
|
export const routing = defineRouting({
|
|
locales: [...APP_LOCALES],
|
|
defaultLocale: "en",
|
|
localePrefix: "as-needed",
|
|
localeDetection: true,
|
|
});
|
|
|
|
export type AppLocale = (typeof routing.locales)[number]; |