-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
84 changed files
with
1,929 additions
and
1,861 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
assets/config/assistanceNavItems.ts → assets/config/navItems/assistanceNavItems.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { declareComponentKeys } from "i18nifty"; | ||
|
||
import { Translations } from "../../i18n/types"; | ||
|
||
const { i18n } = declareComponentKeys< | ||
"dashboard" | "data" | "members" | "manage_storage" | "consumption_monitoring" | "permissions_granted" | "my_account" | "my_access_keys" | ||
>()("datastoreNavItems"); | ||
export type I18n = typeof i18n; | ||
|
||
export const datastoreNavItemsFrTranslations: Translations<"fr">["datastoreNavItems"] = { | ||
dashboard: "Tableau de bord", | ||
data: "Données", | ||
members: "Membres", | ||
manage_storage: "Gérer l’espace de travail", | ||
consumption_monitoring: "Suivi des consommations", | ||
permissions_granted: "Permissions accordées", | ||
my_account: "Mon compte", | ||
my_access_keys: "Mes clés d’accès", | ||
}; | ||
|
||
export const datastoreNavItemsEnTranslations: Translations<"en">["datastoreNavItems"] = { | ||
dashboard: undefined, | ||
data: undefined, | ||
members: undefined, | ||
manage_storage: undefined, | ||
consumption_monitoring: undefined, | ||
permissions_granted: undefined, | ||
my_account: undefined, | ||
my_access_keys: undefined, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { declareComponentKeys } from "i18nifty"; | ||
|
||
import { Translations } from "../../i18n/types"; | ||
|
||
const { i18n } = declareComponentKeys< | ||
"documentation" | "offer" | "join" | "faq" | "nous écrire" | "start" | "maps" | "catalog" | "news" | "assistance" | "service status" | "about" | ||
>()("navItems"); | ||
export type I18n = typeof i18n; | ||
|
||
export const navItemsFrTranslations: Translations<"fr">["navItems"] = { | ||
"nous écrire": "Nous écrire", | ||
documentation: "Documentation", | ||
offer: "Offre", | ||
join: "Nous rejoindre", | ||
faq: "Questions fréquentes", | ||
start: "Commencer avec cartes.gouv", | ||
catalog: "Catalogue", | ||
maps: "Cartes", | ||
news: "Actualités", | ||
assistance: "Assistance", | ||
"service status": "Niveau de service", | ||
about: "À propos", | ||
}; | ||
|
||
export const navItemsEnTranslations: Translations<"en">["navItems"] = { | ||
"nous écrire": "Contact us", | ||
documentation: "Documentation", | ||
offer: "Offer", | ||
join: "Join us", | ||
faq: "Frequently asked questions", | ||
start: "Start with cartes.gouv", | ||
catalog: "Catalog", | ||
maps: "Maps", | ||
news: "News", | ||
assistance: "Assistance", | ||
"service status": "Level of service", | ||
about: "About", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
assets/entrepot/pages/accesses-request/AccessesRequest.tr.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { declareComponentKeys } from "i18nifty"; | ||
import { Translations } from "../../../i18n/types"; | ||
|
||
const { i18n } = declareComponentKeys< | ||
| "title" | ||
| { K: "explain"; P: { url: string }; R: JSX.Element } | ||
| "explain_no_access" | ||
| "back_to_dashboard" | ||
| "beneficiaries" | ||
| { K: "beneficiaries_hintext"; R: JSX.Element } | ||
| "myself" | ||
| { K: "community"; P: { name: string }; R: string } | ||
| "min_layers_error" | ||
| "sending_message" | ||
>()("AccessesRequest"); | ||
export type I18n = typeof i18n; | ||
|
||
export const AccessesRequestFrTranslations: Translations<"fr">["AccessesRequest"] = { | ||
title: "Demande d’accès", | ||
explain: ({ url }) => ( | ||
<p> | ||
Vous souhaitez demander au producteur des données décrites sur cette <a href={url}>fiche du catalogue</a> un accès aux services de diffusion de | ||
données dont l'accès est restreint. Sélectionnez les couches de données et types de services auxquels vous souhaitez accéder : (sélectionner au | ||
moins une couche) | ||
</p> | ||
), | ||
explain_no_access: "Cette fiche ne décrit aucun service de diffusion dont l’accès est restreint. Vous avez déjà accès à toutes les données décrites.", | ||
back_to_dashboard: "Retour au tableau de bord", | ||
beneficiaries: "Bénéficiaires", | ||
beneficiaries_hintext: ( | ||
<span> | ||
Vous pouvez demander au producteur des données de vous accorder une permission d'accès personnelle ou | ||
<br /> | ||
demander qu'il accorde cette permission à tous les membres d'une communauté à laquelle vous appartenez. | ||
</span> | ||
), | ||
myself: "Moi-même", | ||
community: ({ name }) => `La communauté ${name}`, | ||
min_layers_error: "Vous devez sélectionner au moins une couche", | ||
sending_message: "Votre message est en cours d’envoi ...", | ||
}; | ||
|
||
export const AccessesRequestEnTranslations: Translations<"en">["AccessesRequest"] = { | ||
title: undefined, | ||
explain: undefined, | ||
explain_no_access: undefined, | ||
back_to_dashboard: undefined, | ||
beneficiaries: "Bénéficiaries", | ||
beneficiaries_hintext: undefined, | ||
myself: "Myself", | ||
community: ({ name }) => `Community ${name}`, | ||
min_layers_error: undefined, | ||
sending_message: undefined, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
assets/entrepot/pages/communities/AddMember/AddMember.tr.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { declareComponentKeys } from "i18nifty"; | ||
|
||
import { Translations } from "../../../../i18n/types"; | ||
|
||
const { i18n } = declareComponentKeys< | ||
"add_user_title" | "user_id" | "rights_granted" | "id_mandatory" | "id_must_be_uuid" | { K: "already_member"; P: { userId: string }; R: string } | "running" | ||
>()("AddMember"); | ||
export type I18n = typeof i18n; | ||
|
||
export const AddMemberFrTranslations: Translations<"fr">["AddMember"] = { | ||
add_user_title: "Ajouter un utilisateur", | ||
user_id: "Identifiant de l’utilisateur", | ||
rights_granted: "Permissions accordées", | ||
id_mandatory: "L’identifiant est obligatoire", | ||
id_must_be_uuid: "L’Identifiant doit être un UUID", | ||
already_member: ({ userId }) => `l’utilisateur ${userId} est déjà membre de cet espace de travail`, | ||
running: "Ajout d’utilisateur en cours ...", | ||
}; | ||
|
||
export const AddMemberEnTranslations: Translations<"en">["AddMember"] = { | ||
add_user_title: "Add user", | ||
user_id: "User identifier", | ||
rights_granted: "Rights granted", | ||
id_mandatory: "Identifier is mandatory", | ||
id_must_be_uuid: "Identifier must be an UUID", | ||
already_member: ({ userId }) => `User ${userId} is already a member of this community`, | ||
running: "Ajout d’utilisateur running ...", | ||
}; |
Oops, something went wrong.