SDK Locale

This section covers how to change the language of the SDK in your app as well as the content of all Luciq messages that your users see for React Native apps.

Setting the Locale

The SDK will automatically use the current locale of your user's device; however, you can override it with the following method.

JavaScript
import Luciq, { Locale } from '@luciq/react-native';

Luciq.setLocale(Locale.french);

Here are the possible locale values.

JavaScript
Locale.arabic
Locale.azerbaijani
Locale.chineseSimplified
Locale.chineseTraditional
Locale.czech
Locale.danish
Locale.dutch
Locale.english
Locale.french
Locale.german
Locale.italian
Locale.japanese
Locale.polish
Locale.portugueseBrazil
Locale.romanian
Locale.russian
Locale.spanish
Locale.swedish
Locale.turkish
Locale.korean

Dashboard Language

At the moment, the Luciq dashboard only supports English. Changing the SDK locale will not change the language of your dashboard.

Overriding String Values

You can also override each string shown to your users individually using the following method.

Here are the possible key values.

Last updated