/** * Returns localized format strings. * @param locale selected locale * @return {@link FormatStrings} object, or null if no formats are registered for the locale */ @Nullable public static FormatStrings getFormatStrings(Locale locale) { return getFormatStringsRegistry().getFormatStrings(locale); }
/** * Returns localized format strings. * @param locale selected locale * @return {@link FormatStrings} object. Throws exception if not found. */ @Nonnull public static FormatStrings getFormatStringsNN(Locale locale) { return getFormatStringsRegistry().getFormatStringsNN(locale); }