From 097c0143b0b5a600b7b02c869035fdd7af21ce8e Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Tue, 10 May 2022 00:42:59 -0700 Subject: [PATCH] fix: Fixes missing localization interpolation handler (#1016) --- Projects/Server/Localization/LocalizationEntry.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Projects/Server/Localization/LocalizationEntry.cs b/Projects/Server/Localization/LocalizationEntry.cs index c2914601f..9bb2d4540 100644 --- a/Projects/Server/Localization/LocalizationEntry.cs +++ b/Projects/Server/Localization/LocalizationEntry.cs @@ -146,7 +146,15 @@ public class LocalizationEntry _lang = entry.Language; } - public LocalizationInterpolationHandler(int literalLength, int formattedCount, int number, string lang, out bool isValid) + public LocalizationInterpolationHandler( + int literalLength, int formattedCount, int number, out bool isValid + ) : this(literalLength, formattedCount, number, Localization.FallbackLanguage, out isValid) + { + } + + public LocalizationInterpolationHandler( + int literalLength, int formattedCount, int number, string lang, out bool isValid + ) { if (Localization.TryGetLocalization(lang, number, out var entry)) {