Skip to content

The Open Source DocuSign Alternative.

feat: add japanese chinese and korean support (#2202)

David Nguyen798b6bd7505a
diff --git a/packages/lib/constants/i18n.ts b/packages/lib/constants/i18n.ts
index f0e495e59..0ff3cc5c6 100644
--- a/packages/lib/constants/i18n.ts
+++ b/packages/lib/constants/i18n.ts
@@ -1,6 +1,16 @@
import { z } from 'zod';
-export const SUPPORTED_LANGUAGE_CODES = ['de', 'en', 'fr', 'es', 'it', 'pl'] as const;
+export const SUPPORTED_LANGUAGE_CODES = [
+ 'de',
+ 'en',
+ 'fr',
+ 'es',
+ 'it',
+ 'pl',
+ 'ja',
+ 'ko',
+ 'zh',
+] as const;
export const ZSupportedLanguageCodeSchema = z.enum(SUPPORTED_LANGUAGE_CODES).catch('en');
@@ -54,6 +64,18 @@ export const SUPPORTED_LANGUAGES: Record<string, SupportedLanguage> = {
short: 'pl',
full: 'Polish',
},
+ ja: {
+ short: 'ja',
+ full: 'Japanese',
+ },
+ ko: {
+ short: 'ko',
+ full: 'Korean',
+ },
+ zh: {
+ short: 'zh',
+ full: 'Chinese',
+ },
} satisfies Record<SupportedLanguageCodes, SupportedLanguage>;
export const isValidLanguageCode = (code: unknown): code is SupportedLanguageCodes =>