👽 translate stepper component

This commit is contained in:
Tykayn 2022-02-04 18:50:39 +01:00 committed by tykayn
parent df0481a187
commit c9b0888d6f
3 changed files with 15 additions and 5 deletions

View File

@ -76,10 +76,12 @@
{{ pollService.form.value.title }} {{ pollService.form.value.title }}
</span> </span>
<span class="step-title-poll poll-title-empty" *ngIf="!pollService.form.value.title.length"> <span class="step-title-poll poll-title-empty" *ngIf="!pollService.form.value.title.length">
(Aucun titre) {{ 'nav.no_title' | translate }}
</span> </span>
</span> </span>
<span class="step-counter-text">Étape {{ step_current }} sur {{ step_max }} </span> <span class="step-counter-text"
>{{ 'nav.step' | translate }} {{ step_current }} {{ 'nav.on' | translate }} {{ step_max }}
</span>
</h1> </h1>
</div> </div>
<div class="column has-text-right"> <div class="column has-text-right">
@ -132,10 +134,10 @@
class="button is-primary is-fullwidth cancel-button-reject-bottom pull-right" class="button is-primary is-fullwidth cancel-button-reject-bottom pull-right"
(click)="goToHome()" (click)="goToHome()"
> >
Oui, annuler sondage {{ 'popup.cancel.validate' | translate }}
</button> </button>
<button class="button cancel-button-confirm is-outlined pull-right" (click)="focusOnCancelButton()"> <button class="button cancel-button-confirm is-outlined pull-right" (click)="focusOnCancelButton()">
Non {{ 'popup.cancel.reject' | translate }}
</button> </button>
</div> </div>
</div> </div>

View File

@ -15,6 +15,9 @@
"leave": "Leave", "leave": "Leave",
"previous": "Previous", "previous": "Previous",
"next": "Next", "next": "Next",
"step": "Step",
"on": "on",
"no_title": "(no title)",
"save": "Save" "save": "Save"
}, },
"PAGE_NOT_FOUND": { "PAGE_NOT_FOUND": {
@ -61,7 +64,9 @@
"popup": { "popup": {
"cancel": { "cancel": {
"title": "You will cancel your poll creation", "title": "You will cancel your poll creation",
"main": "Do you really want to leave the poll creation ?" "main": "Do you really want to leave the poll creation ?",
"validate": "Yes, cancel poll",
"reject": "No",
} }
}, },
"dates": { "dates": {

View File

@ -14,6 +14,9 @@
"nav": { "nav": {
"leave": "Quitter", "leave": "Quitter",
"previous": "Précédent", "previous": "Précédent",
"step": "Étape",
"on": "sur",
"no_title": "(aucun titre)",
"next": "Suivant", "next": "Suivant",
"save": "Enregistrer" "save": "Enregistrer"
}, },