Skip to content

Commit 0513eac

Browse files
authored
Code Quality: Disabling cache in MessageFormat (#15559)
1 parent fd18e70 commit 0513eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Extensions/MessageFormatExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static class MessageFormatExtensions
5151
/// It is initialized with the options to use cache and the two-letter ISO language name of the current UI culture,
5252
/// and a custom value formatter for number values.
5353
/// </summary>
54-
private static readonly MessageFormatter _formatter = new(useCache: true, locale: _locale.TwoLetterISOLanguageName, customValueFormatter: _customFormatter);
54+
private static readonly MessageFormatter _formatter = new(useCache: false, locale: _locale.TwoLetterISOLanguageName, customValueFormatter: _customFormatter);
5555

5656
/// <summary>
5757
/// Creates a dictionary for format pairs with a string key.

0 commit comments

Comments
 (0)