Skip to content

Commit b0b391e

Browse files
committed
refactor(i18n): prepare for i18n
1 parent 598e574 commit b0b391e

File tree

9 files changed

+48
-51
lines changed

9 files changed

+48
-51
lines changed

i18n.config.js renamed to i18n/i18n.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { i18nMessageDe, i18nMessageEn } from './src/globals/locales';
1+
import { i18nMessageDe, i18nMessageEn } from './locales';
22

33
export const DEFAULT_LOCALE = 'en';
44

File renamed without changes.
File renamed without changes.
File renamed without changes.

nuxt.config.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import path from 'pathe';
22
import { defineNuxtConfig } from 'nuxt/config';
33
import svgLoader from 'vite-svg-loader';
4-
import * as postcssFunctions from './src/globals/postcss/functions';
5-
import { DEFAULT_LOCALE } from './i18n.config';
4+
import * as postcssFunctions from './postcss/functions';
5+
import { DEFAULT_LOCALE } from './i18n/i18n.config';
66

77
const isDev = process.env.NODE_ENV === 'development';
88

@@ -104,10 +104,7 @@ export default defineNuxtConfig(() => {
104104
},
105105
'@csstools/postcss-global-data': {
106106
files: [
107-
path.resolve(
108-
__dirname,
109-
'src/globals/postcss/preset-env/custom-media.pcss'
110-
)
107+
path.resolve(__dirname, 'postcss/preset-env/custom-media.pcss')
111108
]
112109
},
113110
'postcss-custom-media': {},

package-lock.json

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@
5858
"@fullhuman/postcss-purgecss": "7.0.2",
5959
"@js-basics/vector": "2.2.2",
6060
"@nuxt/content": "3.4.0",
61-
"@nuxtjs/i18n": "9.5.2",
61+
"@nuxtjs/i18n": "^9.5.3",
6262
"@nuxtjs/seo": "3.0.2",
6363
"@pinia/nuxt": "0.10.1",
6464
"lost": "9.0.2",
6565
"nuxt": "3.16.2",
66-
"nuxt-booster": "3.2.7",
66+
"nuxt-booster": "^3.2.8",
6767
"pathe": "2.0.3",
6868
"pinia": "3.0.1",
6969
"postcss-custom-media": "11.0.5",
File renamed without changes.

0 commit comments

Comments
 (0)