adata-ui 4.0.3 → 4.0.5

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/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
7
  "failOnWarn": false,
8
- "version": "4.0.3",
8
+ "version": "4.0.5",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
package/dist/module.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defu } from 'defu';
2
- import { defineNuxtModule, createResolver, addVitePlugin, addComponentsDir, addPlugin, installModule, hasNuxtModule } from '@nuxt/kit';
2
+ import { defineNuxtModule, createResolver, addVitePlugin, addComponentsDir, installModule, addPlugin, hasNuxtModule } from '@nuxt/kit';
3
3
 
4
4
  const module = defineNuxtModule({
5
5
  meta: {
@@ -41,12 +41,11 @@ const module = defineNuxtModule({
41
41
  path: resolver.resolve("./runtime/icons"),
42
42
  prefix: "I"
43
43
  });
44
- addPlugin(resolver.resolve("./runtime/plugin"));
45
44
  await installModule("@nuxtjs/i18n", {
46
45
  defaultLocale: "ru",
47
- strategy: "prefix_except_default",
48
- vueI18n: resolver.resolve("./runtime/i18n/i18n.config.ts")
46
+ strategy: "prefix_except_default"
49
47
  });
48
+ addPlugin(resolver.resolve("./runtime/i18n"));
50
49
  }
51
50
  });
52
51
 
@@ -0,0 +1,15 @@
1
+ import { defineNuxtPlugin } from "#app";
2
+ import RuLocale from "./lang/ru.js";
3
+ import EnLocale from "./lang/en.js";
4
+ import KkLocale from "./lang/kk.js";
5
+ export default defineNuxtPlugin((_nuxtApp) => {
6
+ const { $i18n } = _nuxtApp;
7
+ const messages = {
8
+ ru: RuLocale,
9
+ en: EnLocale,
10
+ kk: KkLocale
11
+ };
12
+ for (const locale in messages) {
13
+ $i18n.mergeLocaleMessage(locale, messages[locale]);
14
+ }
15
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",
@@ -1,4 +0,0 @@
1
- import { defineNuxtPlugin } from "#app";
2
- export default defineNuxtPlugin((_nuxtApp) => {
3
- console.log("Plugin injected by my-module!");
4
- });
File without changes