adata-ui 4.0.4 → 4.0.6

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.4",
8
+ "version": "4.0.6",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
package/dist/module.mjs CHANGED
@@ -43,10 +43,13 @@ const module = defineNuxtModule({
43
43
  });
44
44
  await installModule("@nuxtjs/i18n", {
45
45
  defaultLocale: "ru",
46
- strategy: "prefix_except_default",
47
- vueI18n: resolver.resolve("./runtime/i18n/i18n.config.ts")
46
+ strategy: "prefix_except_default"
47
+ });
48
+ addPlugin(resolver.resolve("./runtime/i18n"));
49
+ _nuxt.hook("tailwindcss:config", (tailwindConfig) => {
50
+ tailwindConfig.content ||= [];
51
+ tailwindConfig.content.push(resolver.resolve("./runtime/components/**/*.{vue,js,ts}"));
48
52
  });
49
- addPlugin(resolver.resolve("./runtime/plugin"));
50
53
  }
51
54
  });
52
55
 
@@ -102,7 +102,7 @@ const info = ref([]);
102
102
  </div>
103
103
  <div class="flex justify-center lg:grow lg:items-center lg:justify-end lg:gap-4">
104
104
  <div class="flex flex-col gap-1">
105
- <span>{{ year }} © {{ t("ui.hello") }} "Alldata"</span>
105
+ <span>{{ year }} © {{ t("footer.LLP") }} "Alldata"</span>
106
106
  </div>
107
107
  <i-adata
108
108
  filled
@@ -1,17 +1,13 @@
1
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";
2
5
  export default defineNuxtPlugin((_nuxtApp) => {
3
6
  const { $i18n } = _nuxtApp;
4
7
  const messages = {
5
- ru: {
6
- ui: {
7
- hello: "\u041F\u0440\u0438\u0432\u0435\u0442 \u0438\u0437 \u043C\u043E\u0434\u0443\u043B\u044F"
8
- }
9
- },
10
- en: {
11
- ui: {
12
- hello: "Hello from module"
13
- }
14
- }
8
+ ru: RuLocale,
9
+ en: EnLocale,
10
+ kk: KkLocale
15
11
  };
16
12
  for (const locale in messages) {
17
13
  $i18n.mergeLocaleMessage(locale, messages[locale]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",
File without changes