getLanguage

open fun getLanguage(): String

Returns the current language code used for push notification localization.

This method returns either the custom language set via setLanguage or the device language if no custom language was set. Example:


  String language = Pushwoosh.getInstance().getLanguage();
  Log.d("Pushwoosh", "Current language: " + language);

Return

Current language code in ISO-639-1 format