Skip to content

Commit

Permalink
cleanup_i18n_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
eletallbetagouv committed Feb 27, 2025
1 parent 5282141 commit 019627c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ export function ConsumerAnonymousInformation() {
const {m} = useI18n()
return (
<Animate>
<div>
<Alert
severity="warning"
title={m.youStayAnonymous}
description={<p className="mb-0" title="" dangerouslySetInnerHTML={{__html: m.consumerAnonymousInformation}} />}
/>
</div>
<Alert
severity="warning"
title={m.youStayAnonymous}
description={<p className="mb-0" title="" dangerouslySetInnerHTML={{__html: m.consumerAnonymousInformation}} />}
/>
</Animate>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ describe('Problem', () => {
throw new Error('Contractual dispute form did not appear')
}
const btnText = fnSwitch(value, {
reportSomething: app.m.problemContractualDisputeFormNo,
reportSomething: app.m.reportAProblem,
getAnswer: app.m.problemContractualDisputeFormReponseConso,
})
fireEvent.click(radios.find(_ => _.textContent?.includes(btnText))!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export function ProblemConsumerWish({children}: {children: ReactNode}) {
value={r.step1.consumerWish}
options={[
{
title: m.problemContractualDisputeFormNo,
description: m.problemContractualDisputeFormNoExample,
title: m.reportAProblem,
description: m.reportAProblemExample,
value: 'reportSomething',
},
...(hasReponseConsoTag
Expand Down
4 changes: 2 additions & 2 deletions website/src/i18n/localization/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1003,8 +1003,8 @@ export const en = {
whatsYourIntent: `What do you want to do ?`,
problemContractualDisputeFormYes: `Resolve my personal issue with the company`,
problemContractualDisputeFormDesc: `Examples: receiving the parcel, getting a refund, receiving a personalized response, ...`,
problemContractualDisputeFormNo: `Report an issue so that the company can make improvements`,
problemContractualDisputeFormNoDesc: `Examples: honoring delivery times, displaying prices more clearly, or improving hygiene practices.`,
reportAProblem: `Report an issue so that the company can make improvements`,
reportAProblemDesc: `Examples: honoring delivery times, displaying prices more clearly, or improving hygiene practices.`,
problemContractualDisputeFormReponseConso: `I would like Fraud Control to give me information about my rights`,
problemContractualDisputeFormReponseConsoExample: `Example: What is the validity period of the quotes I was given? Can a store sell expired products? ...`,
consumerWishFixContractualDispute: `Your report will be forwarded to the company. Fraud Control does not get involved in resolving individual cases, but <strong>reporting the issue may encourage the company to respond to you.</strong>`,
Expand Down
4 changes: 2 additions & 2 deletions website/src/i18n/localization/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1005,8 +1005,8 @@ export const fr = {
problemIsInternetCompany: `Est-ce que votre problème concerne une entreprise sur internet ?`,
problemIsInternetCompanyNo: `Non, pas sur internet`,
whatsYourIntent: `Que souhaitez-vous faire ?`,
problemContractualDisputeFormNo: `Signaler un problème avec l'entreprise`,
problemContractualDisputeFormNoExample: `Afin de résoudre votre problème, ou que l'entreprise s'améliore`,
reportAProblem: `Signaler un problème avec l'entreprise`,
reportAProblemExample: `Afin de résoudre votre problème, ou que l'entreprise s'améliore`,
problemContractualDisputeFormReponseConso: `Poser une question à la répression des fraudes`,
problemContractualDisputeFormReponseConsoExample: `Exemple : Quelle est la durée de validité du devis qu'on m'a donné ? Un magasin peut-il vendre des produits périmés ? ...`,
consumerWishFixContractualDispute: `Votre signalement sera transmis à l'entreprise. Vous aurez la possibilité de rester anonyme.`,
Expand Down

0 comments on commit 019627c

Please sign in to comment.