Class ResourcesExtensions
Represents the extension methods for the ILocalizationSettings class.
public static class ResourcesExtensions
- Inheritance
-
ResourcesExtensions
- Inherited Members
Methods
GetFormattedLocalizableString(IResources, ILocalizationSettings, string, params object?[])
Gets a LocalizableString according to the formatted resources generated for all cluster languages.
public static LocalizableString GetFormattedLocalizableString(this IResources resources, ILocalizationSettings localizationSettings, string resourceWithFormatName, params object?[] args)
Parameters
resourcesIResourcesResources.
localizationSettingsILocalizationSettingsLocalization settings.
resourceWithFormatNamestringName of the resource that contains a format.
argsobject[]An object array that contains zero or more objects to format.
Returns
- LocalizableString
A LocalizableString string that contains all available translations in the cluster languages in which the format items in each language have been replaced by the string representation of the corresponding objects in
args.
GetLocalizableString(IResources, ILocalizationSettings, string)
Gets a LocalizableString according to the resources generated for all cluster languages.
public static LocalizableString GetLocalizableString(this IResources resources, ILocalizationSettings localizationSettings, string resourceName)
Parameters
resourcesIResourcesResources.
localizationSettingsILocalizationSettingsLocalization settings.
resourceNamestringName of the resource.
Returns
- LocalizableString
A LocalizableString string that contains all available translations in the cluster languages.