NocoBase plugins support multi-language internationalization (i18n) for both frontend and backend. Through a unified mechanism, you can easily implement multi-language content in plugins.
Plugin multi-language files are uniformly stored in the src/locale directory. It's recommended to name them by language, for example:
Each language file exports a JSON object containing all translation entries for that language, for example:
When adding language files for the first time, you need to restart the application for them to take effect. You can verify that the translation entries have taken effect through the API:
http://localhost:13000/api/app:getLang?locale=zh-CN