Skip to content

Commit

Permalink
feat: full i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
贾志伟 committed Apr 7, 2024
1 parent ca21536 commit 55c6b79
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@easily-tools/mock-server-web",
"version": "1.0.0",
"version": "1.0.1",
"files": [
"dist"
],
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export default {
param: 'param',
responseConfig: 'responseConfig',
sceneName: 'scene name',
apiName: 'api name',
apiRemarks: 'api remarks',
iteration: 'Iteration',
systemSetting: 'System Setting',
},
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export default {
param: '参数',
responseConfig: '返回值配置',
sceneName: '场景名',
apiName: '接口名',
apiRemarks: '接口备注',
iteration: '迭代期',
systemSetting: '系统设置',
},
Expand Down
10 changes: 5 additions & 5 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const handleMockItemSceneOperation = async (operation: string, mockItemBasicInfo
case 'add':
currentEditingSceneItem.value = {
id: uuid(),
name: '场景名',
name: t('global.sceneName'),
iteration: iterationList.value[0] ?? '',
param: '{\r\n \r\n}',
responseConf: 'export default (param: any) => {\r\n \r\n}',
Expand Down Expand Up @@ -289,9 +289,9 @@ const handleAddMockItem = () => {
basicInfo: {
id: uuid(),
path: '',
name: '接口名',
name: t('global.apiName'),
type: 'HTTP',
remarks: '接口备注',
remarks: t('global.apiRemarks'),
requestMethod: 'GET',
mockPattern: 'mock',
},
Expand All @@ -318,9 +318,9 @@ const handleGetMockList = async () => {
basicInfo: {
id: uuid(),
path: '',
name: '接口名',
name: t('global.apiName'),
type: 'HTTP',
remarks: '接口备注',
remarks: t('global.apiRemarks'),
requestMethod: 'GET',
mockPattern: 'mock',
},
Expand Down

0 comments on commit 55c6b79

Please sign in to comment.