备份:修复前完整项目快照 2026-04-19
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
export default {
|
||||
// Common
|
||||
common: {
|
||||
confirm: 'Confirm',
|
||||
cancel: 'Cancel',
|
||||
save: 'Save',
|
||||
delete: 'Delete',
|
||||
edit: 'Edit',
|
||||
add: 'Add',
|
||||
search: 'Search',
|
||||
reset: 'Reset',
|
||||
submit: 'Submit',
|
||||
back: 'Back',
|
||||
loading: 'Loading...',
|
||||
success: 'Operation successful',
|
||||
failed: 'Operation failed',
|
||||
required: 'This field is required'
|
||||
},
|
||||
|
||||
// Login
|
||||
login: {
|
||||
title: 'Qingyuan Power Laos ERP',
|
||||
subtitle: 'Project Management and Finance Platform',
|
||||
username: 'Username',
|
||||
password: 'Password',
|
||||
loginButton: 'Login',
|
||||
usernamePlaceholder: 'Please enter username',
|
||||
passwordPlaceholder: 'Please enter password',
|
||||
usernameRequired: 'Please enter username',
|
||||
passwordRequired: 'Please enter password',
|
||||
usernameMin: 'Username must be at least 3 characters',
|
||||
passwordMin: 'Password must be at least 6 characters',
|
||||
loginFailed: 'Login failed, please try again',
|
||||
testAccounts: 'Test Accounts',
|
||||
techSupport: 'Technical Support: OpenClaw AI + React + Node.js',
|
||||
selectLanguage: 'Select Language'
|
||||
},
|
||||
|
||||
// Menu
|
||||
menu: {
|
||||
dashboard: 'Dashboard',
|
||||
projects: 'Project Management',
|
||||
advances: 'Advance Management',
|
||||
reimbursements: 'Reimbursement Management',
|
||||
finance: 'Finance Management',
|
||||
reports: 'Reports',
|
||||
settings: 'System Settings'
|
||||
},
|
||||
|
||||
// User
|
||||
user: {
|
||||
profile: 'Profile',
|
||||
settings: 'System Settings',
|
||||
logout: 'Logout',
|
||||
admin: 'System Administrator',
|
||||
finance: 'Finance Specialist',
|
||||
manager: 'Project Manager',
|
||||
employee: 'Employee'
|
||||
},
|
||||
|
||||
// Features
|
||||
features: {
|
||||
projectManage: 'Project Management: Create, track, and analyze project progress',
|
||||
advanceManage: 'Advance Management: Application and approval process',
|
||||
reimburseManage: 'Reimbursement Management: Expense claim process',
|
||||
financeReport: 'Financial Reports: Project cost and profit analysis',
|
||||
mobileSupport: 'Mobile Support: PWA technology, add to home screen'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
import zhCN from 'antd/locale/zh_CN'
|
||||
import thTH from 'antd/locale/th_TH'
|
||||
import enUS from 'antd/locale/en_US'
|
||||
|
||||
export type LanguageCode = 'zh-CN' | 'th-TH' | 'lo-LA' | 'en-US'
|
||||
|
||||
export interface Language {
|
||||
code: LanguageCode
|
||||
name: string
|
||||
nativeName: string
|
||||
flag: string
|
||||
antdLocale: any
|
||||
}
|
||||
|
||||
export const languages: Language[] = [
|
||||
{
|
||||
code: 'zh-CN',
|
||||
name: '中文简体',
|
||||
nativeName: '中文简体',
|
||||
flag: '🇨🇳',
|
||||
antdLocale: zhCN
|
||||
},
|
||||
{
|
||||
code: 'th-TH',
|
||||
name: '泰语',
|
||||
nativeName: 'ไทย',
|
||||
flag: '🇹🇭',
|
||||
antdLocale: thTH
|
||||
},
|
||||
{
|
||||
code: 'lo-LA',
|
||||
name: '老挝语',
|
||||
nativeName: 'ລາວ',
|
||||
flag: '🇱🇦',
|
||||
antdLocale: enUS // Antd没有老挝语,用英语fallback
|
||||
},
|
||||
{
|
||||
code: 'en-US',
|
||||
name: '英语',
|
||||
nativeName: 'English',
|
||||
flag: '🇺🇸',
|
||||
antdLocale: enUS
|
||||
}
|
||||
]
|
||||
|
||||
export const translations = {
|
||||
'zh-CN': zhCNTranslation,
|
||||
'th-TH': thTHTranslation,
|
||||
'lo-LA': loLATranslation,
|
||||
'en-US': enUSTranslation
|
||||
}
|
||||
|
||||
export const getLanguage = (code: LanguageCode): Language => {
|
||||
return languages.find(lang => lang.code === code) || languages[0]
|
||||
}
|
||||
|
||||
export const getTranslation = (code: LanguageCode) => {
|
||||
return translations[code] || translations['zh-CN']
|
||||
}
|
||||
|
||||
// 导入翻译文件
|
||||
import zhCNTranslation from './zh-CN'
|
||||
import thTHTranslation from './th-TH'
|
||||
import loLATranslation from './lo-LA'
|
||||
import enUSTranslation from './en-US'
|
||||
@@ -0,0 +1,69 @@
|
||||
export default {
|
||||
// ທົ່ວໄປ
|
||||
common: {
|
||||
confirm: 'ຢືນຢັນ',
|
||||
cancel: 'ຍົກເລີກ',
|
||||
save: 'ບັນທຶກ',
|
||||
delete: 'ລຶບ',
|
||||
edit: 'ແກ້ໄຂ',
|
||||
add: 'ເພີ່ມ',
|
||||
search: 'ຄົ້ນຫາ',
|
||||
reset: 'ຣີເຊັດ',
|
||||
submit: 'ສົ່ງ',
|
||||
back: 'ກັບຄືນ',
|
||||
loading: 'ກຳລັງໂຫລດ...',
|
||||
success: 'ດຳເນີນການສຳເລັດ',
|
||||
failed: 'ດຳເນີນການລົ້ມເຫລວ',
|
||||
required: 'ຈຳເປັນຕ້ອງປ້ອນ'
|
||||
},
|
||||
|
||||
// ໜ້າລັອກອິນ
|
||||
login: {
|
||||
title: 'Qingyuan Power Laos ERP',
|
||||
subtitle: 'ແພລດຟອມຈັດການໂຄງການ ແລະ ການເງິນ',
|
||||
username: 'ຊື່ຜູ້ໃຊ້',
|
||||
password: 'ລະຫັດຜ່ານ',
|
||||
loginButton: 'ເຂົ້າສູ່ລະບົບ',
|
||||
usernamePlaceholder: 'ກະລຸນາປ້ອນຊື່ຜູ້ໃຊ້',
|
||||
passwordPlaceholder: 'ກະລຸນາປ້ອນລະຫັດຜ່ານ',
|
||||
usernameRequired: 'ກະລຸນາປ້ອນຊື່ຜູ້ໃຊ້',
|
||||
passwordRequired: 'ກະລຸນາປ້ອນລະຫັດຜ່ານ',
|
||||
usernameMin: 'ຊື່ຜູ້ໃຊ້ຕ້ອງມີຢ່າງໜ້ອຍ 3 ຕົວອັກສອນ',
|
||||
passwordMin: 'ລະຫັດຜ່ານຕ້ອງມີຢ່າງໜ້ອຍ 6 ຕົວອັກສອນ',
|
||||
loginFailed: 'ການເຂົ້າສູ່ລະບົບລົ້ມເຫລວ ກະລຸນາລອງອີກຄັ້ງ',
|
||||
testAccounts: 'ບັນຊີທົດສອບ',
|
||||
techSupport: 'ການສະໜັບສະໜູນເຕັກນິກ: OpenClaw AI + React + Node.js',
|
||||
selectLanguage: 'ເລືອກພາສາ'
|
||||
},
|
||||
|
||||
// ເມນູ
|
||||
menu: {
|
||||
dashboard: 'ແດຊບອດ',
|
||||
projects: 'ຈັດການໂຄງການ',
|
||||
advances: 'ຈັດການເງິນທືນ',
|
||||
reimbursements: 'ຈັດການເບີກຈ່າຍ',
|
||||
finance: 'ຈັດການການເງິນ',
|
||||
reports: 'ລາຍງານ',
|
||||
settings: 'ຕັ້ງຄ່າລະບົບ'
|
||||
},
|
||||
|
||||
// ຜູ້ໃຊ້
|
||||
user: {
|
||||
profile: 'ຂໍ້ມູນສ່ວນຕົວ',
|
||||
settings: 'ຕັ້ງຄ່າລະບົບ',
|
||||
logout: 'ອອກຈາກລະບົບ',
|
||||
admin: 'ຜູ້ບໍລິຫານລະບົບ',
|
||||
finance: 'ເຈົ້າໜ້າທີ່ການເງິນ',
|
||||
manager: 'ຜູ້ຈັດການໂຄງການ',
|
||||
employee: 'ພະນັກງານ'
|
||||
},
|
||||
|
||||
// ຄຸນສົມບັດລະບົບ
|
||||
features: {
|
||||
projectManage: 'ຈັດການໂຄງການ: ສ້າງ ຕິດຕາມ ແລະ ວິເຄາະຄວາມຄືບໜ້າ',
|
||||
advanceManage: 'ຈັດການເງິນທືນ: ຂະບວນການຂໍ ແລະ ອະນຸມັດ',
|
||||
reimburseManage: 'ຈັດການເບີກຈ່າຍ: ຂະບວນການເບີກຄ່າໃຊ້ຈ່າຍ',
|
||||
financeReport: 'ລາຍງານການເງິນ: ວິເຄາະຕົ້ນທຶນ ແລະ ກຳໄລໂຄງການ',
|
||||
mobileSupport: 'ຮອງຮັບມືຖື: ເຕັກໂນໂລຊີ PWA ສາມາດເພີ່ມໃສ່ໜ້າຈໍຫຼັກ'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
export default {
|
||||
// Common
|
||||
common: {
|
||||
confirm: 'ยืนยัน',
|
||||
cancel: 'ยกเลิก',
|
||||
save: 'บันทึก',
|
||||
delete: 'ลบ',
|
||||
edit: 'แก้ไข',
|
||||
add: 'เพิ่ม',
|
||||
search: 'ค้นหา',
|
||||
reset: 'รีเซ็ต',
|
||||
submit: 'ส่ง',
|
||||
back: 'กลับ',
|
||||
loading: 'กำลังโหลด...',
|
||||
success: 'ดำเนินการสำเร็จ',
|
||||
failed: 'ดำเนินการล้มเหลว',
|
||||
required: 'จำเป็นต้องกรอก'
|
||||
},
|
||||
|
||||
// Login
|
||||
login: {
|
||||
title: 'Qingyuan Power Laos ERP',
|
||||
subtitle: 'แพลตฟอร์มการจัดการโครงการและการเงิน',
|
||||
username: 'ชื่อผู้ใช้',
|
||||
password: 'รหัสผ่าน',
|
||||
loginButton: 'เข้าสู่ระบบ',
|
||||
usernamePlaceholder: 'กรุณากรอกชื่อผู้ใช้',
|
||||
passwordPlaceholder: 'กรุณากรอกรหัสผ่าน',
|
||||
usernameRequired: 'กรุณากรอกชื่อผู้ใช้',
|
||||
passwordRequired: 'กรุณากรอกรหัสผ่าน',
|
||||
usernameMin: 'ชื่อผู้ใช้ต้องมีอย่างน้อย 3 ตัวอักษร',
|
||||
passwordMin: 'รหัสผ่านต้องมีอย่างน้อย 6 ตัวอักษร',
|
||||
loginFailed: 'การเข้าสู่ระบบล้มเหลว กรุณาลองอีกครั้ง',
|
||||
testAccounts: 'บัญชีทดสอบ',
|
||||
techSupport: 'การสนับสนุนด้านเทคนิค: OpenClaw AI + React + Node.js',
|
||||
selectLanguage: 'เลือกภาษา'
|
||||
},
|
||||
|
||||
// Menu
|
||||
menu: {
|
||||
dashboard: 'แดชบอร์ด',
|
||||
projects: 'การจัดการโครงการ',
|
||||
advances: 'การจัดการเงินทดรอง',
|
||||
reimbursements: 'การจัดการเบิกเงิน',
|
||||
finance: 'การจัดการการเงิน',
|
||||
reports: 'รายงาน',
|
||||
settings: 'การตั้งค่าระบบ'
|
||||
},
|
||||
|
||||
// User
|
||||
user: {
|
||||
profile: 'ข้อมูลส่วนตัว',
|
||||
settings: 'การตั้งค่าระบบ',
|
||||
logout: 'ออกจากระบบ',
|
||||
admin: 'ผู้ดูแลระบบ',
|
||||
finance: 'เจ้าหน้าที่การเงิน',
|
||||
manager: 'ผู้จัดการโครงการ',
|
||||
employee: 'พนักงาน'
|
||||
},
|
||||
|
||||
// Features
|
||||
features: {
|
||||
projectManage: 'การจัดการโครงการ: สร้าง ติดตาม และวิเคราะห์ความคืบหน้า',
|
||||
advanceManage: 'การจัดการเงินทดรอง: กระบวนการขอและอนุมัติ',
|
||||
reimburseManage: 'การจัดการเบิกเงิน: กระบวนการเบิกค่าใช้จ่าย',
|
||||
financeReport: 'รายงานการเงิน: วิเคราะห์ต้นทุนและกำไรโครงการ',
|
||||
mobileSupport: 'รองรับมือถือ: เทคโนโลยี PWA สามารถเพิ่มในหน้าจอหลัก'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
export default {
|
||||
// 通用
|
||||
common: {
|
||||
confirm: '确认',
|
||||
cancel: '取消',
|
||||
save: '保存',
|
||||
delete: '删除',
|
||||
edit: '编辑',
|
||||
add: '添加',
|
||||
search: '搜索',
|
||||
reset: '重置',
|
||||
submit: '提交',
|
||||
back: '返回',
|
||||
loading: '加载中...',
|
||||
success: '操作成功',
|
||||
failed: '操作失败',
|
||||
required: '此项为必填'
|
||||
},
|
||||
|
||||
// 登录页
|
||||
login: {
|
||||
title: '轻远电力老挝ERP',
|
||||
subtitle: '项目管理与财务报销一体化平台',
|
||||
username: '用户名',
|
||||
password: '密码',
|
||||
loginButton: '登录',
|
||||
usernamePlaceholder: '请输入用户名',
|
||||
passwordPlaceholder: '请输入密码',
|
||||
usernameRequired: '请输入用户名',
|
||||
passwordRequired: '请输入密码',
|
||||
usernameMin: '用户名至少3个字符',
|
||||
passwordMin: '密码至少6个字符',
|
||||
loginFailed: '登录失败,请重试',
|
||||
testAccounts: '测试账户',
|
||||
techSupport: '技术支持:OpenClaw AI助手 + React + Node.js',
|
||||
selectLanguage: '选择语言'
|
||||
},
|
||||
|
||||
// 菜单
|
||||
menu: {
|
||||
dashboard: '仪表板',
|
||||
projects: '项目管理',
|
||||
advances: '预支管理',
|
||||
reimbursements: '报销管理',
|
||||
finance: '财务管理',
|
||||
reports: '报表分析',
|
||||
settings: '系统设置'
|
||||
},
|
||||
|
||||
// 用户
|
||||
user: {
|
||||
profile: '个人资料',
|
||||
settings: '系统设置',
|
||||
logout: '退出登录',
|
||||
admin: '系统管理员',
|
||||
finance: '财务专员',
|
||||
manager: '项目经理',
|
||||
employee: '普通员工'
|
||||
},
|
||||
|
||||
// 系统功能
|
||||
features: {
|
||||
projectManage: '项目管理:创建、跟踪、分析项目进度',
|
||||
advanceManage: '预支管理:员工预支申请与审批流程',
|
||||
reimburseManage: '报销管理:费用报销与核销流程',
|
||||
financeReport: '财务报表:项目成本利润分析',
|
||||
mobileSupport: '移动端支持:PWA技术,可添加到主屏幕'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user