Skip to content

Commit

Permalink
refactor(mon-pix): edit translation key for not at all button in Flas…
Browse files Browse the repository at this point in the history
…hcards.

Co-authored-by: Clément Latzarus <[email protected]>
  • Loading branch information
dianeCdrPix and clemlatz committed Oct 25, 2024
1 parent 04f9554 commit dd413d1
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default class ModulixFlashcards extends Component {
type="button"
{{on "click" (fn this.onSelfAssessment "no")}}
>
{{t "pages.modulix.buttons.flashcards.answers.notAtAll"}}
{{t "pages.modulix.buttons.flashcards.answers.no"}}
</button>
<button
class="element-flashcards__footer__answer__button element-flashcards__footer__answer__button--almost"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ module('Integration | Component | Module | Flashcards', function (hooks) {

// then
assert.ok(screen.getByText(t('pages.modulix.flashcards.answerDirection')));
assert.ok(screen.getByText(t('pages.modulix.buttons.flashcards.answers.notAtAll')));
assert.ok(screen.getByText(t('pages.modulix.buttons.flashcards.answers.no')));
});

module('when the user self-assesses their response', function () {
Expand Down Expand Up @@ -229,7 +229,7 @@ module('Integration | Component | Module | Flashcards', function (hooks) {
);
await clickByName(t(I18N_KEYS.introStartButton));
await clickByName(t('pages.modulix.buttons.flashcards.seeAnswer'));
await clickByName(t('pages.modulix.buttons.flashcards.answers.notAtAll'));
await clickByName(t('pages.modulix.buttons.flashcards.answers.no'));

// then
assert.ok(screen.getByText('Qui a écrit le Dormeur du Val ?'));
Expand Down Expand Up @@ -274,7 +274,7 @@ module('Integration | Component | Module | Flashcards', function (hooks) {
);
await clickByName(t(I18N_KEYS.introStartButton));
await clickByName(t('pages.modulix.buttons.flashcards.seeAnswer'));
await clickByName(t('pages.modulix.buttons.flashcards.answers.notAtAll'));
await clickByName(t('pages.modulix.buttons.flashcards.answers.no'));

// then
assert.ok(screen.getByText('Terminé'));
Expand Down Expand Up @@ -333,7 +333,7 @@ module('Integration | Component | Module | Flashcards', function (hooks) {
await clickByName(t('pages.modulix.buttons.flashcards.seeAnswer'));
await clickByName(t('pages.modulix.buttons.flashcards.answers.yes'));
await clickByName(t('pages.modulix.buttons.flashcards.seeAnswer'));
await clickByName(t('pages.modulix.buttons.flashcards.answers.notAtAll'));
await clickByName(t('pages.modulix.buttons.flashcards.answers.no'));

// then
assert.ok(screen.getByText('Oui ! : 1'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ module('Integration | Component | Module | Passage', function (hooks) {
// when
await clickByName(t('pages.modulix.buttons.flashcards.start'));
await clickByName(t('pages.modulix.buttons.flashcards.seeAnswer'));
await clickByName(t('pages.modulix.buttons.flashcards.answers.notAtAll'));
await clickByName(t('pages.modulix.buttons.flashcards.answers.no'));

// then
sinon.assert.calledOnceWithExactly(metrics.add, {
Expand Down
2 changes: 1 addition & 1 deletion mon-pix/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@
"flashcards": {
"answers": {
"almost": "Almost",
"notAtAll": "Not at all",
"no": "Not at all",
"yes": "Yes!"
},
"nextCard": "Next",
Expand Down
2 changes: 1 addition & 1 deletion mon-pix/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@
"seeAgain": "Revisa la pregunta",
"nextCard": "Siguiente",
"answers": {
"notAtAll": "Para nada",
"no": "Para nada",
"almost": "Casi",
"yes": "¡Sí!"
}
Expand Down
2 changes: 1 addition & 1 deletion mon-pix/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@
"flashcards": {
"answers": {
"almost": "Presque",
"notAtAll": "Pas du tout",
"no": "Pas du tout",
"yes": "Oui !"
},
"nextCard": "Suivant",
Expand Down
2 changes: 1 addition & 1 deletion mon-pix/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@
"seeAgain": "Bekijk de vraag",
"nextCard": "Volgende",
"answer": {
"notAtAll": "Helemaal niet",
"no": "Helemaal niet",
"almost": "Bijna",
"yes": "Ja!"
}
Expand Down

0 comments on commit dd413d1

Please sign in to comment.