How to get text key localization value by locale/language or node ID with REST or Endpoint?
Hi,
I have a community with different language preferences set for each sub-category (e.g. French language category, German language category, Chinese language category, etc., configured via Admin > Users > Profile Defaults > Language).
I'm attempting to retrieve and display text key values of a specific sub-category at the community level.
I'm able to read a locale code (?) from /users/self' or a node's 'profile.language' setting:
rest('/users/self/settings/name/profile.language').value
rest('/categories/id/${catId}/settings/name/profile.language').value
I can also use the 'text' Freemarker context object' text.format() to retrieve the value of a text key relative to the current node's (e.g. community at the community level) configured language (and/or user's selected language).
- Is there a way to retrieve a specific text key localization via REST or Endpoint given a locale code/language or node ID?
- Is there a separate setting or direct way to determine if a user is not using the default configured language?
- What is the difference between the 'profile.language' and 'config.language' setting?
Thanks!
Ben