boolean testCurrent(String lang, String country);

i.e.,

org.zkoss.util.Locales

Returns whether the current locale (getCurrentLocale()) belongs to the specified language and/or country.

Parameters:

  • lang - the language code, e.g., en and zh. Ignored if null.
  • country - the country code, e.g., US. Ignored if null. If empty, it means no country code at all.