Skip to content

Commit 56d15b2

Browse files
committed
fix: update package.json and package-lock.json to add vue-i18n dependency and improve localization support in InPlaceEdit component
1 parent 59dce8d commit 56d15b2

File tree

3 files changed

+353
-8
lines changed

3 files changed

+353
-8
lines changed

custom/InPlaceEdit.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ import { callAdminForthApi } from '@/utils';
5151
import { showErrorTost, showSuccesTost } from '@/composables/useFrontendApi';
5252
import ValueRenderer from '@/components/ValueRenderer.vue';
5353
import ColumnValueInputWrapper from '@/components/ColumnValueInputWrapper.vue';
54+
import { useI18n } from 'vue-i18n';
5455
56+
const { t } = useI18n();
5557
const props = defineProps(['column', 'record', 'resource', 'adminUser', 'meta']);
5658
const isEditing = ref(false);
5759
const editValue = ref(null);
@@ -127,7 +129,7 @@ async function saveEdit() {
127129
return;
128130
}
129131
130-
showSuccesTost('Field updated successfully');
132+
showSuccesTost(t('Field updated successfully'));
131133
props.record[props.column.name] = currentValues.value[props.column.name];
132134
isEditing.value = false;
133135
} finally {

0 commit comments

Comments
 (0)