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 ; }
Returns the key for the best matching local - specific property version .