mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-03-14 10:27:24 +00:00
* feat: add Russian locale
- Add ru translations and register namespaces
- Add Russian to supported languages list
- Ignore .gemini workspace config
* fix: improve Russian plural forms in sidebar translations
Add proper Russian plural forms (few/many) for correct grammar with different count values
* docs(readme): add Russian translation and fix language switcher order
- Create README.ru.md based on the current English README.
- Update language switchers in all localized README files so
English comes first, Russian second, and the remaining
languages follow.
- Fix the issue where the current language was not shown
correctly in the switcher for some localized README files
* fix(readme): fix language switcher positions and markdown issues
- Fix language switcher positions in README.md.
- Add bash language tags to command code blocks in README.ru.md.
* fix(readme): fix tool setup step numbering
- Fix tool setup step numbering in README.md and localized README files.
* fix(gitignore): allow translation task files to be tracked
Add exceptions to .gitignore for task translation files across multiple locales
(en, ja, ru, ko, zh-CN) to enable version control of translated content while
keeping generated task files ignored.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* feat(i18n): add Russian translation for tasks
Add Russian locale translation file for TaskMaster task management interface.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* fix: ignore missing tasks.json files for ko and zh-cn locales
* Delete .worktrees directory
---------
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
64 lines
1.4 KiB
JavaScript
64 lines
1.4 KiB
JavaScript
/**
|
|
* Supported Languages Configuration
|
|
*
|
|
* This file contains the list of supported languages for the application.
|
|
* Each language includes:
|
|
* - value: Language code (e.g., 'en', 'zh-CN')
|
|
* - label: Display name in English
|
|
* - nativeName: Native language name for display
|
|
*/
|
|
|
|
export const languages = [
|
|
{
|
|
value: 'en',
|
|
label: 'English',
|
|
nativeName: 'English',
|
|
},
|
|
{
|
|
value: 'ko',
|
|
label: 'Korean',
|
|
nativeName: '한국어',
|
|
},
|
|
{
|
|
value: 'zh-CN',
|
|
label: 'Simplified Chinese',
|
|
nativeName: '简体中文',
|
|
},
|
|
{
|
|
value: 'ja',
|
|
label: 'Japanese',
|
|
nativeName: '日本語',
|
|
},
|
|
{
|
|
value: 'ru',
|
|
label: 'Russian',
|
|
nativeName: 'Русский',
|
|
},
|
|
];
|
|
|
|
/**
|
|
* Get language object by value
|
|
* @param {string} value - Language code
|
|
* @returns {Object|undefined} Language object or undefined if not found
|
|
*/
|
|
export const getLanguage = (value) => {
|
|
return languages.find(lang => lang.value === value);
|
|
};
|
|
|
|
/**
|
|
* Get all language values
|
|
* @returns {string[]} Array of language codes
|
|
*/
|
|
export const getLanguageValues = () => {
|
|
return languages.map(lang => lang.value);
|
|
};
|
|
|
|
/**
|
|
* Check if a language is supported
|
|
* @param {string} value - Language code to check
|
|
* @returns {boolean} True if language is supported
|
|
*/
|
|
export const isLanguageSupported = (value) => {
|
|
return languages.some(lang => lang.value === value);
|
|
};
|