Add react i18next to console

Signed-off-by: Jonathan <contact@grafikart.fr>
This commit is contained in:
Jonathan
2026-07-21 16:09:41 +02:00
committed by Bryan Frimin
parent 1b7b2594eb
commit a7ff5f07bc
420 changed files with 10251 additions and 6825 deletions

View File

@@ -31,19 +31,19 @@ export const controlMaturityLevels = [
export type ControlMaturityLevel = (typeof controlMaturityLevels)[number];
export function getControlMaturityLevelLabel(__: Translator, level: string) {
export function getControlMaturityLevelLabel(t: Translator, level: string) {
switch (level) {
case "NONE":
return __("0 - None");
return t("helpers.controlMaturityLevel.none");
case "INITIAL":
return __("1 - Initial");
return t("helpers.controlMaturityLevel.initial");
case "MANAGED":
return __("2 - Managed");
return t("helpers.controlMaturityLevel.managed");
case "DEFINED":
return __("3 - Defined");
return t("helpers.controlMaturityLevel.defined");
case "QUANTITATIVELY_MANAGED":
return __("4 - Quantitatively Managed");
return t("helpers.controlMaturityLevel.quantitativelyManaged");
case "OPTIMIZING":
return __("5 - Optimizing");
return t("helpers.controlMaturityLevel.optimizing");
}
}