Question:
We want to send a push in several languages. How does Pushwoosh decide which language a device gets, and what happens if the device language is not one of the languages we filled in?
Answer:
Multi-language content in Pushwoosh works on a default content + added languages model:
- In the message (or push preset) editor you first fill in the default content. This is what every device receives unless a more specific language version exists.
- To add localizations, click the Plus button at the top of the editor and pick the languages you need. Each added language gets its own content field.
- When a message is sent, Pushwoosh matches the device language (lowercase two-letter ISO 639-1 code reported by the SDK) against the added localizations. If there is a match, the device gets the localized text; if there is no match, the device gets the default content.
Example. You have devices in Portuguese, French, English and German. You put your English text in the default content and add Portuguese and French localizations:
- Portuguese devices receive the Portuguese text;
- French devices receive the French text;
- English and German devices receive the default (English) text.
If you want another language to be the fallback for everyone else, simply put that language's text in the default content field instead of English.
Note: older versions of the Control Panel used a set of language tabs in which the English tab acted as the default. That is no longer the case - there is now an explicit default content field, so there is no "random default language" behaviour any more.
More information is available in our documentation: Multi-language messaging and Multilanguage (developer guide).
Comments
0 comments
Please sign in to leave a comment.