Internationalization for AI Employee Plugins
Management-interface text in an AI employee plugin should follow the current interface language. Tools and Skills can use the plugin's own locale files through introduction, while AI employee profile fields are handled differently.
What needs internationalization
Usually, you need to internationalize text displayed to administrators or users:
introduction.titleandintroduction.aboutfor Toolsintroduction.titleandintroduction.aboutfor Skills- Text in frontend cards, modals, and action buttons
definition.name, definition.description, schema descriptions, Skill content, and AI employee system prompts are primarily intended for the model. Do not change a Tool's stable name or workflow content for interface translation.
Translate Tool and Skill management-interface text
A Tool's introduction can use the {{t(...)}} translation template:
Use the same format in the frontmatter of a Skill's SKILLS.md:
The ns value must match the internationalization namespace actually used by the plugin.
Add locale files
Plugin locale files are stored in src/locale/. Use the same keys for each language and change only the corresponding text.
Add English text
Add the following to src/locale/en-US.json:
Add Chinese text
Add the following to src/locale/zh-CN.json:
Current limitations for AI employee profiles
The nickname, position, bio, and greeting fields in an AI employee profile do not use the {{t(...)}} template mechanism above. At runtime, built-in employees currently translate these raw strings in the @nocobase/plugin-ai namespace, so third-party plugins should not assume that a custom namespace will take effect automatically.
Unless you add separate localization logic, choose one default language for the employee profile and put the interface text for Tools, Skills, and frontend interactions in the plugin's own locale files.
Related links
- AI employee plugin development — Return to the development guide overview
- Define a server-side Tool — Use translation templates in a Tool introduction
- Define a Skill — Use translation templates in Skill frontmatter
- Define a built-in AI employee — Learn about employee profile fields
- Add frontend interaction to a Tool — Add interface translations to frontend cards and modals

