locales.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. /**
  2. * AI表格边栏插件国际化文案
  3. */
  4. export interface Locales {
  5. title: string;
  6. documentInfo: string;
  7. sheetManagement: string;
  8. fieldManagement: string;
  9. recordManagement: string;
  10. currentSheet: string;
  11. sheetName: string;
  12. fieldsCount: string;
  13. recordsCount: string;
  14. createSheet: string;
  15. deleteSheet: string;
  16. refreshSheets: string;
  17. addField: string;
  18. viewFields: string;
  19. addRecord: string;
  20. viewRecords: string;
  21. fieldName: string;
  22. fieldType: string;
  23. recordTitle: string;
  24. status: string;
  25. createTime: string;
  26. operation: string;
  27. edit: string;
  28. delete: string;
  29. save: string;
  30. cancel: string;
  31. loading: string;
  32. noData: string;
  33. confirmDelete: string;
  34. enterSheetName: string;
  35. enterFieldName: string;
  36. selectFieldType: string;
  37. enterRecordTitle: string;
  38. selectStatus: string;
  39. success: string;
  40. error: string;
  41. text: string;
  42. number: string;
  43. date: string;
  44. singleSelect: string;
  45. multiSelect: string;
  46. attachment: string;
  47. link: string;
  48. currency: string;
  49. pending: string;
  50. inProgress: string;
  51. completed: string;
  52. cancelled: string;
  53. createSheetSuccess: string;
  54. deleteSheetSuccess: string;
  55. addFieldSuccess: string;
  56. addRecordSuccess: string;
  57. updateRecordSuccess: string;
  58. deleteRecordSuccess: string;
  59. operationFailed: string;
  60. pleaseSelectSheet: string;
  61. cannotDeleteLastSheet: string;
  62. cannotDeletePrimaryField: string;
  63. documentUuid: string;
  64. totalSheets: string;
  65. untitled: string;
  66. sheetManagementDescription: string;
  67. fieldManagementDescription: string;
  68. recordManagementDescription: string;
  69. currentTable: string;
  70. primaryKey: string;
  71. recordId: string;
  72. cannotDeletePrimaryKeyField: string;
  73. confirmDeleteField: string;
  74. deleteFieldSuccess: string;
  75. deleteFieldFailed: string;
  76. dataWillBeLost: string;
  77. sheetsUnit: string;
  78. fieldsUnit: string;
  79. recordsUnit: string;
  80. }
  81. export const locales: Record<string, Locales> = {
  82. 'zh-CN': {
  83. title: 'AI表格管理助手',
  84. documentInfo: '文档信息',
  85. sheetManagement: '数据表管理',
  86. fieldManagement: '字段管理',
  87. recordManagement: '记录管理',
  88. currentSheet: '当前数据表',
  89. sheetName: '数据表名称',
  90. fieldsCount: '字段数量',
  91. recordsCount: '记录数量',
  92. createSheet: '创建数据表',
  93. deleteSheet: '删除数据表',
  94. refreshSheets: '刷新列表',
  95. addField: '添加字段',
  96. viewFields: '查看字段',
  97. addRecord: '添加记录',
  98. viewRecords: '查看记录',
  99. fieldName: '字段名称',
  100. fieldType: '字段类型',
  101. recordTitle: '记录标题',
  102. status: '状态',
  103. createTime: '创建时间',
  104. operation: '操作',
  105. edit: '编辑',
  106. delete: '删除',
  107. save: '保存',
  108. cancel: '取消',
  109. loading: '加载中...',
  110. noData: '暂无数据',
  111. confirmDelete: '确认删除',
  112. enterSheetName: '请输入数据表名称',
  113. enterFieldName: '请输入字段名称',
  114. selectFieldType: '请选择字段类型',
  115. enterRecordTitle: '请输入记录标题',
  116. selectStatus: '请选择状态',
  117. success: '成功',
  118. error: '错误',
  119. text: '文本',
  120. number: '数字',
  121. date: '日期',
  122. singleSelect: '单选',
  123. multiSelect: '多选',
  124. attachment: '附件',
  125. link: '链接',
  126. currency: '货币',
  127. pending: '待处理',
  128. inProgress: '进行中',
  129. completed: '已完成',
  130. cancelled: '已取消',
  131. createSheetSuccess: '数据表创建成功',
  132. deleteSheetSuccess: '数据表删除成功',
  133. addFieldSuccess: '字段添加成功',
  134. addRecordSuccess: '记录添加成功',
  135. updateRecordSuccess: '记录更新成功',
  136. deleteRecordSuccess: '记录删除成功',
  137. operationFailed: '操作失败',
  138. pleaseSelectSheet: '请选择数据表',
  139. cannotDeleteLastSheet: '不能删除最后一张数据表',
  140. cannotDeletePrimaryField: '不能删除主键字段',
  141. documentUuid: '文档UUID',
  142. totalSheets: '数据表总数',
  143. untitled: '无标题',
  144. sheetManagementDescription: '数据表管理',
  145. fieldManagementDescription: '字段管理',
  146. recordManagementDescription: '记录管理',
  147. currentTable: '当前表',
  148. primaryKey: '主键',
  149. recordId: '记录ID',
  150. cannotDeletePrimaryKeyField: '不能删除主键字段',
  151. confirmDeleteField: '确定要删除字段',
  152. deleteFieldSuccess: '删除字段成功',
  153. deleteFieldFailed: '删除字段失败',
  154. dataWillBeLost: '删除后该字段的所有数据将丢失',
  155. sheetsUnit: '张表',
  156. fieldsUnit: '个字段',
  157. recordsUnit: '条记录'
  158. },
  159. 'en-US': {
  160. title: 'Multi-table Management Assistant',
  161. documentInfo: 'Document Info',
  162. sheetManagement: 'Sheet Management',
  163. fieldManagement: 'Field Management',
  164. recordManagement: 'Record Management',
  165. currentSheet: 'Current Sheet',
  166. sheetName: 'Sheet Name',
  167. fieldsCount: 'Fields Count',
  168. recordsCount: 'Records Count',
  169. createSheet: 'Create Sheet',
  170. deleteSheet: 'Delete Sheet',
  171. refreshSheets: 'Refresh List',
  172. addField: 'Add Field',
  173. viewFields: 'View Fields',
  174. addRecord: 'Add Record',
  175. viewRecords: 'View Records',
  176. fieldName: 'Field Name',
  177. fieldType: 'Field Type',
  178. recordTitle: 'Record Title',
  179. status: 'Status',
  180. createTime: 'Create Time',
  181. operation: 'Operation',
  182. edit: 'Edit',
  183. delete: 'Delete',
  184. save: 'Save',
  185. cancel: 'Cancel',
  186. loading: 'Loading...',
  187. noData: 'No Data',
  188. confirmDelete: 'Confirm Delete',
  189. enterSheetName: 'Enter sheet name',
  190. enterFieldName: 'Enter field name',
  191. selectFieldType: 'Select field type',
  192. enterRecordTitle: 'Enter record title',
  193. selectStatus: 'Select status',
  194. success: 'Success',
  195. error: 'Error',
  196. text: 'Text',
  197. number: 'Number',
  198. date: 'Date',
  199. singleSelect: 'Single Select',
  200. multiSelect: 'Multi Select',
  201. attachment: 'Attachment',
  202. link: 'Link',
  203. currency: 'Currency',
  204. pending: 'Pending',
  205. inProgress: 'In Progress',
  206. completed: 'Completed',
  207. cancelled: 'Cancelled',
  208. createSheetSuccess: 'Sheet created successfully',
  209. deleteSheetSuccess: 'Sheet deleted successfully',
  210. addFieldSuccess: 'Field added successfully',
  211. addRecordSuccess: 'Record added successfully',
  212. updateRecordSuccess: 'Record updated successfully',
  213. deleteRecordSuccess: 'Record deleted successfully',
  214. operationFailed: 'Operation failed',
  215. pleaseSelectSheet: 'Please select a sheet',
  216. cannotDeleteLastSheet: 'Cannot delete the last sheet',
  217. cannotDeletePrimaryField: 'Cannot delete primary field',
  218. documentUuid: 'Document UUID',
  219. totalSheets: 'Total Sheets',
  220. untitled: 'Untitled',
  221. sheetManagementDescription: 'Sheet Management',
  222. fieldManagementDescription: 'Field Management',
  223. recordManagementDescription: 'Record Management',
  224. currentTable: 'Current Table',
  225. primaryKey: 'Primary Key',
  226. recordId: 'Record ID',
  227. cannotDeletePrimaryKeyField: 'Cannot delete primary key field',
  228. confirmDeleteField: 'Are you sure to delete field',
  229. deleteFieldSuccess: 'Field deleted successfully',
  230. deleteFieldFailed: 'Failed to delete field',
  231. dataWillBeLost: 'All data in this field will be lost after deletion',
  232. sheetsUnit: 'sheets',
  233. fieldsUnit: 'fields',
  234. recordsUnit: 'records'
  235. },
  236. 'ja-JP': {
  237. title: 'マルチテーブル管理アシスタント',
  238. documentInfo: 'ドキュメント情報',
  239. sheetManagement: 'シート管理',
  240. fieldManagement: 'フィールド管理',
  241. recordManagement: 'レコード管理',
  242. currentSheet: '現在のシート',
  243. sheetName: 'シート名',
  244. fieldsCount: 'フィールド数',
  245. recordsCount: 'レコード数',
  246. createSheet: 'シート作成',
  247. deleteSheet: 'シート削除',
  248. refreshSheets: 'リスト更新',
  249. addField: 'フィールド追加',
  250. viewFields: 'フィールド表示',
  251. addRecord: 'レコード追加',
  252. viewRecords: 'レコード表示',
  253. fieldName: 'フィールド名',
  254. fieldType: 'フィールドタイプ',
  255. recordTitle: 'レコードタイトル',
  256. status: 'ステータス',
  257. createTime: '作成時間',
  258. operation: '操作',
  259. edit: '編集',
  260. delete: '削除',
  261. save: '保存',
  262. cancel: 'キャンセル',
  263. loading: '読み込み中...',
  264. noData: 'データなし',
  265. confirmDelete: '削除確認',
  266. enterSheetName: 'シート名を入力してください',
  267. enterFieldName: 'フィールド名を入力してください',
  268. selectFieldType: 'フィールドタイプを選択してください',
  269. enterRecordTitle: 'レコードタイトルを入力してください',
  270. selectStatus: 'ステータスを選択してください',
  271. success: '成功',
  272. error: 'エラー',
  273. text: 'テキスト',
  274. number: '数値',
  275. date: '日付',
  276. singleSelect: '単一選択',
  277. multiSelect: '複数選択',
  278. attachment: '添付ファイル',
  279. link: 'リンク',
  280. currency: '通貨',
  281. pending: '保留中',
  282. inProgress: '進行中',
  283. completed: '完了',
  284. cancelled: 'キャンセル済み',
  285. createSheetSuccess: 'シートが正常に作成されました',
  286. deleteSheetSuccess: 'シートが正常に削除されました',
  287. addFieldSuccess: 'フィールドが正常に追加されました',
  288. addRecordSuccess: 'レコードが正常に追加されました',
  289. updateRecordSuccess: 'レコードが正常に更新されました',
  290. deleteRecordSuccess: 'レコードが正常に削除されました',
  291. operationFailed: '操作に失敗しました',
  292. pleaseSelectSheet: 'シートを選択してください',
  293. cannotDeleteLastSheet: '最後のシートは削除できません',
  294. cannotDeletePrimaryField: 'プライマリフィールドは削除できません',
  295. documentUuid: 'ドキュメントUUID',
  296. totalSheets: 'シート総数',
  297. untitled: '無題',
  298. sheetManagementDescription: 'シート管理',
  299. fieldManagementDescription: 'フィールド管理',
  300. recordManagementDescription: 'レコード管理',
  301. currentTable: '現在のテーブル',
  302. primaryKey: 'プライマリキー',
  303. recordId: 'レコードID',
  304. cannotDeletePrimaryKeyField: 'プライマリキーフィールドは削除できません',
  305. confirmDeleteField: 'フィールドを削除してもよろしいですか',
  306. deleteFieldSuccess: 'フィールドの削除に成功しました',
  307. deleteFieldFailed: 'フィールドの削除に失敗しました',
  308. dataWillBeLost: '削除後、このフィールドのすべてのデータが失われます',
  309. sheetsUnit: 'シート',
  310. fieldsUnit: 'フィールド',
  311. recordsUnit: 'レコード'
  312. }
  313. };
  314. export function getLocale(locale: string): Locales {
  315. return locales[locale] || locales['zh-CN'];
  316. }