code: public static String getLanguage(final String localeString) {
          if (localeString.length() >= LANG_END) {
              return localeString.substring(LANG_START, LANG_END);
          }
  
          return "";
      }
docs: Gets language from the specified locale string.
  
  @param localeString the specified locale string
  @return language, if the length of specified locale string less than 2, returns ""