Format all files

This commit is contained in:
Owen
2025-12-09 10:56:14 -05:00
parent fa839a811f
commit f9b03943c3
535 changed files with 7670 additions and 5626 deletions

View File

@@ -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";

View File

@@ -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
};
});