A powerful, high-performance plugin to manage global translations, UI phrases, and dictionary entries directly from the Strapi Admin Panel.
npm install @jaydeep28/strapi-plugin-dictionaryauth.login.*) in one go.
My_Folder) to ensure valid API keys.
home.header.menu.item).
src/plugins/dictionary.
config/plugins.ts:
typescript
export default () => ({
dictionary: {
enabled: true,
},
});
`
3. Rebuild: npm run build && npm run develop.
---
๐ User Guide
$3
Navigate to Dictionary Manager in the main menu.
- Dashboard: View quick stats at the top.
- Search: Type in the search bar to filter keys instantly.
- Expand/Collapse: Use the controls to manage the tree view.
$3
- Add Entry: Creates a single key-value pair (e.g., button.save).
- Create Folder: Opens the Folder Mode modal.
- Prefix: Set a parent folder name (e.g., auth).
- Items: Add multiple child keys at once (e.g., login, logout, signup).
- Result: Creates auth.login, auth.logout, etc.
$3
Click the Pencil Icon next to any folder to open Batch Edit Mode.
- Add new sub-items.
- Edit specific sub-item translations.
- Delete a sub-item from the list to remove it from the database.
---
๐ API Reference
Fetch translations for your frontend (Next.js, React, Mobile).
$3
Query Params:
- lang (optional): Locale code (default: en).
Response:
Returns a flat, optimized JSON object ideal for i18n libraries.
`json
{
"auth.login.title": "Welcome Back",
"auth.login.button": "Sign In",
"common.error": "Something went wrong"
}
`
---
๐ป Tech Stack & Design
- UI Framework: @strapi/design-system with strict Layout implementation.
- Theming: Dynamic DesignSystemProvider injection for seamless Dark/Light mode switching.
- State Management: React useState / useMemo for efficient tree rendering.
- Backend Service: Custom Content Type dictionary-item` with JSON fields for flexibility.