mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
i18n: add full Thai translation (th) (#1018)
* i18n: add full Thai translation (th-TH) * i18n: fix placeholders, update tests and complete documentation for Thai (th) * i18n: fix placeholders, update tests and complete documentation for Thai locale * chore: revert unrelated docker deployment changes (fix scope drift) --------- Co-authored-by: ryu <ryu@example.com>
This commit is contained in:
@@ -26,6 +26,7 @@ import { hu } from './locales/hu';
|
||||
import { fr } from './locales/fr';
|
||||
import { uk } from './locales/uk';
|
||||
import { tr } from './locales/tr';
|
||||
import { th } from './locales/th';
|
||||
import { LOCALES, type Dict, type Locale } from './types';
|
||||
|
||||
export { LOCALES, LOCALE_LABEL } from './types';
|
||||
@@ -51,6 +52,7 @@ const DICTS: Record<Locale, Dict> = {
|
||||
'fr': fr,
|
||||
'uk': uk,
|
||||
'tr': tr,
|
||||
'th': th,
|
||||
};
|
||||
|
||||
const LS_KEY = 'open-design:locale';
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,8 @@
|
||||
// Supported UI locales. Adding a new locale requires creating a new
|
||||
// dictionary in `./locales/` and registering it in `./index.tsx`.
|
||||
export type Locale = 'en' | 'id' | 'de' | 'zh-CN' | 'zh-TW' | 'pt-BR' | 'es-ES' | 'ru' | 'fa' | 'ar' | 'ja' | 'ko' | 'pl' | 'hu' | 'fr' | 'uk' | 'tr';
|
||||
export type Locale = 'en' | 'id' | 'de' | 'zh-CN' | 'zh-TW' | 'pt-BR' | 'es-ES' | 'ru' | 'fa' | 'ar' | 'ja' | 'ko' | 'pl' | 'hu' | 'fr' | 'uk' | 'tr' | 'th';
|
||||
|
||||
export const LOCALES: Locale[] = ['en', 'id', 'de', 'zh-CN', 'zh-TW', 'pt-BR', 'es-ES', 'ru', 'fa', 'ar', 'ja', 'ko', 'pl', 'hu', 'fr', 'uk', 'tr'];
|
||||
export const LOCALES: Locale[] = ['en', 'id', 'de', 'zh-CN', 'zh-TW', 'pt-BR', 'es-ES', 'ru', 'fa', 'ar', 'ja', 'ko', 'pl', 'hu', 'fr', 'uk', 'tr', 'th'];
|
||||
|
||||
export const LOCALE_LABEL: Record<Locale, string> = {
|
||||
'en': 'English',
|
||||
@@ -21,7 +21,8 @@ export const LOCALE_LABEL: Record<Locale, string> = {
|
||||
'hu': 'Magyar',
|
||||
'fr': 'Français',
|
||||
'uk': 'Українська',
|
||||
'tr': 'Türkçe'
|
||||
'tr': 'Türkçe',
|
||||
'th': 'ภาษาไทย'
|
||||
};
|
||||
|
||||
// Translation dictionary shape — flat keys, dot-namespaced. We keep it
|
||||
|
||||
Reference in New Issue
Block a user