public interface I18nProvider
| Modifier and Type | Method and Description |
|---|---|
com.day.cq.i18n.I18n |
i18n(javax.servlet.http.HttpServletRequest request)
Provides the i18n map based on the request
|
com.day.cq.i18n.I18n |
i18n(Locale locale)
Provides the i18n map based on the underlying resource
|
com.day.cq.i18n.I18n |
i18n(org.apache.sling.api.resource.Resource resource)
Provides the i18n map based on the underlying resource
|
String |
translate(String key,
javax.servlet.http.HttpServletRequest request)
Provides the translated value based on request
|
String |
translate(String key,
Locale locale)
Provides the translated value based on resource
|
String |
translate(String key,
org.apache.sling.api.resource.Resource resource)
Provides the translated value based on resource
|
String translate(String key, org.apache.sling.api.resource.Resource resource)
key - i18n keyresource - underlying resourceString translate(String key, Locale locale)
key - i18n keylocale - localeString translate(String key, javax.servlet.http.HttpServletRequest request)
key - i18n keyrequest - localecom.day.cq.i18n.I18n i18n(org.apache.sling.api.resource.Resource resource)
resource - underlying resourcecom.day.cq.i18n.I18n i18n(Locale locale)
locale - localecom.day.cq.i18n.I18n i18n(javax.servlet.http.HttpServletRequest request)
request - requestCopyright © 2013–2020 Adobe. All rights reserved.