setLanguage
Sets a custom application language for push notification localization.
By default, the SDK uses the device language. This method allows you to override the language for targeting localized push notifications. Set to null to revert to device language. Example:
// Set custom language
Pushwoosh.getInstance().setLanguage("es");
// Revert to device language
Pushwoosh.getInstance().setLanguage(null);
Content copied to clipboard
Parameters
language
lowercase two-letter code according to ISO-639-1 standard ("en", "de", "fr", etc.) or null (device language).