on 2018 Feb 22 2:22 PM
I want to copy all existing translations for a localized attribute (eg countryName) to another localized attribute in another object. If there is better solution than allLanguages.foreach(l->l ......) Thanks
Request clarification before answering.
Jalo object has what you need. Example:
SomeObject jaloObject = modelService.getSource(source);
Map<Language, String> localizationMap = jaloObject.getAllLocalizedProp();
localizationMap.forEach((key, value) -> {
target.setLocalizedProp(value, key.getLocale());
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.