Localization
- It is about having key:value pair dictionary which can change on change of language.
- We should not localize dynamic values coming from the API
- Localization of following should be done:
- Static values/Labels: Need to do in mobile app side locally
- Dynamic values from API: Need to get the values directly from the API
Localization in the API
- We can send
Accept-Language header with language values
- for example:
- The logic could be a best match which calculate the language which should be returned
- If there is no match, we can send default
en-US from the API
Region and Language
- Examples:
- en-US (English-US)
- es-ES (Espanol-Espana)
- fr-FR (Francais-France)