Community Forums

Where our customers, developers, and more can come together to help each other with both general and technical questions about our products and services.

How do I set the locale_language tag in java API?


I would like to target users with a specific language. It looks like the selector should be "locale_language" "en" (for english speaking)  but how do I make this happen in the Java API?

Can not find any selector for it at least.

Please sign in to leave a comment.


Hello Jonny,

Thanks for contacting Airship. Chilun from Technical Support here at Airship and I would be happy to help with this.

Here is a link, which should contain an example of setting the locale language:

Kind regards,
Chilun Liu
Senior Technical Support Engineer

The Embassy Tea House, 195-205 Union Street, London, SE1 0LN
Portland | San Francisco | London | Paris | New York | New Delhi

chilun liu 0 votes
Comment actions Permalink

I managed to do it by doing the following selector, but it would be nice to have something more explicit in the API...

Selectors.tagWithGroup(locale.toLanguageTag(), "ua_locale_language")

Selectors.deviceProperty(DeviceProperty.LANGUAGE, locale.toLanguageTag());
jonny.boman 0 votes
Comment actions Permalink