Table of Contents

Class TwLocalizerExtensions

Namespace
TwBlazor.Localization
Assembly
TwBlazor.dll

Helpers for reading text from an ITwLocalizer.

public static class TwLocalizerExtensions
Inheritance
TwLocalizerExtensions
Inherited Members

Methods

Plural(ITwLocalizer, int, string, string, params object?[])

Gets the singular or plural form of a text, depending on count.

public static string Plural(this ITwLocalizer localizer, int count, string oneKey, string otherKey, params object?[] arguments)

Parameters

localizer ITwLocalizer

The localizer to read from.

count int

The number that decides the form.

oneKey string

The key of the singular form, used when count is 1.

otherKey string

The key of the plural form.

arguments object[]

The values for the text's placeholders.

Returns

string

The formatted text.