adata-ui 3.1.90 → 3.1.91

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.d.mts CHANGED
@@ -3,7 +3,6 @@ import * as _nuxt_schema from '@nuxt/schema';
3
3
  interface ModuleOptions {
4
4
  colorMode?: boolean;
5
5
  localize?: boolean;
6
- baseUrl?: string;
7
6
  }
8
7
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
9
8
 
package/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
7
  "failOnWarn": false,
8
- "version": "3.1.90",
8
+ "version": "3.1.91",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
package/dist/module.mjs CHANGED
@@ -20,8 +20,7 @@ const module = defineNuxtModule({
20
20
  _nuxt.options.runtimeConfig.public.adataUI = defu(
21
21
  _nuxt.options.runtimeConfig.public.adataUI ?? {},
22
22
  {
23
- localize: _options.localize,
24
- baseUrl: _options.baseUrl
23
+ localize: _options.localize
25
24
  }
26
25
  );
27
26
  _nuxt.options.nitro = defu(_nuxt.options.nitro || {}, { publicAssets: [] });
@@ -69,19 +68,10 @@ const module = defineNuxtModule({
69
68
  mode: "client"
70
69
  });
71
70
  addPlugin(resolver.resolve("./runtime/plugins/hreflang"));
72
- const i18nOptions = {
71
+ await installModule("@nuxtjs/i18n", {
73
72
  defaultLocale: "ru",
74
- strategy: "prefix_except_default",
75
- locales: [
76
- { code: "ru", language: "ru-RU" },
77
- { code: "en", language: "en-US" },
78
- { code: "kk", language: "kk-KZ" }
79
- ]
80
- };
81
- if (_options.baseUrl) {
82
- i18nOptions.baseUrl = _options.baseUrl;
83
- }
84
- await installModule("@nuxtjs/i18n", i18nOptions);
73
+ strategy: "prefix_except_default"
74
+ });
85
75
  addPlugin(resolver.resolve("./runtime/i18n"));
86
76
  addImportsDir(resolver.resolve("./runtime/composables"));
87
77
  extendViteConfig((config) => {
@@ -1,7 +1,7 @@
1
1
  import { useHead, useLocaleHead, useRuntimeConfig } from "#imports";
2
2
  export const useHreflangLinks = () => {
3
3
  const config = useRuntimeConfig();
4
- const baseUrl = config.public?.adataUI?.baseUrl;
4
+ const baseUrl = config.public?.i18n?.baseUrl;
5
5
  if (!baseUrl) return;
6
6
  const i18nHead = useLocaleHead();
7
7
  useHead(() => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "3.1.90",
3
+ "version": "3.1.91",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",