public interface TranslationService
| Modifier and Type | Method and Description |
|---|---|
TranslationQuery |
createTranslationQuery() |
List<Translation> |
findByScopeIdAndScopeType(String scopeId,
String scopeType)
Find all translations for the given scope id and scope type.
|
Translation |
save(String scopeId,
String scopeType,
String key,
String locale,
String value)
Create or update a translation for the given scoped object.
|
Translation |
updateValue(String translationId,
String value)
Update the translation with the given value
|
TranslationQuery createTranslationQuery()
Translation save(String scopeId, String scopeType, String key, String locale, String value)
scopeId - the id of the scoped object for the translationscopeType - the type of the scoped object for the translationkey - the key of the translationlocale - the locale of the translationvalue - the translation valueTranslation updateValue(String translationId, String value)
translationId - the id of the translation that should be updatedvalue - the new value of the translationList<Translation> findByScopeIdAndScopeType(String scopeId, String scopeType)
scopeId - the scope id for which to find translationsscopeType - the scope type for which to find translationsCopyright © 2019. All rights reserved.