public interface II18nMessageResolver
Define interface for customized i18n message resolver
| Modifier and Type | Interface and Description |
|---|---|
static class |
II18nMessageResolver.DefaultImpl |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage(ITemplate template,
String key,
Object... args)
Return i18n message of a given key and args, use the locale info from the template specified.
|
String getMessage(ITemplate template, String key, Object... args)
Return i18n message of a given key and args, use the locale info from the template specified.
if null template passed in then it will try to guess from the current engine via
RythmEngine.get()
template - key - args - the format arguments. If the first argument is of type Locale then it will be used to specify the locale of the processing, and the rest elements are used as format argumentsCopyright © 2017–2021 OSGL (Open Source General Library). All rights reserved.