@sbc-connect/nuxt-base 0.10.0 → 0.11.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sbc-connect/nuxt-base
2
2
 
3
+ ## 0.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#178](https://github.com/bcgov/connect-nuxt/pull/178) [`3c8d9bf`](https://github.com/bcgov/connect-nuxt/commit/3c8d9bfdf9147d6fd6ce0dadc4b47f043feb4f4b) Thanks [@deetz99](https://github.com/deetz99)! - Use locale from useI18n instead of $i18n global
8
+
3
9
  ## 0.10.0
4
10
 
5
11
  ### Minor Changes
@@ -8,11 +8,13 @@ import frSmallLogo from 'BCGovLogoSmFr'
8
8
  import enLargeLogo from 'BCGovLogoLgEn'
9
9
  // @ts-expect-error - Cannot find module 'BCGovLogoSmEn' or its corresponding type declarations.ts(2307)
10
10
  import enSmallLogo from 'BCGovLogoSmEn'
11
+
12
+ const { locale } = useI18n()
11
13
  </script>
12
14
 
13
15
  <template>
14
16
  <!-- use french logo for french locale, any other locale uses english logo -->
15
- <div v-if="$i18n.locale === 'fr-CA'" class="shrink-0">
17
+ <div v-if="locale === 'fr-CA'" class="shrink-0">
16
18
  <!-- Using scale because it will increase the size of the image without affecting the container size -->
17
19
  <!-- there is a lot of padding on the images, if only the height gets increased, -->
18
20
  <!-- the padding makes the header too tall -->
@@ -4,6 +4,7 @@ const uiVersion = rtc.version
4
4
  const feesUrl = `${rtc.registryHomeUrl}product-fees`
5
5
  const dependencyVersions: string[] = useAppConfig().connect?.footer?.versions || []
6
6
  const localePath = useLocalePath()
7
+ const { locale } = useI18n()
7
8
  const links = [
8
9
  {
9
10
  label: 'connect.label.home',
@@ -64,7 +65,7 @@ const appVersions = computed<string[]>(() => {
64
65
  ]"
65
66
  >
66
67
  <NuxtLink
67
- :to="link.to === '/' ? `/${$i18n.locale}` : link.to"
68
+ :to="link.to === '/' ? `/${locale}` : link.to"
68
69
  :target="link.target"
69
70
  :class="[
70
71
  'rounded p-1 text-sm text-secondary',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sbc-connect/nuxt-base",
3
3
  "type": "module",
4
- "version": "0.10.0",
4
+ "version": "0.11.0",
5
5
  "repository": "github:bcgov/connect-nuxt",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "./nuxt.config.ts",
@@ -26,8 +26,8 @@
26
26
  "typescript": "6.0.3",
27
27
  "vue-tsc": "3.3.1",
28
28
  "@sbc-connect/eslint-config": "0.0.8",
29
- "@sbc-connect/playwright-config": "0.2.0",
30
- "@sbc-connect/vitest-config": "0.2.0"
29
+ "@sbc-connect/vitest-config": "0.2.0",
30
+ "@sbc-connect/playwright-config": "0.2.0"
31
31
  },
32
32
  "scripts": {
33
33
  "preinstall": "npx only-allow pnpm",