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 Flutter 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.

Dart
Luciq.setLocale(LCQLocale.french);

Here are the possible locale values.

Dart
LCQLocale.arabic
LCQLocale.azerbaijani
LCQLocale.chineseSimplified
LCQLocale.chineseTraditional
LCQLocale.czech
LCQLocale.danish
LCQLocale.dutch
LCQLocale.english
LCQLocale.french
LCQLocale.german
LCQLocale.italian
LCQLocale.japanese
LCQLocale.korean
LCQLocale.polish
LCQLocale.portugueseBrazil
LCQLocale.portuguesePortugal
LCQLocale.romanian
LCQLocale.russian
LCQLocale.spanish
LCQLocale.swedish
LCQLocale.turkish
LCQLocale.indonesian
LCQLocale.slovak
LCQLocale.norwegian
LCQLocale.hungarian
LCQLocale.finnish

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.

Possible key values

Last updated