bfg-common 1.5.669 → 1.5.670

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.
@@ -1,7 +1,7 @@
1
1
  export function useEnvLanguage(): string {
2
2
  // const { $store }: any = useNuxtApp()
3
3
 
4
- let localizationCode = 'en_US'
4
+ const localizationCode = ref<string>('en_US')
5
5
  const langFromLocalStorage =
6
6
  // $store.getters['main/getInterfaceLang'] || // Из $store для Сферы, но думаю нужно сделать одинаково из localStorage
7
7
  useLocalStorage('lang')
@@ -12,11 +12,11 @@ export function useEnvLanguage(): string {
12
12
  langFromLocalStorage === 'ru_RU' ||
13
13
  langFromLocalStorage === 'hy_AM'
14
14
  ) {
15
- localizationCode = langFromLocalStorage
15
+ localizationCode.value = langFromLocalStorage
16
16
  }
17
17
  }
18
18
 
19
- localizationCode = localizationCode.slice(0, 2).toUpperCase()
19
+ localizationCode.value = localizationCode.value.slice(0, 2).toUpperCase()
20
20
 
21
- return localizationCode
21
+ return localizationCode.value
22
22
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.669",
4
+ "version": "1.5.670",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",