Localizing the SDK
Localizing the SDK
The Zendesk SDK for Unity supports the following locales:
- Brazilian Portuguese
- Bulgarian
- Czech
- Danish
- Dutch
- English (US)
- Finnish
- French
- German
- Greek
- Hungarian
- Indonesian
- Italian
- Norwegian
- Polish
- Romanian
- Russian
- Spanish
- Swedish
- Turkish
- Vietnamese
- Japanese
- Korean
- Traditional Chinese (Taiwanese)
- Simplified Chinese
Zendesk SDK for Unity uses Text Mesh Pro to render texts. You can find all the font resource files and font atlases in the Zendesk SDK For Unity/Runtime/Resources/Fonts folder.
All text components in the SDK use Roboto-Regular SDF.asset as a font asset. Roboto-Regular has fallback assets for some languages like Korean, Japanese, Simplified Chinese, Traditional Chinese, and Thai. All non-latin languages use Noto-Sans font.
Initialize the SDK in your chosen locale
To initialize the SDK in a specific locale, you can provide a language (ZendeskLanguage type) as a parameter of the ZendeskSdk.InitializeAsync
method.
ZendeskSdk.InitializeAsync(configuration =>
{
configuration.ChannelId = channelId;
configuration.Language = ZendeskLanguage.English;
});
Note: The SDK sets the locale only at launch time. If the locale changes while the SDK is running, it won't update the SDK locale until you relaunch the app.