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:
Tatsuyato
2026-05-09 15:19:47 +08:00
committed by GitHub
co-authored by ryu
parent 13ab430b45
commit f5564c93a7
5 changed files with 1228 additions and 4 deletions
+2
View File
@@ -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
+4 -3
View File
@@ -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