Skip to content

Commit

Permalink
i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Aug 28, 2024
1 parent 5d304e3 commit 2495125
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/searchbox/NodeSearchFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Select v-model="selectedFilterValue" :options="filterValues" filter />
</div>
<div class="_footer">
<Button type="button" label="Add" @click="submit"></Button>
<Button type="button" :label="$t('add')" @click="submit"></Button>
</div>
</template>

Expand All @@ -34,7 +34,9 @@ onMounted(() => {
updateSelectedFilterValue()
})
const emit = defineEmits(['addFilter'])
const emit = defineEmits<{
(event: 'addFilter', filterAndValue: FilterAndValue): void
}>()
const updateSelectedFilterValue = () => {
if (filterValues.value.includes(selectedFilterValue.value)) {
Expand Down
3 changes: 3 additions & 0 deletions src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { createI18n } from 'vue-i18n'

const messages = {
en: {
add: 'Add',
confirm: 'Confirm',
reset: 'Reset',
customizeFolder: 'Customize Folder',
icon: 'Icon',
color: 'Color',
Expand Down

0 comments on commit 2495125

Please sign in to comment.