strapi-llm-translator 0.9.3 → 0.9.5

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/README.md CHANGED
@@ -21,7 +21,7 @@ The Strapi LLM Translator plugin enhances your localization workflow by utilisin
21
21
 
22
22
  ## ✅ Tested With
23
23
 
24
- - **Strapi**: v5.12.4
24
+ - **Strapi**: v5.12.x
25
25
  - **LLM Providers**:
26
26
  - OpenAI: `gpt-4o`
27
27
  - Groq: `meta-llama/llama-4-scout-17b-16e-instruct`
@@ -32,6 +32,7 @@ The Strapi LLM Translator plugin enhances your localization workflow by utilisin
32
32
 
33
33
  - Strapi project (v5+)
34
34
  - API key for your preferred LLM provider, opt. BaseUrl + model name
35
+ - Configured internationalization with at least two languages in your Strapi application
35
36
 
36
37
  ### Installation
37
38
 
@@ -161,7 +161,7 @@ const isTranslatableField = (contentType, key, value) => {
161
161
  if (!fieldSchema) {
162
162
  return false;
163
163
  }
164
- const isStringOrText = ["string", "text"].includes(fieldSchema.type);
164
+ const isStringOrText = ["string", "text", "richtext"].includes(fieldSchema.type);
165
165
  const isNotUID = fieldSchema.type !== "uid";
166
166
  const isLocalizable = fieldSchema.pluginOptions?.i18n?.localized !== false;
167
167
  return isStringOrText && isNotUID && isLocalizable;
@@ -160,7 +160,7 @@ const isTranslatableField = (contentType, key, value) => {
160
160
  if (!fieldSchema) {
161
161
  return false;
162
162
  }
163
- const isStringOrText = ["string", "text"].includes(fieldSchema.type);
163
+ const isStringOrText = ["string", "text", "richtext"].includes(fieldSchema.type);
164
164
  const isNotUID = fieldSchema.type !== "uid";
165
165
  const isLocalizable = fieldSchema.pluginOptions?.i18n?.localized !== false;
166
166
  return isStringOrText && isNotUID && isLocalizable;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.9.3",
2
+ "version": "0.9.5",
3
3
  "keywords": [
4
4
  "strapi",
5
5
  "plugin",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@strapi/sdk-plugin": "^5.3.2",
60
- "@strapi/strapi": "^5.12.4",
60
+ "@strapi/strapi": ">=5.12.3",
61
61
  "react": "^18.3.1",
62
62
  "react-dom": "^18.3.1",
63
63
  "react-router-dom": "^6.30.0",