From c047d84112f58dc8b519a6d911caa93c64d21381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grand?= <francois.grand@inrae.fr> Date: Thu, 15 Dec 2022 14:17:37 +0100 Subject: [PATCH] fix: do not load translation files for Lechapt-Calmon calculor (now, it's a child nub) refs #585 --- src/app/services/internationalisation.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/services/internationalisation.service.ts b/src/app/services/internationalisation.service.ts index af0f2d42e..ba7e4cf84 100644 --- a/src/app/services/internationalisation.service.ts +++ b/src/app/services/internationalisation.service.ts @@ -62,7 +62,8 @@ export class I18nService extends Observable implements Observer { public async setLanguage(code: string) { /** excluded calculators */ const childCalculatorType: CalculatorType[] = [ - CalculatorType.Section, CalculatorType.Structure, CalculatorType.CloisonAval, CalculatorType.YAXN + CalculatorType.Section, CalculatorType.Structure, CalculatorType.CloisonAval, CalculatorType.YAXN, + CalculatorType.LechaptCalmon ]; // ensure 2-letter language code -- GitLab