Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/services/src/services/config/versions/v6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub enum UiLanguage {
Ko, // Force Korean
ZhHans, // Force Simplified Chinese
ZhHant, // Force Traditional Chinese
Tr, // Force Turkish
}

#[derive(Clone, Debug, Serialize, Deserialize, TS)]
Expand Down
12 changes: 12 additions & 0 deletions frontend/src/i18n/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ import zhHantSettings from './locales/zh-Hant/settings.json';
import zhHantProjects from './locales/zh-Hant/projects.json';
import zhHantTasks from './locales/zh-Hant/tasks.json';
import zhHantOrganization from './locales/zh-Hant/organization.json';
import trCommon from './locales/tr/common.json';
import trSettings from './locales/tr/settings.json';
import trProjects from './locales/tr/projects.json';
import trTasks from './locales/tr/tasks.json';
import trOrganization from './locales/tr/organization.json';

const resources = {
en: {
Expand Down Expand Up @@ -90,6 +95,13 @@ const resources = {
tasks: zhHantTasks,
organization: zhHantOrganization,
},
tr: {
common: trCommon,
settings: trSettings,
projects: trProjects,
tasks: trTasks,
organization: trOrganization,
},
};

i18n
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/i18n/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const UI_TO_I18N = {
KO: 'ko',
ZH_HANS: 'zh-Hans',
ZH_HANT: 'zh-Hant',
TR: 'tr',
} as const;

const SUPPORTED_UI_LANGUAGES = [
Expand All @@ -25,6 +26,7 @@ const SUPPORTED_UI_LANGUAGES = [
'KO',
'ZH_HANS',
'ZH_HANT',
'TR',
] as const;
export const SUPPORTED_I18N_CODES = Object.values(UI_TO_I18N);

Expand All @@ -36,6 +38,7 @@ const FALLBACK_ENDONYMS = {
ko: '한국어',
'zh-Hans': '简体中文',
'zh-Hant': '繁體中文',
tr: 'Türkçe',
} as const;

/**
Expand Down
Loading