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

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,35 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.2.17] - 2026-01-26
6
+
7
+ ### Fixed
8
+
9
+ - [image-generation] **Runware NanoBanana2Pro Dimensions**: Fixed API errors when using non-square aspect ratios (16:9, 9:16, 4:3, 3:4) with Nano Banana 2 Pro provider. The model requires specific dimension combinations (e.g., 1376×768 for 16:9) that differ from the generic aspect ratio map.
10
+ - [image-generation] **Runware Seedream 4.0 Dimensions**: Fixed API errors when using non-square aspect ratios with Seedream 4.0 provider. At 1K resolution, only 1:1 is supported; now using 2K dimensions for all aspect ratios to ensure compatibility.
11
+
12
+ ### Improvements
13
+
14
+ - [image-generation] **Runware Async Delivery**: Switched from synchronous requests to async delivery with polling to avoid timeouts on slower image generation models.
15
+ - [image-generation] **Runware NanoBanana2Pro I2I**: Added `resolution: '2k'` parameter to image-to-image generation for automatic aspect ratio detection from reference images.
16
+
17
+ ## [0.2.16] - 2026-01-16
18
+
19
+ ### New Features
20
+
21
+ - [all] **Translatable Action Labels**: AI plugin action labels now support full i18n through `labelKey` property, enabling dynamic translation resolution based on the current locale.
22
+ - [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.
23
+ - [all] **External Translation Files**: Plugin translations are now loaded from external `translations.json` files, making it easier to review and customize available translation keys.
24
+
25
+ ### Improvements
26
+
27
+ - [all] **Translation Override Pattern**: All AI plugins now use `setDefaultTranslations()` instead of `setTranslations()`, ensuring integrator-provided translations take priority over plugin defaults.
28
+ - [apps-web] **Dynamic Card Labels**: AI Apps panel now resolves card labels dynamically using `labelKey` from action metadata, enabling proper i18n for app cards.
29
+
30
+ ### Documentation
31
+
32
+ - [all] Added comprehensive i18n documentation to README files explaining how to customize translations before plugin initialization.
33
+
5
34
  ## [0.2.15] - 2026-01-12
6
35
 
7
36
  ### 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