From 0513eac7cd4c617caae0086229acf492e502d2ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20La=C5=A1t=C5=AFvka?= <84145589+XTorLukas@users.noreply.github.com> Date: Thu, 6 Jun 2024 04:32:48 +0200 Subject: [PATCH] Code Quality: Disabling cache in MessageFormat (#15559) --- src/Files.App/Extensions/MessageFormatExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Files.App/Extensions/MessageFormatExtensions.cs b/src/Files.App/Extensions/MessageFormatExtensions.cs index 4698d0a26e85..69d0c87daa7a 100644 --- a/src/Files.App/Extensions/MessageFormatExtensions.cs +++ b/src/Files.App/Extensions/MessageFormatExtensions.cs @@ -51,7 +51,7 @@ public static class MessageFormatExtensions /// It is initialized with the options to use cache and the two-letter ISO language name of the current UI culture, /// and a custom value formatter for number values. /// - private static readonly MessageFormatter _formatter = new(useCache: true, locale: _locale.TwoLetterISOLanguageName, customValueFormatter: _customFormatter); + private static readonly MessageFormatter _formatter = new(useCache: false, locale: _locale.TwoLetterISOLanguageName, customValueFormatter: _customFormatter); /// /// Creates a dictionary for format pairs with a string key.