mirror of
https://github.com/documenso/documenso.git
synced 2026-07-10 21:15:15 +10:00
14 lines
455 B
TypeScript
14 lines
455 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const SUPPORTED_LANGUAGE_CODES = ['de', 'en', 'fr', 'es', 'it', 'nl', 'pl', 'pt-BR', 'ja', 'ko', 'zh'] as const;
|
|
|
|
export type SupportedLanguageCodes = (typeof SUPPORTED_LANGUAGE_CODES)[number];
|
|
|
|
export const APP_I18N_OPTIONS = {
|
|
supportedLangs: SUPPORTED_LANGUAGE_CODES,
|
|
sourceLang: 'en',
|
|
defaultLocale: 'en-US',
|
|
} as const;
|
|
|
|
export const ZSupportedLanguageCodeSchema = z.enum(SUPPORTED_LANGUAGE_CODES).catch('en');
|