docs: public static String getLocalizedKey(Map<String, ?> propertiesMap, String key, Locale locale) {
  
          List<String> localizedKeys = CmsLocaleManager.getLocaleVariants(key, locale, true, false);
          for (String localizedKey : localizedKeys) {
              if (propertiesMap.containsKey(localizedKey)) {
                  return localizedKey;
              }
          }
          return key;
      }