Skip to content

Commit

Permalink
fix format, order translations
Browse files Browse the repository at this point in the history
  • Loading branch information
MGLL committed Jan 12, 2024
1 parent 600a9a0 commit d2a8a03
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 95 deletions.
77 changes: 39 additions & 38 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"close": "Close",
"configureWaysToSignIn": "Configure ways to sign in",
"confirm": "Confirm",
"confirmProfileDelete": "Confirm profile delete",
"copied": "Copied",
"copy": "Copy",
"createATxtRecordInYourDnsConfigurationForTheFollowingHostname": "Create a txt record in your dns configuration for the following hostname",
Expand All @@ -51,7 +50,6 @@
"currentRegisteredDomains": "Current registered domains",
"currentSession": "Current session",
"dark": "Dark",
"deleteYourProfile": "Delete your profile",
"description": "Description",
"device-activity": "Device activity",
"deviceActivity": "Device activity",
Expand All @@ -61,6 +59,9 @@
"doDeny": "Deny",
"domainName": "Domain name",
"domains": "Domains",
"domains-add-placeholder": "www.your-domain.com",
"domains-add-success": "{{domain}} has been added to organization. Please verify domain.",
"domains-verify": "Verify domain",
"done": "Done",
"doSave": "Save",
"doSignOut": "Sign out",
Expand All @@ -69,6 +70,8 @@
"editTheResource": "Share the resource - {{0}}",
"email": "Email",
"enterAVerificationCodeFromAuthenticatorApplication": "Enter a verification code from authenticator application",
"error-domain-invalid": "Domain is not valid",
"error-domain-already-present": "${domain} is already present for this org.",
"error-empty": "Please specify value of '{{0}}'.",
"error-invalid-blank": "Please specify value of '{{0}}'.",
"error-invalid-date": "'{{0}}' is invalid date.",
Expand Down Expand Up @@ -104,6 +107,14 @@
"insufficientPermissionsToViewOrganization": "Insufficient permissions to view organization",
"internalApp": "Internal",
"inUse": "In use",
"insufficient-permissions": "Insufficient permissions to perform action.",
"invitation-email-placeholder": "for example, Thomas, [email protected]",
"invitation-instructions-description": "Add a new member to the organization by entering their email and assigning them a role within the organization. An email will be sent to them with instructions on how to join.",
"invitation-missing-permission-title": "You lack the 'manage-invitations' role.",
"invitation-missing-permission-body": "Speak to an admin in order to be granted this role.",
"invitation-title": "Invite new member to {{0}}",
"invitation-toast-submit": "{{data.email}} is being sent an invitation.",
"invitation-toast-submit-success": "{{data.email}} has been sent an invitation.",
"inviteNewMembers": "Invite new members",
"inviteNewMembersOrRemoveMembersFromTheOrganization": "Invite new members or remove members from the organization",
"ipAddress": "IP address",
Expand All @@ -125,9 +136,12 @@
"localization": "Localization",
"logo": "Logo",
"logOut": "Log out",
"manage": "manage",
"manageAccount": "Manage account",
"manageLoginsThroughThirdPartyAccounts": "Manage logins through third party accounts",
"manageYourUserProfileInformation": "Manage your user profile information",
"member-roles-missing-permission-title": "You lack the 'manage-roles' role.",
"member-roles-missing-permission-body": "Speak to an admin in order to be granted this role.",
"members": "Members",
"myResources": "My Resources",
"name": "Name",
Expand All @@ -138,6 +152,7 @@
"notSetUp": "{{0}} is not set up.",
"offlineAccess": "Offline access",
"options": "Options",
"org-details-stat-sso-active": "active SSO connections",
"organization": "Organization",
"organizations": "Organizations",
"otp-display-name": "Authenticator application",
Expand All @@ -148,6 +163,7 @@
"password": "My password",
"passwordless": "no password",
"path": "Path",
"pending": "pending",
"permanentlyRemoveYourProfileAndAllOfItsContentsThisActionIsNotReversibleSoPleaseContinueWithCaution": "Permanently remove your profile and all of its contents this action is not reversible so please continue with caution",
"permissionRequest": "Permission requests - {{0}}",
"permissionRequests": "Permission requests",
Expand All @@ -157,6 +173,13 @@
"personalInformation": "Personal information",
"privacyPolicy": "Privacy policy",
"profile": "Profile",
"profile-delete-title": "Delete your profile",
"profile-delete-confirm": "Confirm profile delete",
"profile-delete-write-to-confirm": "Write 'delete' to confirm.",
"profile-email-placeholder": "[email protected]",
"profile-localization-description": "Manage your localization (language).",
"profile-toast-success": "Profile updated successfully.",
"profile-toast-error": "Error during Profile update.",
"provider": "Provider",
"refreshPage": "Refresh the page",
"remove": "Remove",
Expand All @@ -183,8 +206,20 @@
"resourceSharedWith_other": "Resource is shared with <0>{{username}}</0> and <1>{{other}}</1> other users",
"resourceSharedWith_zero": "This resource is not shared.",
"returnToHomepage": "Return to homepage",
"role-toast-granted": "Granted {{roleName}} role to user.",
"role-toast-granted-error": "Error granting role {{roleName}} to user. Please try again.",
"role-toast-granted-all": "Granted all roles to user.",
"role-toast-granted-all-error": "Error granting all roles to user. Please try again.",
"role-toast-revoked": "Revoked {{roleName}} role from user.",
"role-toast-revoked-error": "Error revoking {{roleName}} role from user. Please try again.",
"role-toast-revoked-all": "Revoked all roles for user.",
"role-toast-revoked-all-error": "Error revoking all roles for user. Please try again.",
"role-toast-granted-filter": "Granted roles to user:",
"role-set": "Set roles:",
"role-section-header-title": "Edit roles of",
"save": "Save",
"searchMembers": "Search members",
"searchOrganizations": "Search Organizations",
"securityKey": "Security key",
"selectLocale": "Select Locale",
"selectOne": "Select an option",
Expand Down Expand Up @@ -264,44 +299,10 @@
"verificationPending": "Verification pending",
"verified": "Verified",
"verify": "Verify",
"verifyDomain": "Verify domain",
"view": "view",
"viewLinkedDomainsAndVerifyDnsEntries": "View linked domains and verify dns entries",
"viewOrganizationInformationChangeDisplayName": "View organization information change display name",
"welcomeMessage": "Welcome to keycloak account management",
"writeDeleteToConfirm": "Write 'delete' to confirm",
"youAreTheSameUserAsThisUser": "This is your account! This is you!",
"youLackTheManageRolesRole": "You lack the manage roles role",
"searchOrganizations": "Search Organizations",
"newDomainPlaceholder": "www.your-domain.com",
"error-domain-invalid": "Domain is not valid",
"error-domain-already-present": "${domain} is already present for this org.",
"pending": "pending",
"org-details-stat-sso-active": "active SSO connections",
"invitation-email-placeholder": "for example, Thomas, [email protected]",
"invitation-instructions-description": "Add a new member to the organization by entering their email and assigning them a role within the organization. An email will be sent to them with instructions on how to join.",
"invitation-missing-permission-title": "You lack the 'manage-invitations' role.",
"invitation-missing-permission-body": "Speak to an admin in order to be granted this role.",
"invitation-title": "Invite new member to {{0}}",
"invitation-toast-submit": "{{data.email}} is being sent an invitation.",
"invitation-toast-submit-success": "{{data.email}} has been sent an invitation.",
"member-roles-missing-permission-title": "You lack the 'manage-roles' role.",
"member-roles-missing-permission-body": "Speak to an admin in order to be granted this role.",
"insufficient-permissions": "Insufficient permissions to perform action.",
"profile-email-placeholder": "[email protected]",
"profile-localization-description": "Manage your localization (language).",
"profile-toast-success": "Profile updated successfully.",
"profile-toast-error": "Error during Profile update.",
"role-toast-granted": "Granted {{roleName}} role to user.",
"role-toast-granted-error": "Error granting role {{roleName}} to user. Please try again.",
"role-toast-granted-all": "Granted all roles to user.",
"role-toast-granted-all-error": "Error granting all roles to user. Please try again.",
"role-toast-revoked": "Revoked {{roleName}} role from user.",
"role-toast-revoked-error": "Error revoking {{roleName}} role from user. Please try again.",
"role-toast-revoked-all": "Revoked all roles for user.",
"role-toast-revoked-all-error": "Error revoking all roles for user. Please try again.",
"role-toast-granted-filter": "Granted roles to user:",
"role-set": "Set roles:",
"role-section-header-title": "Edit roles of",
"manage": "manage",
"view": "view"
"youLackTheManageRolesRole": "You lack the manage roles role"
}
78 changes: 39 additions & 39 deletions public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"close": "Fermer",
"configureWaysToSignIn": "Configurer les méthodes de connexion",
"confirm": "Confirmer",
"confirmProfileDelete": "Confirmer la suppression du compte",
"copied": "Copié",
"copy": "Copier",
"createATxtRecordInYourDnsConfigurationForTheFollowingHostname": "Créez un enregistrement TXT dans votre configuration DNS avec le nom d'hôte suivant",
Expand All @@ -51,7 +50,6 @@
"currentRegisteredDomains": "Domaines actuellement enregistrés",
"currentSession": "Session actuelle",
"dark": "Sombre",
"deleteYourProfile": "Supprimer votre compte",
"description": "Description",
"device-activity": "Activité de l'appareil",
"deviceActivity": "Activité de l'appareil",
Expand All @@ -61,6 +59,9 @@
"doDeny": "Refuser",
"domainName": "Nom du domaine",
"domains": "Domaines",
"domains-add-placeholder": "www.mon-domaine.com",
"domains-add-success": "{{domain}} a été ajouté à l'organization. Vous devez vérifier le domaine.",
"domains-verify": "Vérifier le domaine",
"done": "Fait",
"doSave": "Sauvegarder",
"doSignOut": "Se déconnecter",
Expand All @@ -69,6 +70,8 @@
"editTheResource": "Partager la ressource - {{0}}",
"email": "Email",
"enterAVerificationCodeFromAuthenticatorApplication": "Entrez un code de vérification de l'application d'authentification.",
"error-domain-invalid": "Domaine invalide.",
"error-domain-already-present": "existe déjà pour l'organisation.",
"error-empty": "Veuillez spécifier la valeur de '{{0}}'.",
"error-invalid-blank": "Veuillez spécifier la valeur de '{{0}}'.",
"error-invalid-date": "'{{0}}' est une date invalide.",
Expand Down Expand Up @@ -104,6 +107,14 @@
"insufficientPermissionsToViewOrganization": "Permissions insuffisantes pour voir l'organisation",
"internalApp": "Interne",
"inUse": "En cours d'utilisation",
"insufficient-permissions": "Permissions insuffisante pour réaliser cette action.",
"invitation-email-placeholder": "par exemple, Thomas, [email protected]",
"invitation-instructions-description": "Ajoutez un nouveau membre à l'organisation en entrant son email et en lui attribuant un rôle au sein de l'organisation. Un email leur sera envoyé avec des instructions pour rejoindre.",
"invitation-missing-permission-title": "Vous ne pouvez pas gérer les invitations.",
"invitation-missing-permission-body": "Contactez un administrateur pour obtenir les droits nécessaires.",
"invitation-title": "Inviter un nouveau membre à {{0}}",
"invitation-toast-submit": "Une invitation est envoyée à {{data.email}}.",
"invitation-toast-submit-success": "Une invitation a été envoyée à {{data.email}}.",
"inviteNewMembers": "Inviter des nouveaux membres",
"inviteNewMembersOrRemoveMembersFromTheOrganization": "Inviter de nouveaux membres ou retirer des membres de l'organisation.",
"ipAddress": "Adresse IP",
Expand All @@ -125,9 +136,12 @@
"localization": "Localisation",
"logo": "Logo",
"logOut": "Se déconnecter",
"manage": "gestion",
"manageAccount": "Gérer le compte",
"manageLoginsThroughThirdPartyAccounts": "Gérer les connexions via des comptes tiers",
"manageYourUserProfileInformation": "Gérer vos informations personnelles.",
"member-roles-missing-permission-title": "Vous ne pouvez pas gérer les roles.",
"member-roles-missing-permission-body": "Contactez un administrateur pour obtenir les droits nécessaires.",
"members": "Membres",
"myResources": "Mes Ressources",
"name": "Nom",
Expand All @@ -138,6 +152,7 @@
"notSetUp": "{{0}} n'est pas configuré.",
"offlineAccess": "Accès hors ligne",
"options": "Options",
"org-details-stat-sso-active": "SSO actifs",
"organization": "Organisation",
"organizations": "Organisations",
"otp-display-name": "Application d'authentification",
Expand All @@ -148,6 +163,7 @@
"password": "Mon mot de passe",
"passwordless": "Sans mot de passe",
"path": "Chemin",
"pending": "En attente",
"permanentlyRemoveYourProfileAndAllOfItsContentsThisActionIsNotReversibleSoPleaseContinueWithCaution": "Supprimez définitivement votre compte et tout son contenu, cette action est irréversible, veuillez donc continuer avec prudence.",
"permissionRequest": "Demandes de permission - {{0}}",
"permissionRequests": "Demandes de permission",
Expand All @@ -157,6 +173,13 @@
"personalInformation": "Informations personnelles",
"privacyPolicy": "Politique de confidentialité",
"profile": "Profil",
"profile-email-placeholder": "[email protected]",
"profile-localization-description": "Gérer votre localisation (langue).",
"profile-toast-success": "Compte modifié avec succès.",
"profile-toast-error": "Un problème est survenu.",
"profile-delete-title": "Supprimer votre compte",
"profile-delete-confirm": "Confirmer la suppression du compte",
"profile-delete-write-to-confirm": "Écrivez 'supprimer' pour confirmer.",
"provider": "Fournisseur",
"refreshPage": "Rafraîchir la page",
"remove": "Retirer",
Expand All @@ -183,8 +206,20 @@
"resourceSharedWith_other": "La ressource est partagée avec <0>{{username}}</0> et <1>{{other}}</1> autres utilisateurs",
"resourceSharedWith_zero": "Cette ressource n'est pas partagée.",
"returnToHomepage": "Retourner à la page d'accueil",
"role-toast-granted": "Rôle {{roleName}} accordé à l'utilisateur.",
"role-toast-granted-error": "Une erreur est survenue lors de l'assignation du rôle {{roleName}}, Veuillez réessayer.",
"role-toast-granted-all": "Tous les rôles ont été assignés à l'utilisateur.",
"role-toast-granted-all-error": "Une erreur est survenue lors de l'assignation de tous les rôles. Veuillez réessayer.",
"role-toast-revoked": "Rôle {{roleName}} retiré à l'utilisateur.",
"role-toast-revoked-error": "Une erreur est survenue lors de la dissociation du rôle {{roleName}}, Veuillez réessayer.",
"role-toast-revoked-all": "Tous les rôles ont été retirés à l'utilisateur.",
"role-toast-revoked-all-error": "Une erreur est survenue lors de la dissociation de tous les rôles, Veuillez réessayer.",
"role-toast-granted-filter": "Roles assignés à l'utilisateur:",
"role-set": "Assigner les rôles:",
"role-section-header-title": "Modifier les rôles de",
"save": "Sauvegarder",
"searchMembers": "Chercher des membres",
"searchOrganizations": "Chercher des Organisations",
"securityKey": "Clé de sécurité",
"selectLocale": "Sélectionner la langue",
"selectOne": "Sélectionner une option",
Expand Down Expand Up @@ -264,45 +299,10 @@
"verificationPending": "Vérification en attente",
"verified": "Vérifié",
"verify": "Vérifier",
"verifyDomain": "Vérifier le domaine",
"view": "lecture",
"viewLinkedDomainsAndVerifyDnsEntries": "Domaines liés et entrées DNS.",
"viewOrganizationInformationChangeDisplayName": "Détails de l'organisation.",
"welcomeMessage": "Bienvenue dans la gestion de compte keycloak",
"writeDeleteToConfirm": "Écrivez 'supprimer' pour confirmer",
"youAreTheSameUserAsThisUser": "C'est votre compte ! C'est vous !",
"youLackTheManageRolesRole": "Vous manquez le rôle de gestion des rôles",
"searchOrganizations": "Chercher des Organisations",
"newDomainPlaceholder": "www.mon-domaine.com",
"error-domain-invalid": "Domaine invalide.",
"error-domain-already-present": "existe déjà pour l'organisation.",
"success-domain-added": "a été ajouté à l'organization. Vous devez vérifier le domaine.",
"pending": "En attente",
"org-details-stat-sso-active": "SSO actifs",
"invitation-email-placeholder": "par exemple, Thomas, [email protected]",
"invitation-instructions-description": "Ajoutez un nouveau membre à l'organisation en entrant son email et en lui attribuant un rôle au sein de l'organisation. Un email leur sera envoyé avec des instructions pour rejoindre.",
"invitation-missing-permission-title": "Vous ne pouvez pas gérer les invitations.",
"invitation-missing-permission-body": "Contactez un administrateur pour obtenir les droits nécessaires.",
"invitation-title": "Inviter un nouveau membre à {{0}}",
"invitation-toast-submit": "Une invitation est envoyée à {{data.email}}.",
"invitation-toast-submit-success": "Une invitation a été envoyée à {{data.email}}.",
"member-roles-missing-permission-title": "Vous ne pouvez pas gérer les roles.",
"member-roles-missing-permission-body": "Contactez un administrateur pour obtenir les droits nécessaires.",
"insufficient-permissions": "Permissions insuffisante pour réaliser cette action.",
"profile-email-placeholder": "[email protected]",
"profile-localization-description": "Gérer votre localisation (langue).",
"profile-toast-success": "Compte modifié avec succès.",
"profile-toast-error": "Un problème est survenu.",
"role-toast-granted": "Rôle {{roleName}} accordé à l'utilisateur.",
"role-toast-granted-error": "Une erreur est survenue lors de l'assignation du rôle {{roleName}}, Veuillez réessayer.",
"role-toast-granted-all": "Tous les rôles ont été assignés à l'utilisateur.",
"role-toast-granted-all-error": "Une erreur est survenue lors de l'assignation de tous les rôles. Veuillez réessayer.",
"role-toast-revoked": "Rôle {{roleName}} retiré à l'utilisateur.",
"role-toast-revoked-error": "Une erreur est survenue lors de la dissociation du rôle {{roleName}}, Veuillez réessayer.",
"role-toast-revoked-all": "Tous les rôles ont été retirés à l'utilisateur.",
"role-toast-revoked-all-error": "Une erreur est survenue lors de la dissociation de tous les rôles, Veuillez réessayer.",
"role-toast-granted-filter": "Roles assignés à l'utilisateur:",
"role-set": "Assigner les rôles:",
"role-section-header-title": "Modifier les rôles de",
"manage": "gestion",
"view": "lecture"
"youLackTheManageRolesRole": "Vous manquez le rôle de gestion des rôles"
}
6 changes: 3 additions & 3 deletions src/pages/invitation/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ const NewInvitation = () => {
{!hasManageInvitationsRole && (
<div className="mt-4">
<Alert
title={t('invitation-missing-permission-title')}
body={t('invitation-missing-permission-body')}
title={t("invitation-missing-permission-title")}
body={t("invitation-missing-permission-body")}
type="info"
/>
</div>
Expand All @@ -133,7 +133,7 @@ const NewInvitation = () => {
error={errors.email}
inputArgs={{
type: "email",
placeholder: t('invitation-email-placeholder'),
placeholder: t("invitation-email-placeholder"),
required: true,
disabled: !hasManageInvitationsRole,
}}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/member/roles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ const Roles = () => {
return (
<div className="mt-4 md:mt-16">
<SectionHeader
title={`${t('role-section-header-title')} ${fullName(currentMember)}`}
title={`${t("role-section-header-title")} ${fullName(currentMember)}`}
icon={LoadingIcon}
rightContent={
<Link
Expand All @@ -249,7 +249,7 @@ const Roles = () => {
</div>
)}
<div className="mt-8 flex items-center space-x-2 border-b pb-2">
<div className="inline-block text-sm text-gray-600">{t('role-set')}</div>
<div className="inline-block text-sm text-gray-600">{t("role-set")}</div>
<Button
onClick={grantAllRoles}
disabled={
Expand Down
Loading

0 comments on commit d2a8a03

Please sign in to comment.