@Override
    public Map<String, String> getNameTranslations(Map<String, Object> tags) {
      Map<String, String> result = new HashMap<>();
      for (var entry : tags.entrySet()) {
        String key = entry.getKey();
        if (LanguageUtils.isValidOsmNameTag(key) && entry.getValue() instanceof String stringVal) {
          result.put(key, stringVal);
        }
      }
      return result;
    }
Extracts translations from {@code name:lang} tags on an OSM element.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/Translations.java