# Localization ## Django backend use builtin django localization ``` # use gettext to retrieve texts from django.utils.translation import gettext_lazy as _ # get text using django-admin makemessages -a # compile with django-admin compilemessages ``` ## Frontend This build using `next-i18next` for localization, please refer to the [docs](https://react.i18next.com/) for more information about this. With following convention : ### Every translation must put inside the same file_name.json These are the ground rules; 1. Translating `component/askChat/askChatIndex` the file must be `comp.askChat.askChatIndex.json`. With `comp` is abbrev for component. 1. Merging translation can be done within the folder. For example `com.askChat.json` means all translation for folder `component/askChat/*` wil be merged on it. 1. With the exception files in `pages/` directory not needed to add parent folder. For example `pages/exclusive/login` the file should be `exclusive.login.json` 1. If the file is parameter use the param name for example `qna/[id].js` then the file is `qna.id.param.js`. This will prevent a case where there is pages with `id` and param `[id]`.