chore: restructure project and add i18n support
- Reorganize project structure with new electron and shared directories - Add comprehensive i18n support with Chinese, English, and Japanese locales - Update build configurations and TypeScript paths for new structure - Add various UI components including chat interface and task management - Include Windows release binaries and localization files - Update dependencies and fix import paths throughout the codebase
This commit is contained in:
23
src/i18n/constants.ts
Normal file
23
src/i18n/constants.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
export const SUPPORTED_LANGUAGE_CODES = ['en', 'zh', 'ja'] as const;
|
||||
export type LanguageCode = (typeof SUPPORTED_LANGUAGE_CODES)[number];
|
||||
|
||||
export const SUPPORTED_LANGUAGES = [
|
||||
{ code: 'en', label: 'English' },
|
||||
{ code: 'zh', label: '中文' },
|
||||
{ code: 'ja', label: '日本語' },
|
||||
] as const;
|
||||
|
||||
// 命名空间定义
|
||||
export const NAMESPACES = [
|
||||
'common',
|
||||
'conversation',
|
||||
'setting',
|
||||
'menu',
|
||||
'login',
|
||||
'dashboard',
|
||||
'task',
|
||||
'rate',
|
||||
'knowledge',
|
||||
'component',
|
||||
] as const;
|
||||
export type Namespace = (typeof NAMESPACES)[number];
|
||||
Reference in New Issue
Block a user