Interface ILocalizationService
Interface for localization services handling game and voice language settings.
Namespace: Serenity.Localization.Application.Interfaces
Assembly: Serenity.Localization.Application.dll
Syntax
public interface ILocalizationService : IService, IFoundationSettings
Methods
GetGameLanguage()
Gets the current game language.
Declaration
string GetGameLanguage()
Returns
| Type | Description |
|---|---|
| string |
GetStringTableReference()
Gets the string table reference used for localization.
Declaration
string GetStringTableReference()
Returns
| Type | Description |
|---|---|
| string | The string table reference. |
GetVoiceLanguage()
Gets the current voice language.
Declaration
string GetVoiceLanguage()
Returns
| Type | Description |
|---|---|
| string | The current voice language. |
SetGameLanguage(LocalizationSetGameLanguageInput)
Sets the game language based on the provided input data transfer object.
Declaration
void SetGameLanguage(LocalizationSetGameLanguageInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| LocalizationSetGameLanguageInput | input | The input data transfer object containing the new game language. |
SetVoiceLanguage(LocalizationSetVoiceLanguageInput)
Sets the voice language based on the provided input data transfer object.
Declaration
void SetVoiceLanguage(LocalizationSetVoiceLanguageInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| LocalizationSetVoiceLanguageInput | input | The input data transfer object containing the new voice language. |