public Translation getTranslation(String locale) {
        LocaleCodeSpecification.assertCode(locale);

        return this.getTranslations().get(locale);
    }
public Translation getTranslation ( String locale ) { LocaleCodeSpecification . assertCode ( locale ) ; return this . getTranslations ( ) . get ( locale ) ; }
Returns the translation corresponding to the given locale code.

@param locale locale code
@return the translation
@throws java.lang.IllegalArgumentException if the locale is null or empty
or contains other characters than letters and "-".