Skip to content

Commit

Permalink
Code Quality: Disabling cache in MessageFormat (files-community#15559)
Browse files Browse the repository at this point in the history
  • Loading branch information
XTorLukas authored Jun 6, 2024
1 parent fd18e70 commit 0513eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Files.App/Extensions/MessageFormatExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// </summary>
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);

/// <summary>
/// Creates a dictionary for format pairs with a string key.
Expand Down

0 comments on commit 0513eac

Please sign in to comment.