You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 17, 2026. It is now read-only.
fix(ai-plugins): make action labels translatable and add German translations (#149)
* fix(ai-plugins): make action labels translatable and add German translations
* chore: remove German translations from all AI plugin translation files
Removed the "de" sections from all translation JSON files:
- plugin-ai-audio-generation-web
- plugin-ai-generation-web
- plugin-ai-image-generation-web
- plugin-ai-sticker-generation-web
- plugin-ai-text-generation-web
- plugin-ai-video-generation-web
* feat(i18n): allow integrators to set translations before loading plugins
Add setDefaultTranslations() helper that only sets translations for keys
that don't already exist. This allows integrators to customize AI plugin
labels by calling setTranslations() BEFORE adding plugins, rather than
having to override them afterwards.
Changes:
- Add setDefaultTranslations() to plugin-ai-generation-web
- Update all AI plugin entry points to use setDefaultTranslations()
- Add ?translations=true query param to demo app for testing
- Update i18n.md docs with both pre/post plugin loading approaches
- Fix translation key prefixes (@imgly/ vs ly.img.)
* refactor(i18n): use setDefaultTranslations in all AI plugin providers
Convert all cesdk.i18n.setTranslations() and cesdk.setTranslations() calls
to use setDefaultTranslations() helper. This ensures integrators can set
custom translations BEFORE plugins load without being overwritten.
- Converted 74 files across all AI plugin packages
- Added import for setDefaultTranslations from @imgly/plugin-ai-generation-web
- Maintains backward compatibility with existing integrations
* chore(i18n): remove German translations from plugin source files
Remove all hardcoded German translations from AI plugin TypeScript source files.
This completes the removal of German translations started in 14cfd6a.
Removed German translations from:
- plugin-ai-image-generation-web
- plugin-ai-video-generation-web
- plugin-ai-audio-generation-web
- plugin-ai-sticker-generation-web
- plugin-ai-generation-web (initializeProviders)
- Unit test assertions for German translations
* feat(i18n): add translations.json to plugin-ai-apps-web
- Extract hardcoded translations to translations.json file
- Add apps.json symlink for test translations
- Now 'AI' panel title gets '&AI' prefix with ?translations=true
* style: format files with prettier
* chore: remove playwright screenshots and gitignore them
* docs: add i18n documentation to AI plugin READMEs
Document the new translation pattern that allows integrators to
customize translations before plugins load using setDefaultTranslations.
* Release AI plugins v0.2.16
- Translatable action labels with labelKey property
- setDefaultTranslations utility for integrator-first translations
- External translations.json files for easier customization
- Comprehensive i18n documentation in READMEs
Copy file name to clipboardExpand all lines: CHANGELOG-AI.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,23 @@
2
2
3
3
## [Unreleased]
4
4
5
+
## [0.2.16] - 2026-01-16
6
+
7
+
### New Features
8
+
9
+
-[all]**Translatable Action Labels**: AI plugin action labels now support full i18n through `labelKey` property, enabling dynamic translation resolution based on the current locale.
10
+
-[generation-web]**setDefaultTranslations Utility**: Added `setDefaultTranslations()` function that only sets translation keys that don't already exist, allowing integrators to customize translations before plugins load without being overwritten.
11
+
-[all]**External Translation Files**: Plugin translations are now loaded from external `translations.json` files, making it easier to review and customize available translation keys.
12
+
13
+
### Improvements
14
+
15
+
-[all]**Translation Override Pattern**: All AI plugins now use `setDefaultTranslations()` instead of `setTranslations()`, ensuring integrator-provided translations take priority over plugin defaults.
16
+
-[apps-web]**Dynamic Card Labels**: AI Apps panel now resolves card labels dynamically using `labelKey` from action metadata, enabling proper i18n for app cards.
17
+
18
+
### Documentation
19
+
20
+
-[all] Added comprehensive i18n documentation to README files explaining how to customize translations before plugin initialization.
Copy file name to clipboardExpand all lines: packages/plugin-ai-apps-web/CHANGELOG.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,23 @@
2
2
3
3
## [Unreleased]
4
4
5
+
## [0.2.16] - 2026-01-16
6
+
7
+
### New Features
8
+
9
+
-[all]**Translatable Action Labels**: AI plugin action labels now support full i18n through `labelKey` property, enabling dynamic translation resolution based on the current locale.
10
+
-[generation-web]**setDefaultTranslations Utility**: Added `setDefaultTranslations()` function that only sets translation keys that don't already exist, allowing integrators to customize translations before plugins load without being overwritten.
11
+
-[all]**External Translation Files**: Plugin translations are now loaded from external `translations.json` files, making it easier to review and customize available translation keys.
12
+
13
+
### Improvements
14
+
15
+
-[all]**Translation Override Pattern**: All AI plugins now use `setDefaultTranslations()` instead of `setTranslations()`, ensuring integrator-provided translations take priority over plugin defaults.
16
+
-[apps-web]**Dynamic Card Labels**: AI Apps panel now resolves card labels dynamically using `labelKey` from action metadata, enabling proper i18n for app cards.
17
+
18
+
### Documentation
19
+
20
+
-[all] Added comprehensive i18n documentation to README files explaining how to customize translations before plugin initialization.
For detailed documentation on the translation system, including all available translation keys and utilities, see the [Internationalization section](https://github.com/imgly/plugins/tree/main/packages/plugin-ai-generation-web#internationalization-i18n) in the core AI generation package.
569
+
570
+
### Translation Files
571
+
572
+
-[AI Apps translations](https://github.com/imgly/plugins/tree/main/packages/plugin-ai-apps-web/translations.json) - AI Apps panel labels
0 commit comments