vite-plugin-localization-ai 1.0.11 → 1.0.12

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.
@@ -14,7 +14,7 @@ ${text}
14
14
  ${extraPromt || ""}
15
15
  `,
16
16
  config: {
17
- systemInstruction: "Translate JSON values exactly, keep keys and structure. The response must be plain text — no Markdown",
17
+ systemInstruction: "Translate according to locale codes (ISO 639/3166). Use language code and region code from locale! Translate JSON values exactly, keep keys and structure. The response must be plain text — no Markdown",
18
18
  temperature: temperature,
19
19
  seed: seed,
20
20
  responseMimeType: "application/json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-localization-ai",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Vite plugin to generate localization jsons using AI",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -24,7 +24,7 @@ ${extraPromt || ""}
24
24
  `,
25
25
  config: {
26
26
  systemInstruction:
27
- "Translate JSON values exactly, keep keys and structure. The response must be plain text — no Markdown",
27
+ "Translate according to locale codes (ISO 639/3166). Use language code and region code from locale! Translate JSON values exactly, keep keys and structure. The response must be plain text — no Markdown",
28
28
  temperature: temperature,
29
29
  seed: seed,
30
30
  responseMimeType: "application/json",