@vesperjs/vue 0.1.1 → 0.1.3

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/index.d.mts CHANGED
@@ -21618,7 +21618,7 @@ declare module '@vue/runtime-core' {
21618
21618
  //#region src/composables/use-locale.d.ts
21619
21619
  declare const useLocale: () => {
21620
21620
  locale: WritableComputedRef<"en" | "ja", "en" | "ja">;
21621
- autoDetect: () => void;
21621
+ autodetect: () => void;
21622
21622
  };
21623
21623
  //#endregion
21624
21624
  //#region src/composables/use-nano-route.d.ts
package/dist/index.mjs CHANGED
@@ -64,13 +64,13 @@ const i18n = createI18n({
64
64
  //#region src/composables/use-locale.ts
65
65
  const useLocale = () => {
66
66
  const { locale, availableLocales, fallbackLocale } = i18n.global;
67
- const autoDetect = () => {
67
+ const autodetect = () => {
68
68
  const viewLocale = globalThis.navigator.languages[0];
69
69
  locale.value = availableLocales.includes(viewLocale) ? viewLocale : fallbackLocale.value;
70
70
  };
71
71
  return {
72
72
  locale,
73
- autoDetect
73
+ autodetect
74
74
  };
75
75
  };
76
76
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesperjs/vue",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "keywords": [
5
5
  "vue.js"
6
6
  ],
@@ -29,6 +29,7 @@
29
29
  "vue-i18n": "11.3.0"
30
30
  },
31
31
  "devDependencies": {
32
+ "@eslint/js": "^9.39.4",
32
33
  "@typescript-eslint/eslint-plugin": "^8.57.0",
33
34
  "@typescript-eslint/parser": "^8.57.0",
34
35
  "@vue/eslint-config-typescript": "^14.7.0",