Class LocalizationResourceAccessor
Provides access to localization resources.
Inheritance
System.Object
LocalizationResourceAccessor
Namespace: Syncfusion.Maui.Toolkit.Localization
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public class LocalizationResourceAccessor : Object
Constructors
LocalizationResourceAccessor()
Declaration
public LocalizationResourceAccessor()
Properties
ResourceManager
Gets or sets the resource manager.
Declaration
public static ResourceManager ResourceManager { get; set; }
Property Value
Type | Description |
---|---|
System.Resources.ResourceManager | The resource manager. |
Methods
GetString(String)
Gets the localized string.
Declaration
public static string GetString(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text type |
Returns
Type | Description |
---|---|
System.String | The string. |
InitializeDefaultResource(String)
Initializes the default localization resource with the specified base name.
Declaration
public static void InitializeDefaultResource(string baseName)
Parameters
Type | Name | Description |
---|---|---|
System.String | baseName | The base name of the resource to initialize. |