diff --git a/src/locales/en/modules/api.ts b/src/locales/en/modules/api.ts index 68106757..f879d274 100644 --- a/src/locales/en/modules/api.ts +++ b/src/locales/en/modules/api.ts @@ -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!', @@ -11,5 +11,3 @@ const api = { errMsg504: 'Network timeout!', errMsg505: 'The http version does not support the request!', }; - -export default api; diff --git a/src/locales/en/modules/layout.ts b/src/locales/en/modules/layout.ts index bfcb5ba9..5f6bbbd2 100644 --- a/src/locales/en/modules/layout.ts +++ b/src/locales/en/modules/layout.ts @@ -1,4 +1,4 @@ -const layout = { +export default { setup: 'Set Up', layoutSettings: 'Layout Settings', themeSettings: 'Theme Settings', @@ -18,5 +18,3 @@ const layout = { fullScreen: 'Full Screen', }, }; - -export default layout; diff --git a/src/locales/en/modules/route.ts b/src/locales/en/modules/route.ts index 2adc7f6a..89d87c72 100644 --- a/src/locales/en/modules/route.ts +++ b/src/locales/en/modules/route.ts @@ -1,4 +1,4 @@ -const route = { +export default { pathName: { index: 'Home', functions: 'Functions', @@ -51,5 +51,3 @@ const route = { importError: 'The file has no default export', }, }; - -export default route; diff --git a/src/locales/en/modules/sys.ts b/src/locales/en/modules/sys.ts index a3f2fa44..c9155ca9 100644 --- a/src/locales/en/modules/sys.ts +++ b/src/locales/en/modules/sys.ts @@ -1,4 +1,4 @@ -const sys = { +export default { errorTip: 'Error Tip', okText: 'OK', @@ -20,5 +20,3 @@ const sys = { }, }, }; - -export default sys; diff --git a/src/locales/zh-CN/modules/api.ts b/src/locales/zh-CN/modules/api.ts index b2322e04..aac02062 100644 --- a/src/locales/zh-CN/modules/api.ts +++ b/src/locales/zh-CN/modules/api.ts @@ -1,4 +1,4 @@ -const api = { +export default { errMsg401: '用户没有权限!', errMsg403: '用户得到授权,但是访问是被禁止的。!', errMsg404: '网络请求错误,未找到该资源!', @@ -11,5 +11,3 @@ const api = { errMsg504: '网络超时!', errMsg505: 'http版本不支持该请求!', }; - -export default api; diff --git a/src/locales/zh-CN/modules/layout.ts b/src/locales/zh-CN/modules/layout.ts index b883fe63..cad16e70 100644 --- a/src/locales/zh-CN/modules/layout.ts +++ b/src/locales/zh-CN/modules/layout.ts @@ -1,4 +1,4 @@ -const layout = { +export default { setup: '设置', layoutSettings: '布局设置', themeSettings: '主题设置', @@ -18,5 +18,3 @@ const layout = { fullScreen: '全屏', }, }; - -export default layout; diff --git a/src/locales/zh-CN/modules/route.ts b/src/locales/zh-CN/modules/route.ts index 9199dff3..2be54a18 100644 --- a/src/locales/zh-CN/modules/route.ts +++ b/src/locales/zh-CN/modules/route.ts @@ -1,4 +1,4 @@ -const route = { +export default { pathName: { index: '首页', functions: '功能', @@ -51,5 +51,3 @@ const route = { importError: '文件没有默认导出', }, }; - -export default route; diff --git a/src/locales/zh-CN/modules/sys.ts b/src/locales/zh-CN/modules/sys.ts index 3de16d45..55eb4c22 100644 --- a/src/locales/zh-CN/modules/sys.ts +++ b/src/locales/zh-CN/modules/sys.ts @@ -1,4 +1,4 @@ -const sys = { +export default { errorTip: '错误提示', okText: '确认', @@ -20,5 +20,3 @@ const sys = { }, }, }; - -export default sys;