style(projects): format code

This commit is contained in:
Soybean
2023-12-14 21:45:29 +08:00
parent a176dc443e
commit a748166399
127 changed files with 2472 additions and 3006 deletions

View File

@ -4,7 +4,8 @@ import 'dayjs/locale/en';
import { localStg } from '@/utils/storage';
/**
* set dayjs locale
* Set dayjs locale
*
* @param lang
*/
export function setDayjsLocale(lang: App.I18n.LangType = 'zh-CN') {

View File

@ -11,7 +11,8 @@ const i18n = createI18n({
});
/**
* setup plugin i18n
* Setup plugin i18n
*
* @param app
*/
export function setupI18n(app: App) {

View File

@ -1,5 +1,5 @@
import { zhCN, enUS, dateZhCN, dateEnUS } from 'naive-ui';
import type { NLocale, NDateLocale } from 'naive-ui';
import { dateEnUS, dateZhCN, enUS, zhCN } from 'naive-ui';
import type { NDateLocale, NLocale } from 'naive-ui';
export const naiveLocales: Record<App.I18n.LangType, NLocale> = {
'zh-CN': zhCN,