Skip to content

Commit

Permalink
refactor(locales): ♻️ 匿名导出
Browse files Browse the repository at this point in the history
  • Loading branch information
jsxiaosi committed Aug 16, 2023
1 parent 9f76057 commit abed8be
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 24 deletions.
4 changes: 1 addition & 3 deletions src/locales/en/modules/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const api = {
export default {
errMsg401: 'The user does not have permission!',
errMsg403: 'The user is authorized, but access is forbidden!',
errMsg404: 'Network request error, the resource was not found!',
Expand All @@ -11,5 +11,3 @@ const api = {
errMsg504: 'Network timeout!',
errMsg505: 'The http version does not support the request!',
};

export default api;
4 changes: 1 addition & 3 deletions src/locales/en/modules/layout.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const layout = {
export default {
setup: 'Set Up',
layoutSettings: 'Layout Settings',
themeSettings: 'Theme Settings',
Expand All @@ -18,5 +18,3 @@ const layout = {
fullScreen: 'Full Screen',
},
};

export default layout;
4 changes: 1 addition & 3 deletions src/locales/en/modules/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const route = {
export default {
pathName: {
index: 'Home',
functions: 'Functions',
Expand Down Expand Up @@ -51,5 +51,3 @@ const route = {
importError: 'The file has no default export',
},
};

export default route;
4 changes: 1 addition & 3 deletions src/locales/en/modules/sys.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const sys = {
export default {
errorTip: 'Error Tip',

okText: 'OK',
Expand All @@ -20,5 +20,3 @@ const sys = {
},
},
};

export default sys;
4 changes: 1 addition & 3 deletions src/locales/zh-CN/modules/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const api = {
export default {
errMsg401: '用户没有权限!',
errMsg403: '用户得到授权,但是访问是被禁止的。!',
errMsg404: '网络请求错误,未找到该资源!',
Expand All @@ -11,5 +11,3 @@ const api = {
errMsg504: '网络超时!',
errMsg505: 'http版本不支持该请求!',
};

export default api;
4 changes: 1 addition & 3 deletions src/locales/zh-CN/modules/layout.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const layout = {
export default {
setup: '设置',
layoutSettings: '布局设置',
themeSettings: '主题设置',
Expand All @@ -18,5 +18,3 @@ const layout = {
fullScreen: '全屏',
},
};

export default layout;
4 changes: 1 addition & 3 deletions src/locales/zh-CN/modules/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const route = {
export default {
pathName: {
index: '首页',
functions: '功能',
Expand Down Expand Up @@ -51,5 +51,3 @@ const route = {
importError: '文件没有默认导出',
},
};

export default route;
4 changes: 1 addition & 3 deletions src/locales/zh-CN/modules/sys.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const sys = {
export default {
errorTip: '错误提示',

okText: '确认',
Expand All @@ -20,5 +20,3 @@ const sys = {
},
},
};

export default sys;

0 comments on commit abed8be

Please sign in to comment.