mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-26 06:46:40 +00:00
Format all files
This commit is contained in:
@@ -1,4 +1,21 @@
|
||||
export type Locale = (typeof locales)[number];
|
||||
|
||||
export const locales = ['en-US', 'es-ES', 'fr-FR', 'de-DE', 'nl-NL', 'it-IT', 'pl-PL', 'pt-PT', 'tr-TR', 'zh-CN', 'ko-KR', 'bg-BG', 'cs-CZ', 'ru-RU', 'nb-NO', 'zh-TW'] as const;
|
||||
export const defaultLocale: Locale = 'en-US';
|
||||
export const locales = [
|
||||
"en-US",
|
||||
"es-ES",
|
||||
"fr-FR",
|
||||
"de-DE",
|
||||
"nl-NL",
|
||||
"it-IT",
|
||||
"pl-PL",
|
||||
"pt-PT",
|
||||
"tr-TR",
|
||||
"zh-CN",
|
||||
"ko-KR",
|
||||
"bg-BG",
|
||||
"cs-CZ",
|
||||
"ru-RU",
|
||||
"nb-NO",
|
||||
"zh-TW"
|
||||
] as const;
|
||||
export const defaultLocale: Locale = "en-US";
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import {getRequestConfig} from 'next-intl/server';
|
||||
import {getUserLocale} from '../services/locale';
|
||||
import { getRequestConfig } from "next-intl/server";
|
||||
import { getUserLocale } from "../services/locale";
|
||||
|
||||
export default getRequestConfig(async () => {
|
||||
const locale = await getUserLocale();
|
||||
const locale = await getUserLocale();
|
||||
|
||||
return {
|
||||
locale,
|
||||
messages: (await import(`../../messages/${locale}.json`)).default
|
||||
};
|
||||
});
|
||||
return {
|
||||
locale,
|
||||
messages: (await import(`../../messages/${locale}.json`)).default
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user