@imgly/plugin-ai-image-generation-web 0.2.15 → 0.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -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.
21
+
5
22
  ## [0.2.15] - 2026-01-12
6
23
 
7
24
  ### New Features
package/README.md CHANGED
@@ -2110,9 +2110,29 @@ currentOrder.splice(2, 0, 'ly.img.ai.image-generation.dock');
2110
2110
  cesdk.ui.setDockOrder(currentOrder);
2111
2111
  ```
2112
2112
 
2113
- ## Translations
2113
+ ## Internationalization (i18n)
2114
2114
 
2115
- For customization and localization, see the [translations.json](https://github.com/imgly/plugins/tree/main/packages/plugin-ai-image-generation-web/translations.json) file which contains provider-specific translation keys for image generation interfaces.
2115
+ The Image Generation plugin supports full internationalization. To customize translations, set them **before** adding the plugin:
2116
+
2117
+ ```typescript
2118
+ cesdk.i18n.setTranslations({
2119
+ en: {
2120
+ '@imgly/plugin-ai-image-generation-web.action.label': 'Create Image',
2121
+ 'ly.img.plugin-ai-image-generation-web.fal-ai/recraft-v3.property.style': 'Art Style'
2122
+ },
2123
+ de: {
2124
+ '@imgly/plugin-ai-image-generation-web.action.label': 'Bild erstellen',
2125
+ 'ly.img.plugin-ai-image-generation-web.fal-ai/recraft-v3.property.style': 'Kunststil'
2126
+ }
2127
+ });
2128
+
2129
+ // Then add the plugins - they won't override your custom translations
2130
+ await cesdk.addPlugin(AiApps({ providers: { /* ... */ } }));
2131
+ ```
2132
+
2133
+ For detailed documentation on the translation system, see the [Internationalization section](https://github.com/imgly/plugins/tree/main/packages/plugin-ai-generation-web#internationalization-i18n) in the core AI generation package.
2134
+
2135
+ For all available translation keys, see the [translations.json](https://github.com/imgly/plugins/tree/main/packages/plugin-ai-image-generation-web/translations.json) file.
2116
2136
 
2117
2137
  ## Related Packages
2118
2138