Package com.sodius.oslc.server.services
Class I18nService
java.lang.Object
com.sodius.oslc.server.services.I18nService
Provides internationalization facilities.
- Since:
- 1.3.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
I18nService
public I18nService()
-
-
Method Details
-
getMessages
Returns a JSON stream containing all translations contributed by extensions ofcom.sodius.oslc.server.i18n.messages. The language is determined by inspecting preferred locale obtained with theLocalesAPI and available translations on server side.- Returns:
- a JSON stream containing all translations.
-
getTerms
Returns a JSON stream containing strings combining usages oftermsandarticles.For each term, keys are added in the JSON entity for its singular, plural and capitalized values. For each article, keys are added in the JSON entity for its singular, plural and capitalized values combined with each term.
- Returns:
- a JSON stream containing strings for terms and articles.
- Since:
- 4.0.0
-