Skip to content

Commit

Permalink
Internationalize client settings successful update message
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Sep 20, 2024
1 parent f4ff73c commit 6d18e9a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
const href = '/settings/client-settings';
const result = await preloadData(href);
if (result.type === 'loaded' && result.status === 200) {
pushState(href, { clientSettings: result.data });
pushState('', { clientSettings: result.data });
} else {
// Something went wrong, try navigating
goto(href);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ export const actions: Actions = {
return setFlash(
{
type: 'success',
message: m.successfullyUpdatedObject({
object: safeTranslate(modelVerboseName).toLowerCase()
})
message: m.successfullyUpdatedClientSettings()
},
event
);
Expand Down
3 changes: 2 additions & 1 deletion frontend/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,6 @@
"createUser": "Create user",
"createUserHelpText": "Create or link a third party user to the representative based on the email",
"nameDuplicate": "Name already exists",
"noAnswer": "No answer"
"noAnswer": "No answer",
"successfullyUpdatedClientSettings": "Client settings successfully updated, please refresh the page."
}
3 changes: 2 additions & 1 deletion frontend/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -670,5 +670,6 @@
"observationSemiColon": "Observation:",
"tableMode": "Mode tableau",
"owner": "Propriétaire",
"waitingRiskAcceptances": "Bonjour ! Vous avez actuellement {number} risque{s} en attente d'acceptation. Vous pouvez les retrouver dans l'onglet risque."
"waitingRiskAcceptances": "Bonjour ! Vous avez actuellement {number} risque{s} en attente d'acceptation. Vous pouvez les retrouver dans l'onglet risque.",
"successfullyUpdatedClientSettings": "Paramètres du client mis à jour avec succès. Vous pouvez rafrachir la page."
}

0 comments on commit 6d18e9a

Please sign in to comment.