From f242e5fd41015213308cc0fa1895dbdf3076c478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Mon, 29 Jan 2024 17:05:58 +0800 Subject: [PATCH] refactor: locale --> locales --- src/{locale => locales}/en.json | 0 src/{locale => locales}/index.ts | 0 src/{locale => locales}/zh.json | 0 src/main.ts | 2 +- src/utils/http.ts | 2 +- 5 files changed, 2 insertions(+), 2 deletions(-) rename src/{locale => locales}/en.json (100%) rename src/{locale => locales}/index.ts (100%) rename src/{locale => locales}/zh.json (100%) diff --git a/src/locale/en.json b/src/locales/en.json similarity index 100% rename from src/locale/en.json rename to src/locales/en.json diff --git a/src/locale/index.ts b/src/locales/index.ts similarity index 100% rename from src/locale/index.ts rename to src/locales/index.ts diff --git a/src/locale/zh.json b/src/locales/zh.json similarity index 100% rename from src/locale/zh.json rename to src/locales/zh.json diff --git a/src/main.ts b/src/main.ts index 51f3a4a..d7328f0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,7 @@ import { createSSRApp } from 'vue' import App from './App.vue' import store from './store' -import i18n from './locale/index' +import i18n from './locales/index' import 'virtual:svg-icons-register' import 'virtual:uno.css' diff --git a/src/utils/http.ts b/src/utils/http.ts index 3a76496..db33435 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -1,7 +1,7 @@ /* eslint-disable no-param-reassign */ import { useUserStore } from '@/store' import { UserInfo } from '@/typings' -import { translate as t } from '@/locale/index' +import { translate as t } from '@/locales/index' type Data = { code: number