public final class SalI18nResolver extends Object implements I18nResolver
I18nResolver using SAL.| Constructor and Description |
|---|
SalI18nResolver(com.atlassian.sal.api.message.I18nResolver resolver)
Wrap the passed
I18nResolver and turn it into an I18nResolver. |
| Modifier and Type | Method and Description |
|---|---|
String |
getText(String key)
Turn the passed key into an i18n string for the caller's current language.
|
String |
getText(String key,
Serializable... keys)
Turn the passed key into an i18n string for the caller's current language.
|
public SalI18nResolver(com.atlassian.sal.api.message.I18nResolver resolver)
I18nResolver and turn it into an I18nResolver.resolver - the resolver to wrap.public String getText(String key)
I18nResolvergetText in interface I18nResolverkey - the key to transform.public String getText(String key, Serializable... keys)
I18nResolvergetText in interface I18nResolverkey - the key to transform.keys - the arguments to use in the i18n transform.Copyright © 2018 Atlassian. All rights reserved.