From d04847c11f25fb23d799ab5d0d7c73dd53cf18cc Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Wed, 14 May 2025 19:01:51 +0300 Subject: [PATCH] Gift Composer: Fix translation (#5888) --- src/util/localization/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/localization/index.ts b/src/util/localization/index.ts index 66031bb5a..b0542891e 100644 --- a/src/util/localization/index.ts +++ b/src/util/localization/index.ts @@ -378,7 +378,7 @@ function processTranslation( } const valueAsString = Number.isFinite(value) ? formatters!.number.format(value as number) : String(value); - return result.replace(`{${key}}`, valueAsString); + return result.replaceAll(`{${key}}`, valueAsString); }, string); TRANSLATION_CACHE.set(cacheKey, finalString);