Package ai.tock.translator
Class I18nContext
-
- All Implemented Interfaces:
public final class I18nContextContains all data used to select the more relevant translation.
-
-
Field Summary
Fields Modifier and Type Field Description private final LocaleuserLocaleprivate final UserInterfaceTypeuserInterfaceTypeprivate final StringconnectorIdprivate final StringcontextId
-
Constructor Summary
Constructors Constructor Description I18nContext(Locale userLocale, UserInterfaceType userInterfaceType, String connectorId, String contextId)
-
Method Summary
Modifier and Type Method Description final LocalegetUserLocale()The current user Locale. final UserInterfaceTypegetUserInterfaceType()The current user interface type. final StringgetConnectorId()The connector identifier used for the response. final StringgetContextId()The current context identifier. -
-
Constructor Detail
-
I18nContext
I18nContext(Locale userLocale, UserInterfaceType userInterfaceType, String connectorId, String contextId)
-
-
Method Detail
-
getUserLocale
final Locale getUserLocale()
The current user Locale.
-
getUserInterfaceType
final UserInterfaceType getUserInterfaceType()
The current user interface type.
-
getConnectorId
final String getConnectorId()
The connector identifier used for the response.
-
getContextId
final String getContextId()
The current context identifier.
-
-
-
-