The Airship SDK provides localization for interactive notification buttons and the Message Center for the following languages: English, Chinese (Traditional), Chinese (Simplified), German, Hungarian, Slovak, Russian, Portuguese (Portugal), Portuguese (Brazil), French, Danish, Turkish, Norwegian, Romanian, Polish, Finnish, Dutch, Hindi, Spanish (Latin American), Spanish (Spain), Hebrew, Czech, Italian, Vietnamese, Thai, Japanese, Arabic, Korean, Malay, Indonesian, and Swedish.
To add translations for another language, copy the english strings.xml to the appropriate language resource folder. Translate it to the new language and the new language resource will be merged automatically. For more information, please see the Android documentation on resource merging and localization.
Airship uses the user’s locale for various locale-sensitive tasks, including selecting the language for In-App Automation messages and reporting for analytics. Apps can override the locale so that Airship uses a different locale than the device’s current locale. Note: Airship UI localization uses the device’s current locale, so it is not affected by the override.
Locale airshipLocale = UAirship.shared().getLocale();
val airshipLocale = UAirship.shared().locale;