From ba19fb1aef8f6c575ad34dad120542d59985a2bf Mon Sep 17 00:00:00 2001 From: Peter Laske <37439758+laske185@users.noreply.github.com> Date: Wed, 17 Apr 2024 13:10:52 +0200 Subject: [PATCH] fix: remove var --- packages/components/src/core/i18n.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/components/src/core/i18n.ts b/packages/components/src/core/i18n.ts index d0c006f8c1..2ecf553130 100644 --- a/packages/components/src/core/i18n.ts +++ b/packages/components/src/core/i18n.ts @@ -9,8 +9,7 @@ interface ITranslationOptions { // String.replaceAll should be used but is only available with ECMAScript 2021. const replaceAll = function (text: string, search: string, replacement: string) { - var target = text; - return target.split(search).join(replacement); + return text.split(search).join(replacement); }; type Resources = Map;