@dargmuesli/nuxt-vio 3.0.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,7 @@
16
16
  v-else
17
17
  :aria-label="ariaLabel"
18
18
  :class="classes"
19
+ :locale="locale"
19
20
  :to="isToRelative ? append(route.path, to) : to"
20
21
  @click="emit('click')"
21
22
  >
@@ -31,6 +32,7 @@ export interface Props {
31
32
  isColored?: boolean
32
33
  isToRelative?: boolean
33
34
  isUnderlined?: boolean
35
+ locale?: string
34
36
  nofollow?: boolean
35
37
  to: NuxtLinkProps['to']
36
38
  }
@@ -39,6 +41,7 @@ const props = withDefaults(defineProps<Props>(), {
39
41
  isColored: true,
40
42
  isToRelative: false,
41
43
  isUnderlined: false,
44
+ locale: undefined,
42
45
  nofollow: false,
43
46
  })
44
47
 
@@ -11,8 +11,12 @@ export const useAppLayout = () => {
11
11
  })
12
12
 
13
13
  useServerSeoMeta({
14
- msapplicationTileColor: appConfig.vio.themeColor,
15
- themeColor: appConfig.vio.themeColor,
14
+ ...(appConfig.vio.themeColor
15
+ ? {
16
+ msapplicationTileColor: appConfig.vio.themeColor,
17
+ themeColor: appConfig.vio.themeColor,
18
+ }
19
+ : {}),
16
20
  titleTemplate: (titleChunk) => {
17
21
  return titleChunk && titleChunk !== siteConfig.name
18
22
  ? `${titleChunk} ${siteConfig.titleSeparator} ${siteConfig.name}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"