fix: translation
This commit is contained in:
1 parent
1689347494
commit
6bc93490d4
4 files changed
+279
-14
No files matched your search
@@ -21,7 +21,7 @@ const emit = defineEmits<{
|
||||
(e: 'submitted'): void;
|
||||
}>();
|
||||
|
||||
const { t } = useI18n();
|
||||
const { t, locale } = useI18n({ useScope: 'global' });
|
||||
|
||||
const typeOptions = computed(() => [
|
||||
t('feedback.type.featureSuggestion'),
|
||||
@@ -63,6 +63,12 @@ watch(
|
||||
},
|
||||
);
|
||||
|
||||
watch(locale, () => {
|
||||
if (props.modelValue) {
|
||||
resetForm();
|
||||
}
|
||||
});
|
||||
|
||||
const submitFeedback = async () => {
|
||||
if (!canSubmit.value) {
|
||||
error.value = t('feedback.msg.fillContent');
|
||||
|
||||
Reference in new issue
Block a user