@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 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: 'app/i18n/locales/',
107
+ langDir: 'locales/',
108
108
  strategy: 'no_prefix',
109
109
  detectBrowserLanguage: { useCookie: true, cookieKey: 'i18n_locale' },
110
- vueI18n: './app/i18n/i18n.config.ts',
110
+ vueI18n: './i18n/i18n.config.ts',
111
111
  },
112
112
  i18now: {
113
113
  projectId: process.env.I18NOW_PROJECT_ID ?? '',
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "0.1.23",
7
+ "version": "0.1.25",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@uipkge/nuxt",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {
7
- "@uipkge/nuxt": "./bin/cli.mjs"
7
+ "i18now-nuxt": "./bin/cli.mjs"
8
8
  },
9
9
  "exports": {
10
10
  ".": {