Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #73 from quintushr/master
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell authored Nov 27, 2023
2 parents c03d253 + 0d186d0 commit 4bdc550
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
32 changes: 31 additions & 1 deletion src/i18n/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,20 @@
"delete-title": "Supprimer la pièce jointe",
"download": "Télécharger",
"download-title": "Télécharger la pièce jointe",
"drop-files": "Déposer le(s) fichier(s) à ajouter au fichier archive"
"drop-files": "Déposer le(s) fichier(s) à ajouter au fichier archive",
"drop-instruction": "Faites glisser et déposez pour ajouter des pièces jointes"
},
"cancel": "Annuler",
"custom-fields": {
"change-type": "Changer le type :",
"delete-field": "Supprimer le champ",
"field-type": {
"text": "Texte (par défaut)",
"note": "Note",
"password": "Mot de passe",
"otp": "OTP"
}
},
"entries-list": {
"create-one-cta": "Pourquoi ne pas en créer un nouveau ?",
"documents": "Documents",
Expand All @@ -33,14 +44,25 @@
"add-custom-field-btn": "Ajouter un champ personnalisé",
"attachments": "Attachements",
"cancel-edit": "Annuler",
"click-to-edit": "Cliquez pour éditer",
"custom-fields": "Champs personnalisés",
"edit": "Éditer",
"edit-document": "Éditer le document",
"field-controls": {
"password": {
"hide": "Masquer",
"reveal": "Révéler"
}
},
"none-selected": {
"message": "Sélectionner ou créer un nouveau document",
"title": "Aucun document sélectionné"
},
"save": "Sauvegarder",
"save-disabled-title": {
"readonly": "Impossible de modifier actuellement",
"untitled": "Certains champs n'ont pas de titre"
},
"trash-move": {
"message": "Êtes-vous sûr de vouloir déplacer cette entrée dans la corbeille ?",
"title": "Confirmer la mise à la corbeille",
Expand Down Expand Up @@ -85,6 +107,14 @@
"cta": "Nouvelle entrée"
},
"trash": {
"close-button": "Fermer",
"empty-button-title": "Vider la corbeille",
"empty-confirm-dialog": {
"cancel-button": "Annuler",
"confirm-button": "Vider",
"message": "Êtes-vous sûr(e) de vouloir vider la corbeille ?",
"title": "Vider la corbeille"
},
"header": "Corbeille"
}
}
2 changes: 1 addition & 1 deletion src/i18n/translations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import de from "./de.json";
import en from "./en.json";
import es from "./es.json";
import fi from "./fi.json";
import fr from "./se.json";
import fr from "./fr.json";
import gl from "./gl.json";
import ja from "./ja.json";
import pl from "./pl.json";
Expand Down
2 changes: 2 additions & 0 deletions stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
BasicDarkVault,
ControlledVault,
HeavyVault,
VaultTranslatedFrench,
VaultTranslatedSwedish,
VaultTranslatedJapanese,
VaultTranslatedRussian
Expand Down Expand Up @@ -134,6 +135,7 @@ storiesOf("Vault", module)
.add("read-only", () => <BasicVaultReadOnly />)
.add("dark", () => <BasicDarkVault />)
.add("heavy", () => <HeavyVault />)
.add("translated (FR)", () => <VaultTranslatedFrench />)
.add("translated (SE)", () => <VaultTranslatedSwedish />)
.add("translated (JA)", () => <VaultTranslatedJapanese />)
.add("translated (RU)", () => <VaultTranslatedRussian />);
Expand Down
8 changes: 8 additions & 0 deletions stories/vault.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,11 @@ export const VaultTranslatedRussian = () => {
});
return <VaultRender />;
};

export const VaultTranslatedFrench= () => {
useEffect(() => {
changeLanguage("fr");
return () => changeLanguage("en");
});
return <VaultRender />;
};

0 comments on commit 4bdc550

Please sign in to comment.