feat(Breadcrumbe): Add Breadcrumb component
style: change function to arrow function
This commit is contained in:
@@ -6,7 +6,7 @@ import { setHtmlPageLang } from './helper'
|
||||
|
||||
export let i18n: ReturnType<typeof createI18n>
|
||||
|
||||
async function createI18nOptions(): Promise<I18nOptions> {
|
||||
const createI18nOptions = async (): Promise<I18nOptions> => {
|
||||
const localeStore = useLocaleStoreWithOut()
|
||||
const locale = localeStore.getLocale
|
||||
const localeMap = localeStore.getLocaleMap
|
||||
@@ -35,7 +35,7 @@ async function createI18nOptions(): Promise<I18nOptions> {
|
||||
}
|
||||
}
|
||||
|
||||
export async function setupI18n(app: App) {
|
||||
export const setupI18n = async (app: App) => {
|
||||
const options = await createI18nOptions()
|
||||
i18n = createI18n(options) as I18n
|
||||
app.use(i18n)
|
||||
|
||||
Reference in New Issue
Block a user