code: private void handleLangs(final Map<String, Object> dataModel) {
          final Locale locale = Latkes.getLocale();
          final String language = locale.getLanguage();
          final String country = locale.getCountry();
          final String variant = locale.getVariant();
  
          final StringBuilder keyBuilder = new StringBuilder(language);
  
          if (StringUtils.isNotBlank(country)) {
              keyBuilder.append("_").append(country);
          }
          if (StringUtils.isNotBlank(variant)) {
              keyBuilder.append("_").append(variant);
          }
  
          final String localKey = keyBuilder.toString();
          final Properties props = langs.get(localKey);
  
          if (null == props) {
              return;
          }
  
          final Set<Object> keySet = props.keySet();
  
          for (final Object key : keySet) {
              dataModel.put((String) key, props.getProperty((String) key));
          }
      }
docs: Processes languages. Retrieves language labels with default locale, then sets them into the specified data model.
  
  @param dataModel the specified data model