simple-content-site 1.2.0 → 1.3.0

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.
@@ -7,7 +7,7 @@ export default defineNuxtModule({
7
7
  async setup(_options, nuxt) {
8
8
  const { resolve } = createResolver(import.meta.url)
9
9
 
10
- const isI18nEnabled = !!(nuxt.options.i18n && nuxt.options.i18n.locales)
10
+ const isI18nEnabled = !!(nuxt.options.i18n && nuxt.options.i18n.locales && nuxt.options.i18n.locales.length > 0)
11
11
 
12
12
  // Ensure useSiteI18n is available in the app
13
13
  nuxt.hook('imports:extend', (imports) => {
@@ -19,6 +19,11 @@ export default defineNuxtModule({
19
19
  })
20
20
  })
21
21
 
22
+ // might want to know about this stuff.
23
+ if ((import.meta.dev || nuxt.options.dev) && !isI18nEnabled) {
24
+ console.warn('[Site] I18N is not enabled - using default landing page without language prefix')
25
+ }
26
+
22
27
  extendPages((pages) => {
23
28
  const landingTemplate = resolve('../app/templates/landing.vue')
24
29
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "simple-content-site",
3
3
  "description": "Nuxt layer for simple website with basic functions.",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/hareland/simple-content-site-layer.git"
9
+ "url": "git+https://github.com/hareland/simple-content-site.git"
10
10
  },
11
11
  "private": false,
12
12
  "license": "MIT",
@@ -25,10 +25,10 @@
25
25
  "@iconify-json/lucide": "^1.2.73",
26
26
  "@iconify-json/simple-icons": "^1.2.59",
27
27
  "@iconify-json/vscode-icons": "^1.2.35",
28
- "@nuxt/content": "https://pkg.pr.new/@nuxt/content@dd854d5",
28
+ "@nuxt/content": "^3.8.2",
29
29
  "@nuxt/image": "^1.11.0",
30
30
  "@nuxt/kit": "^4.2.1",
31
- "@nuxt/ui": "4.2.1",
31
+ "@nuxt/ui": "^4.2.1",
32
32
  "@nuxtjs/i18n": "^10.2.1",
33
33
  "@nuxtjs/mdc": "^0.18.4",
34
34
  "@nuxtjs/robots": "^5.5.6",