Skip to content

Commit 03f1411

Browse files
committed
refactor(i18n): prepare for i18n
1 parent 9c8c41e commit 03f1411

File tree

9 files changed

+33
-94
lines changed

9 files changed

+33
-94
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.ts

Lines changed: 3 additions & 8 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
import checker from 'vite-plugin-checker';
77

88
const isDev = process.env.NODE_ENV === 'development';
@@ -104,12 +104,7 @@ export default defineNuxtConfig({
104104
}
105105
},
106106
'@csstools/postcss-global-data': {
107-
files: [
108-
path.resolve(
109-
__dirname,
110-
'src/globals/postcss/preset-env/custom-media.pcss'
111-
)
112-
]
107+
files: [path.resolve(__dirname, 'postcss/preset-env/custom-media.pcss')]
113108
},
114109
'postcss-custom-media': {},
115110
'postcss-functions': {

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@fullhuman/postcss-purgecss": "7.0.2",
6363
"@js-basics/vector": "2.2.2",
6464
"@nuxt/content": "3.4.0",
65-
"@nuxtjs/i18n": "9.5.3",
65+
"@nuxtjs/i18n": "^9.5.3",
6666
"@nuxtjs/seo": "3.0.2",
6767
"@pinia/nuxt": "0.11.0",
6868
"nuxt": "3.16.2",
File renamed without changes.

0 commit comments

Comments
 (0)