-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TECH] Améliorer la structure des écrans d'instruction (PIX-12902). #9264
base: dev
Are you sure you want to change the base?
[TECH] Améliorer la structure des écrans d'instruction (PIX-12902). #9264
Conversation
Une fois les applications déployées, elles seront accessibles via les liens suivants :
Les variables d'environnement seront accessibles via les liens suivants : |
e4762be
to
c74157b
Compare
Test fonctionnel OK ✅ |
mon-pix/app/components/certification-instructions/step-three.hbs
Outdated
Show resolved
Hide resolved
mon-pix/app/components/certification-instructions/step-three.hbs
Outdated
Show resolved
Hide resolved
c74157b
to
4af0a54
Compare
4af0a54
to
3c406b9
Compare
93426e0
to
635d324
Compare
<strong> | ||
{{t "pages.certification-instructions.steps.1.paragraphs.3.strong-text1"}} | ||
</strong> | ||
{{t "pages.certification-instructions.steps.1.paragraphs.3.text1"}} | ||
|
||
<strong> | ||
{{t "pages.certification-instructions.steps.1.paragraphs.3.strong-text2"}} | ||
</strong> | ||
{{t "pages.certification-instructions.steps.1.paragraphs.3.text2"}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plutôt que d'enchaîner les clés text1
, strong-text1
etc, je me demande si on ne pourrait pas plutôt tout mettre dans un array, pour faire un join dans le js ou le hbs.
Et donc au lieu de :
"3": {
"strong-text1": "Il est important d'aller jusqu'au bout du test,",
"strong-text2": "pénalité",
"text1": "et donc de bien gérer votre temps. Une",
"text2": "tenant compte du nombre de questions restantes sera appliquée."
}
On aurait :
"3": {
[
"Il est important d'aller jusqu'au bout du test,",
"et donc de bien gérer votre temps. Une",
"pénalité",
"tenant compte du nombre de questions restantes sera appliquée."
]
}
Mais je suis en train de chercher partout dans la doc Ember, je ne trouve pas de solution correcte pour implémenter ça dans le js/hbs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
est-ce que Phrase sait gérer ca?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aucune idée 😅
4254af9
to
da4819e
Compare
da4819e
to
7a474a5
Compare
7a474a5
to
09d36a1
Compare
🦄 Problème
Nous souhaitions au début de l'implémentation faire un affichage dynamique et pour se faire, nous avions introduit l'essentiel des balises span (servant à rendre certaines infos en gras) dans les clés de traduction.
Cette décision a été remise en cause et finalement nous sommes parti pour créer plusieurs composants.
Les clés traductions peuvent ainsi se délester des balises html (ce qu'on doit un maximum éviter de faire, les clés ne devraient servir qu'à la traduction, pas à nos besoin structurels)
🤖 Proposition
Extraire les balises html des clés de traduction pour les écrans d'instruction (page 1 à 4 )
💯 Pour tester
Checker la non régression des écrans