valaxy-theme-press 0.24.1 → 0.24.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.
@@ -70,7 +70,7 @@ const $title = computed(() => tObject(frontmatter.value.title || '', locale.valu
70
70
  </h2>
71
71
  <div class="link">
72
72
  <RouterLink :to="nextPost.href">
73
- {{ nextPost.title }}
73
+ {{ tObject(nextPost.title || '', locale) }}
74
74
  </RouterLink>
75
75
  </div>
76
76
  </div>
@@ -80,7 +80,7 @@ const $title = computed(() => tObject(frontmatter.value.title || '', locale.valu
80
80
  </h2>
81
81
  <div class="link">
82
82
  <RouterLink :to="prevPost.href">
83
- {{ prevPost.title }}
83
+ {{ tObject(prevPost.title || '', locale) }}
84
84
  </RouterLink>
85
85
  </div>
86
86
  </div>
@@ -1,9 +1,13 @@
1
1
  <script lang="ts" setup>
2
2
  import type { Post } from 'valaxy'
3
+ import { tObject } from 'valaxy'
4
+ import { useI18n } from 'vue-i18n'
3
5
 
4
6
  defineProps<{
5
7
  post: Post
6
8
  }>()
9
+
10
+ const { locale } = useI18n()
7
11
  </script>
8
12
 
9
13
  <template>
@@ -13,7 +17,7 @@ defineProps<{
13
17
  <div class="space-y-6">
14
18
  <h2 class="text-2xl leading-8 font-bold tracking-tight">
15
19
  <RouterLink class="text-gray-900" :to="post.path || ''">
16
- {{ post.title }}
20
+ {{ tObject(post.title || '', locale) }}
17
21
  </RouterLink>
18
22
  </h2>
19
23
  <div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-press",
3
- "version": "0.24.1",
3
+ "version": "0.24.3",
4
4
  "description": "Docs Theme for Valaxy",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
@@ -26,6 +26,6 @@
26
26
  "@docsearch/js": "^3.9.0"
27
27
  },
28
28
  "devDependencies": {
29
- "valaxy": "0.24.1"
29
+ "valaxy": "0.24.3"
30
30
  }
31
31
  }