Assuming we will call translation service even though there are other approaches.
- Pick the template based on locale
- Call translation service to get locale specific message
- Translation service will exist.
- Populate locale in REST api for consumer downstream
- Make user service call to get the locale
- Call translation service to get mappings
- Substitute values in message template
- We will pick message based on code
- Translation api will return code to message mapping
- Locale will be present against a complainant and employee (user service) both
- Error in token??
- How templatizing will work.