@uipkge/nuxt 0.1.23 ā 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.mjs +3 -3
- package/dist/module.json +1 -1
- package/package.json +2 -2
package/bin/cli.mjs
CHANGED
|
@@ -38,7 +38,7 @@ if (!isInstalled) {
|
|
|
38
38
|
run('npm link @uipkge/nuxt', { cwd: TARGET_DIR })
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
// 4. Create i18n folder structure
|
|
41
|
+
// 4. Create i18n folder structure (inside app/ for Nuxt 4 compatibility)
|
|
42
42
|
const i18nDir = path.join(TARGET_DIR, 'app/i18n/locales')
|
|
43
43
|
if (!fs.existsSync(i18nDir)) {
|
|
44
44
|
console.log('\nš Creating i18n folders...')
|
|
@@ -104,10 +104,10 @@ const nuxtConfigContent = `export default defineNuxtConfig({
|
|
|
104
104
|
{ code: 'he', file: 'he.json' },
|
|
105
105
|
{ code: 'de', file: 'de.json' },
|
|
106
106
|
],
|
|
107
|
-
langDir: '
|
|
107
|
+
langDir: 'locales/',
|
|
108
108
|
strategy: 'no_prefix',
|
|
109
109
|
detectBrowserLanguage: { useCookie: true, cookieKey: 'i18n_locale' },
|
|
110
|
-
vueI18n: './
|
|
110
|
+
vueI18n: './i18n/i18n.config.ts',
|
|
111
111
|
},
|
|
112
112
|
i18now: {
|
|
113
113
|
projectId: process.env.I18NOW_PROJECT_ID ?? '',
|
package/dist/module.json
CHANGED