Translation Service
This microservice is designed to manage project texts in multiple languages, update caches, and provide translations for both front-end and mobile applications.
Main Functions
- Update translation caches
- Retrieve all translations for the front-end application
- Retrieve all translations for the mobile application
- Fetch project and Platon translations from the database
- Convert translations into key-value maps
- Process text using translations
- Determine the current user’s language and select the appropriate translation
How It Works
- Translations are managed through the database and Redis cache
- Fetches Platon and project translations from the database and merges them
- Backend and front-end translations are stored in separate categories
- Translations are selected based on the required language index; if not available, the default value is used
- When updating the translation cache, old, new, and inactive keys are automatically managed