@vesperjs/nuxt 0.1.6 → 0.1.7

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.
@@ -7,7 +7,7 @@ export const useOFetch = async function <T = unknown, E = any>(
7
7
  ) {
8
8
  const { $api } = useNuxtApp()
9
9
 
10
- const pending = ref<boolean>(true)
10
+ const pending = ref(true)
11
11
 
12
12
  const data = ref<T>()
13
13
  const error = ref<FetchError<E>>()
@@ -6,7 +6,7 @@ export const useLocale = function () {
6
6
  const { $i18n } = useNuxtApp() as any
7
7
  const { locale, availableLocales, fallbackLocale } = $i18n
8
8
  const autodetect = (): void => {
9
- const browserLocale: string | null = useBrowserLocale()
9
+ const browserLocale: string | null = useBrowserLocale()?.split('-')[0] ?? null
10
10
  // console.log(browserLocale)
11
11
  // console.log(locales.value)
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesperjs/nuxt",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "keywords": [
5
5
  "nuxt",
6
6
  "vue.js"