From 15155ab435b42fea64a535a2ceb26c369b03a31d Mon Sep 17 00:00:00 2001 From: Gordon Lin <75815453+gordlin@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:18:57 -0500 Subject: [PATCH] Modify save warning, add i18n for save success msg --- src/components/metadata-editor.vue | 2 +- src/lang/lang.csv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/metadata-editor.vue b/src/components/metadata-editor.vue index c1c0b755..853fc07e 100644 --- a/src/components/metadata-editor.vue +++ b/src/components/metadata-editor.vue @@ -1424,7 +1424,7 @@ export default class MetadataEditorV extends Vue { }) .catch((error: any) => console.log(error.response || error)); } else { - Message.success('Successfully saved changes!'); + Message.success(this.$t('editor.editMetadata.message.successfulSave')); // padding to prevent save button from being clicked rapidly setTimeout(() => { this.saving = false; diff --git a/src/lang/lang.csv b/src/lang/lang.csv index d748cb97..e45047be 100644 --- a/src/lang/lang.csv +++ b/src/lang/lang.csv @@ -56,7 +56,7 @@ editor.editMetadata.message.error.requiredFieldsNotFilled,Please fill out the re editor.editMetadata.message.logoSuccessfulLoad,Successfully loaded logo image.,1,Image du logo chargée avec succès.,0 editor.editMetadata.message.successfulLoad,Successfully loaded storyline!,1,Scénario chargé avec succès!,0 editor.editMetadata.message.successfulSave,Successfully saved changes!,1,Modifications enregistrées avec succès!,0 -editor.editMetadata.message.wait,Please wait. This may take several minutes.,1,"S'il vous plaît, attendez. Cela peut prendre plusieurs minutes.",0 +editor.editMetadata.message.wait,Please wait. Saving may take a few moments.,1,"Veuillez patienter. L'enregistrement peut prendre quelques instants.",0 editor.editMetadata.versionHistory.buttonShow,Show previous versions of product,1,Afficher les versions précédentes du produit,0 editor.editMetadata.versionHistory.buttonHide,Hide previous versions,1,Masquer les versions précédentes,0 editor.editMetadata.versionHistory.header,Version History,1,Historique des versions,0