Skip to content

Commit 801e41a

Browse files
committed
Bump version to 1.2.0 & update changelog
1 parent 616ee39 commit 801e41a

4 files changed

Lines changed: 22 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
# Changelog
22

3-
4-
## Develop
3+
## 1.2.0 — 2026-04-06
54

65
### Fixed
76

87
* Output directory was not being created when saving .po files if it didn't exist.
98

9+
### Added
10+
11+
* Post-translation validation that catches placeholder mismatches, non-breaking space issues, and plural form errors - blanking bad translations for automatic retry.
12+
* New `--extra-prompt-path` CLI flag to append domain-specific prompt content without replacing the base prompt.
13+
* Language-specific plural form guidance in the default prompt (Arabic 6-form, Russian 3-form, French 2-form, Japanese 1-form).
14+
* XML source elements now include a `placeholders` attribute listing expected placeholders for LLM verification.
15+
16+
### Changed
17+
18+
* Update OpenAI models and pricing to April 2026.
19+
* Default model changed from `gpt-4o-mini` to `gpt-4.1-mini`.
20+
* Hardened default prompt with explicit negative examples for placeholder preservation.
21+
* Blanked translation details now logged at warn level instead of debug.
22+
1023
## 1.1.0 — 2025-11-12
1124

1225
### Fixed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "potomatic",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "AI-powered translation utility for translating .po(t) files into multiple languages",
55
"author": "GravityKit",
66
"keywords": [

src/utils/xmlTranslation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ export function parseXmlResponse(xmlResponse, batch, pluralCount, logger, dictio
424424
/**
425425
* Extracts sorted printf-style placeholders from a string.
426426
*
427-
* @since 1.1.0
427+
* @since 1.2.0
428428
*
429429
* @param {string} text - Text to extract from.
430430
*
@@ -472,7 +472,7 @@ function decodeXmlEntities(text) {
472472
* Only normalizes leading/trailing whitespace — interior nbsp is preserved
473473
* as it may be intentional (e.g., French punctuation spacing).
474474
*
475-
* @since 1.1.0
475+
* @since 1.2.0
476476
*
477477
* @param {string} translation - Translated text.
478478
* @param {string} source - Source text to match whitespace against.

0 commit comments

Comments
 (0)