mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-21 23:50:45 +00:00
Add Traditional Chinese (Taiwan) translations, derived from zh-CN and adapted to Taiwan terminology and phrasing (e.g. 軟體/網路/設定/工作階段/ 檔案/連接埠/伺服器). Register zh-TW in messages.ts and append it to SUPPORTED_UI_LOCALES so it appears in the language selector.
16 lines
370 B
TypeScript
16 lines
370 B
TypeScript
import en, { type Messages } from './locales/en';
|
|
import zhCN from './locales/zh-CN';
|
|
import zhTW from './locales/zh-TW';
|
|
import ru from './locales/ru';
|
|
|
|
// Keep keys stable; add new locales by adding another import and map entry.
|
|
export { type Messages };
|
|
|
|
export const MESSAGES_BY_LOCALE: Record<string, Messages> = {
|
|
en,
|
|
ru,
|
|
'zh-CN': zhCN,
|
|
'zh-TW': zhTW,
|
|
};
|
|
|