Skip to content

Commit f8a8bc2

Browse files
committed
feat: add i18n plugin and module
1 parent 94788f7 commit f8a8bc2

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

detectors/nuxt.modules.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,18 @@
348348
"url": "https://strapi.nuxtjs.org/"
349349
},
350350
"detectors": {
351-
"js": "window.$nuxt && (window.$strapi || window.$nuxt.$options.context.app.$strapi)"
351+
"js": "window.$nuxt && (window.$nuxt.$strapi || window.$nuxt.$options.context.app.$strapi)"
352+
}
353+
},
354+
"nuxt-i18n": {
355+
"metas": {
356+
"slug": "nuxt-i18n",
357+
"name": "nuxt-i18n",
358+
"imgPath": null,
359+
"url": "https://nuxt-community.github.io/nuxt-i18n/"
360+
},
361+
"detectors": {
362+
"js": "window.$nuxt && window.$nuxt.$nuxtI18nSeo"
352363
}
353364
}
354365
}

detectors/plugins.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,16 @@
6262
"detectors": {
6363
"js": "(window.$nuxt && window.$nuxt.$warehouse) || [...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__ && el.__vue__.$warehouse)).filter(Boolean).length"
6464
}
65+
},
66+
"vue-i18n": {
67+
"metas": {
68+
"slug": "vue-i18n",
69+
"name": "vue-i18n",
70+
"imgPath": null,
71+
"url": "https://kazupon.github.io/vue-i18n/"
72+
},
73+
"detectors": {
74+
"js": "[...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__ && el.__vue__.$i18n)).filter(Boolean).length"
75+
}
6576
}
66-
}
77+
}

0 commit comments

Comments
 (0)