Skip to content

Commit 78414b7

Browse files
committed
Add translations for panel types
1 parent d8f60c9 commit 78414b7

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

src/components/metadata-editor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ export default class MetadataEditorV extends Vue {
14241424
})
14251425
.catch((error: any) => console.log(error.response || error));
14261426
} else {
1427-
Message.success('Successfully saved changes!');
1427+
Message.success(this.$t('editor.editMetadata.message.successfulSave'));
14281428
// padding to prevent save button from being clicked rapidly
14291429
setTimeout(() => {
14301430
this.saving = false;

src/components/slide-editor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
:key="thing"
287287
:value="thing"
288288
>
289-
{{ thing }}
289+
{{ $t(`editor.slide.panel.type.${thing}`) }}
290290
</option>
291291
</select>
292292
</div>

src/lang/lang.csv

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,13 @@ editor.slides.content,Content,1,Contenu,1
240240
editor.slides.select,Please select a slide to edit,1,Veuillez sélectionner une diapositive à modifier,1
241241
editor.slides.panel.body,Panel body,1,Corps du panneau,1
242242
editor.slides.panel.title,Panel title,1,Titre du panneau,1
243+
editor.slide.panel.type.text,Text,1,Texte,0
244+
editor.slide.panel.type.image,Image,1,Image,0
245+
editor.slide.panel.type.slideshow,Slideshow,1,Diaporama,0
246+
editor.slide.panel.type.chart,Chart,1,Graphique,0
247+
editor.slide.panel.type.map,Map,1,Carte,0
248+
editor.slide.panel.type.video,Video,1,Vidéo,0
249+
editor.slide.panel.type.dynamic,Dynamic,1,Dynamique,0
243250
editor.slides.intro,Intro subtitle,1,Sous-titre de l’introduction,1
244251
editor.slides.title,Intro title,1,Titre de l’introduction,1
245252
editor.slides.slideHeader,SLIDES,1,DIAPOSITIVES,0
@@ -248,8 +255,8 @@ editor.slide.untitled,Untitled slide,1,Diapositive sans titre,0
248255
editor.slide.copy.success,Slide copied successfully!,1,Diapositive copiée avec succès !,0
249256
editor.tocOrientation,Table of Contents Orientation,1,Orientation de la table des matières,0
250257
editor.tocOrientation.info,The table of contents orientation will be set to vertical in mobile view.,1,L'orientation de la table des matières sera définie sur verticale en vue mobile.,0
251-
editor.tocOrientation.vertical,Vertical,1,Vertical,0
252-
editor.tocOrientation.horizontal,Horizontal,1,Horizontal,0
258+
editor.tocOrientation.vertical,Vertical,1,Verticale,0
259+
editor.tocOrientation.horizontal,Horizontal,1,Horizontale,0
253260
editor.returnTop,Include return to top navigation,1,Inclure le retour en haut de la navigation,0
254261
editor.landing.greeting,Hello,1,Bonjour,1
255262
editor.month.january,January,1,Janvier,0

0 commit comments

Comments
 (0)