mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-01 20:29:03 +02:00
fr → Français en → Anglais es → Espagnol de → Allemand ja → Japonais pt → Portugais ru → Russe it → Italien nl → Néerlandais pl → Polonais zh → Chinois hi → Hindi ar → Arabe bn → Bengali id → Indonésien tr → Turc
31 lines
471 B
TypeScript
31 lines
471 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: "always",
|
|
localeDetection: true,
|
|
});
|
|
|
|
export type AppLocale = (typeof routing.locales)[number]; |