Skip to content

Commit

Permalink
Merge pull request #5 from DDDDD12138/feat/syntax-compatibility
Browse files Browse the repository at this point in the history
feat: syntax compatibility
  • Loading branch information
Jinjiang authored Nov 29, 2024
2 parents 02a6e68 + 6a9c4ca commit bca2846
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ui/TranslationStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ const defaultI18nLabels: {
import { computed } from 'vue'
import { useData } from 'vitepress'
const {
i18nLabels,
status
} = withDefaults(
const props = withDefaults(
defineProps<{
i18nLabels: { [lang: string]: string }
status: Status
Expand All @@ -32,6 +29,8 @@ const {
}
)
const { i18nLabels, status } = props
const { site } = useData()
const label = computed<string>(() => {
const localeIndex = site.value.localeIndex
Expand Down

0 comments on commit bca2846

Please sign in to comment.