Skip to content

Commit

Permalink
fix: Manage "Valeur copiée" feminine translation
Browse files Browse the repository at this point in the history
  • Loading branch information
zatteo committed May 3, 2024
1 parent b0c03cb commit 14e405f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/browser/src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,16 @@
}
}
},
"valueCopiedFeminine": {
"message": "$VALUE$ copied",
"description": "Value has been copied to the clipboard.",
"placeholders": {
"value": {
"content": "$1",
"example": "Password"
}
}
},
"autofillError": {
"message": "Unable to auto-fill the selected item on this page. Copy and paste the information instead."
},
Expand Down
10 changes: 10 additions & 0 deletions apps/browser/src/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,16 @@
}
}
},
"valueCopiedFeminine": {
"message": "$VALUE$ copiée",
"description": "Value has been copied to the clipboard.",
"placeholders": {
"value": {
"content": "$1",
"example": "Password"
}
}
},
"autofillError": {
"message": "Impossible de saisir automatiquement l'élément sélectionné sur cette page. Copiez-collez plutôt l'information."
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,14 @@ export class ActionButtonsComponent {
this.platformUtilsService.showToast(
"info",
null,
// Cozy customization, manage "Valeur copiée" feminine translation
//*
typeI18nKey === "value"
? this.i18nService.t("valueCopiedFeminine", this.i18nService.t(typeI18nKey))
: this.i18nService.t("valueCopied", this.i18nService.t(typeI18nKey))
/*/
this.i18nService.t("valueCopied", this.i18nService.t(typeI18nKey))
//*/
);

if (typeI18nKey === "password" || typeI18nKey === "verificationCodeTotp") {
Expand Down
7 changes: 7 additions & 0 deletions libs/angular/src/vault/components/view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,14 @@ export class ViewComponent implements OnDestroy, OnInit {
this.platformUtilsService.showToast(
"info",
null,
// Cozy customization, manage "Valeur copiée" feminine translation
//*
typeI18nKey === "value"
? this.i18nService.t("valueCopiedFeminine", this.i18nService.t(typeI18nKey))
: this.i18nService.t("valueCopied", this.i18nService.t(typeI18nKey))
/*/
this.i18nService.t("valueCopied", this.i18nService.t(typeI18nKey))
//*/
);

if (typeI18nKey === "password") {
Expand Down

0 comments on commit 14e405f

Please sign in to comment.