code: public static boolean hasLocale(final Locale locale) {
          try {
              ResourceBundle.getBundle(Keys.LANGUAGE, locale);
  
              return true;
          } catch (final MissingResourceException e) {
              return false;
          }
      }
docs: Determines whether the server has the specified locale configuration or not.
  
  @param locale the specified locale
  @return {@code true} if the server has the specified locale, {@code false} otherwise