From 8087c68d58e9d5ac1e367b3bfc4f3a510c99109f Mon Sep 17 00:00:00 2001 From: Quentin Date: Thu, 17 Oct 2024 22:31:16 +0200 Subject: [PATCH] Variables should not be shadowed --- src/main/resources/generator/client/common/i18n/Translations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/generator/client/common/i18n/Translations.ts b/src/main/resources/generator/client/common/i18n/Translations.ts index 72d35ac7e8b..afbd8d813b6 100644 --- a/src/main/resources/generator/client/common/i18n/Translations.ts +++ b/src/main/resources/generator/client/common/i18n/Translations.ts @@ -12,7 +12,7 @@ const toLanguage = ([key, value]: [string, ResourceKey]): [string, ResourceLangu export const mergeTranslations = (translations: Translations[]): Translations => translations - .flatMap(translations => Object.entries(translations)) + .flatMap(translation => Object.entries(translation)) .reduce( (acc, [key, translation]) => ({ ...acc,