Class ClientLanguageExtensions
Extension methods for the Dalamud.Common.ClientLanguage class.
Assembly: Dalamud.dll​
Declaration
public static class ClientLanguageExtensions
Methods​
ToLumina(ClientLanguage)​
Converts a Dalamud ClientLanguage to the corresponding Lumina variant.
Declaration
public static Language ToLumina(this ClientLanguage language)
Returns​
Lumina.Data.Language: Converted language.
Parameters​
| Type | Name | Description |
|---|---|---|
Dalamud.Common.ClientLanguage | language | Language to convert. |
ToCode(ClientLanguage)​
Gets the language code from a ClientLanguage.
Declaration
public static string ToCode(this ClientLanguage value)
Returns​
System.String: The language code (ja, en, de, fr).
Parameters​
| Type | Name | Description |
|---|---|---|
Dalamud.Common.ClientLanguage | value | The ClientLanguage to convert. |
Exceptions​
System.ArgumentOutOfRangeException
An exception that is thrown when no valid ClientLanguage was given.
ToClientLanguage(string)​
Gets the ClientLanguage from a language code.
Declaration
public static ClientLanguage ToClientLanguage(this string value)
Returns​
Dalamud.Common.ClientLanguage: The ClientLanguage.
Parameters​
| Type | Name | Description |
|---|---|---|
System.String | value | The language code to convert (ja, en, de, fr). |
Exceptions​
System.ArgumentOutOfRangeException
An exception that is thrown when no valid language code was given.