Skip to content

Commit

Permalink
Merge pull request #3357 from GCTC-NTGC/feature/3285-restore-old-coe-…
Browse files Browse the repository at this point in the history
…for-old-search

Restore old labels for old search page
  • Loading branch information
tristan-orourke authored Jul 18, 2022
2 parents 1ee249e + 3b619d8 commit 8959992
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import { enumToOptions, unpackMaybes } from "@common/helpers/formUtils";
import { getLanguageAbility } from "@common/constants";
import { debounce } from "debounce";
import { useLocation } from "@common/helpers/router";
import {
getOperationalRequirement,
getWorkRegion,
} from "@common/constants/localizedConstants";
import { getWorkRegion } from "@common/constants/localizedConstants";
import { getOperationalRequirement } from "./localizedConstants";
import {
Classification,
CmoAsset,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import { defineMessages, MessageDescriptor } from "react-intl";
import { OperationalRequirement } from "@common/api/generated";
import { getOrThrowError } from "@common/helpers/util";

export const operationalRequirements = defineMessages({
[OperationalRequirement.ShiftWork]: {
defaultMessage: "Shift work",
description: "The operational requirement described as shift work.",
},
[OperationalRequirement.OnCall]: {
defaultMessage: "24/7 on-call",
description: "The operational requirement described as 24/7 on-call.",
},
[OperationalRequirement.Travel]: {
defaultMessage: "Travel as required",
description: "The operational requirement described as travel as required.",
},
[OperationalRequirement.TransportEquipment]: {
defaultMessage: "Transport equipment up to 20kg",
description:
"The operational requirement described as transport equipment up to 20kg.",
},
[OperationalRequirement.DriversLicense]: {
defaultMessage: "Driver's license",
description: "The operational requirement described as driver's license.",
},
[OperationalRequirement.WorkWeekends]: {
defaultMessage: "Work weekends",
description: "The operational requirement described as work weekends.",
},
[OperationalRequirement.OvertimeScheduled]: {
defaultMessage: "Work scheduled overtime",
description: "The operational requirement described as scheduled overtime.",
},
[OperationalRequirement.OvertimeShortNotice]: {
defaultMessage: "Work overtime on short notice",
description:
"The operational requirement described as short notice overtime.",
},
});

export const getOperationalRequirement = (
operationalRequirementId: string | number,
): MessageDescriptor =>
getOrThrowError(
operationalRequirements,
operationalRequirementId,
`Invalid Operational Requirement '${operationalRequirementId}'`,
);
32 changes: 32 additions & 0 deletions frontend/talentsearch/src/js/lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,38 @@
"defaultMessage": "Groupes visés par l’équité en matière d’emploi",
"description": "Legend for the employment equity checklist"
},
"3HAFul": {
"defaultMessage": "Déplacements selon les besoins",
"description": "The operational requirement described as travel as required."
},
"6I3OCB": {
"defaultMessage": "Travailler les fins de semaine",
"description": "The operational requirement described as work weekends."
},
"8QkGEF": {
"defaultMessage": "Transport de matériel jusqu'à 20 kg",
"description": "The operational requirement described as transport equipment up to 20kg."
},
"Bw9k0J": {
"defaultMessage": "Travailler des heures supplémentaires prévues",
"description": "The operational requirement described as scheduled overtime."
},
"Dk5E2+": {
"defaultMessage": "Garde 24/7",
"description": "The operational requirement described as 24/7 on-call."
},
"eJCfxF": {
"defaultMessage": "Travailler des heures supplémentaires à court préavis",
"description": "The operational requirement described as short notice overtime."
},
"hCy99h": {
"defaultMessage": "Travailler des quarts de travail",
"description": "The operational requirement described as shift work."
},
"vhFe42": {
"defaultMessage": "Permis de conduire",
"description": "The operational requirement described as driver's license."
},
"1xRst5": {
"defaultMessage": "Résultats : <primary><testId>{candidateCount}</testId></primary> candidats correspondants à vos critères",
"description": "Heading for total matching candidates in results section of search page."
Expand Down

0 comments on commit 8959992

Please sign in to comment.