fix: Fixes missing localization interpolation handler (#1016)
This commit is contained in:
parent
8031de4738
commit
097c0143b0
1 changed files with 9 additions and 1 deletions
|
|
@ -146,7 +146,15 @@ public class LocalizationEntry
|
||||||
_lang = entry.Language;
|
_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))
|
if (Localization.TryGetLocalization(lang, number, out var entry))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue