forked from Mirrors/elk
refactor: move shared config into ~/config/
This commit is contained in:
parent
7a07d21b76
commit
83d313c47b
2 changed files with 2 additions and 5 deletions
|
@ -49,7 +49,7 @@ const datetimeFormats = Object.keys(locales).reduce((acc, key) => {
|
||||||
return acc
|
return acc
|
||||||
}, <DateTimeFormats>{})
|
}, <DateTimeFormats>{})
|
||||||
|
|
||||||
const i18n: NuxtI18nOptions = {
|
export const i18n: NuxtI18nOptions = {
|
||||||
locales,
|
locales,
|
||||||
strategy: 'no_prefix',
|
strategy: 'no_prefix',
|
||||||
detectBrowserLanguage: false,
|
detectBrowserLanguage: false,
|
||||||
|
@ -62,7 +62,4 @@ const i18n: NuxtI18nOptions = {
|
||||||
datetimeFormats,
|
datetimeFormats,
|
||||||
},
|
},
|
||||||
lazy: true,
|
lazy: true,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export { i18n }
|
|
|
@ -1,6 +1,6 @@
|
||||||
import Inspect from 'vite-plugin-inspect'
|
import Inspect from 'vite-plugin-inspect'
|
||||||
import { isCI, isDevelopment } from 'std-env'
|
import { isCI, isDevelopment } from 'std-env'
|
||||||
import { i18n } from './modules/i18n-configuration'
|
import { i18n } from './config/i18n'
|
||||||
|
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
ssr: false,
|
ssr: false,
|
||||||
|
|
Loading…
Reference in a new issue