Skip to content

Commit

Permalink
[Copy] Replaces "Job templates library" in resources section on admin…
Browse files Browse the repository at this point in the history
… dashboard (#12394)

* Replace "Job templates library" in resources section on admin dashboard

* Add translation
  • Loading branch information
mnigh authored Dec 30, 2024
1 parent 229fc1c commit c111489
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 18 deletions.
8 changes: 4 additions & 4 deletions apps/web/src/lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@
"defaultMessage": "Demande d’état mise à jour!",
"description": "Message displayed to user after the request status is successfully updated."
},
"+nQpv5": {
"defaultMessage": "Modèles d'offres d'emploi",
"description": "Title for the page showing list of job advertisement templates"
},
"+o1lWq": {
"defaultMessage": "Ce poste requiert de pouvoir travailler en français. Il incombe au gestionnaire de l’embauche de déterminer si vous répondez à cette exigence linguistique.",
"description": "French essential language requirement description"
Expand Down Expand Up @@ -4787,10 +4791,6 @@
"defaultMessage": "Inconnu",
"description": "Contract start timeframe is unknown"
},
"MySfL/": {
"defaultMessage": "Bibliothèque de modèles d'emplois",
"description": "Label for link to job templates library"
},
"Myfw+L": {
"defaultMessage": "Bassins",
"description": "Title for pools"
Expand Down
6 changes: 6 additions & 0 deletions apps/web/src/messages/pageTitles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,10 @@ export default defineMessages({
id: "V95g4E",
description: "Title for the index training opportunities page",
},
jobAdvertisementTemplates: {
defaultMessage: "Job advertisement templates",
id: "+nQpv5",
description:
"Title for the page showing list of job advertisement templates",
},
});
8 changes: 4 additions & 4 deletions apps/web/src/pages/AdminDashboardPage/AdminDashboard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe("Render dashboard page", () => {
// resources links
expect(
screen.getByRole("link", {
name: "Job templates library",
name: "Job advertisement templates",
}),
).toBeInTheDocument();
expect(
Expand Down Expand Up @@ -145,7 +145,7 @@ describe("Render dashboard page", () => {
// resources links
expect(
screen.getByRole("link", {
name: "Job templates library",
name: "Job advertisement templates",
}),
).toBeInTheDocument();
expect(
Expand Down Expand Up @@ -226,7 +226,7 @@ describe("Render dashboard page", () => {
// resources links
expect(
screen.getByRole("link", {
name: "Job templates library",
name: "Job advertisement templates",
}),
).toBeInTheDocument();
expect(
Expand Down Expand Up @@ -307,7 +307,7 @@ describe("Render dashboard page", () => {
// resources links
expect(
screen.getByRole("link", {
name: "Job templates library",
name: "Job advertisement templates",
}),
).toBeInTheDocument();
expect(
Expand Down
6 changes: 1 addition & 5 deletions apps/web/src/pages/AdminDashboardPage/AdminDashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,7 @@ export const DashboardPage = ({ currentUser }: DashboardPageProps) => {
roles: [],
},
{
label: intl.formatMessage({
defaultMessage: "Job templates library",
id: "MySfL/",
description: "Label for link to job templates library",
}),
label: intl.formatMessage(navigationMessages.jobAdvertisementTemplates),
href: adminRoutes.jobPosterTemplates(),
roles: [],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,7 @@ export const DashboardPage = ({ currentUser }: DashboardPageProps) => {
roles: [],
},
{
label: intl.formatMessage({
defaultMessage: "Job templates library",
id: "MySfL/",
description: "Label for link to job templates library",
}),
label: intl.formatMessage(navigationMessages.jobAdvertisementTemplates),
href: adminRoutes.jobPosterTemplates(),
roles: [],
},
Expand Down
4 changes: 4 additions & 0 deletions packages/i18n/src/lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,10 @@
"defaultMessage": "Ajouter le lien",
"description": "Button text for adding a link in the rich text editor"
},
"ZhOciS": {
"defaultMessage": "Modèles d'offres d'emploi",
"description": "Name of job advertisement templates page"
},
"ZhQEUx": {
"defaultMessage": "Ce champ requiert des dates ultérieures seulement.",
"description": "Error message that the provided date must be in the future."
Expand Down
5 changes: 5 additions & 0 deletions packages/i18n/src/messages/navigationMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ const navigationMessages = defineMessages({
id: "dK8pdO",
description: "Name of job template page",
},
jobAdvertisementTemplates: {
defaultMessage: "Job advertisement templates",
id: "ZhOciS",
description: "Name of job advertisement templates page",
},
announcements: {
defaultMessage: "Announcements",
id: "Md1J9+",
Expand Down

0 comments on commit c111489

Please sign in to comment.