mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
style(projects): format code
This commit is contained in:
@ -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') {
|
||||
|
@ -11,7 +11,8 @@ const i18n = createI18n({
|
||||
});
|
||||
|
||||
/**
|
||||
* setup plugin i18n
|
||||
* Setup plugin i18n
|
||||
*
|
||||
* @param app
|
||||
*/
|
||||
export function setupI18n(app: App) {
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user