Skip to content

Commit 279b8aa

Browse files
committed
Bump version to 1.1.0 & update changelog
1 parent 3e20ea5 commit 279b8aa

6 files changed

Lines changed: 32 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
11
# Changelog
22

3-
## [1.0.0] - 2025-06-27
3+
## 1.1.0 — 2025-11-12
4+
5+
### Fixed
6+
7+
* Fix plural-form translations in languages with complex rules (e.g., Arabic, Russian,).
8+
* Treat environment variables such as `FORCE_TRANSLATE=false` correctly instead of interpreting them as `true`.
9+
* Ensure configuration files are detected when running Potomatic from paths containing spaces (such as `~/Local Sites/`) and on Windows systems.
410

511
### Added
612

7-
- 🚀 Initial release!
13+
* Support multiple API key formats (`OPENAI_API_KEY`, `POTOMATIC_OPENAI_API_KEY`, etc.) with automatic provider detection based on the key name.
14+
* Add CLI options `--prompt-file-path` and `--po-header-template-path` to customize the locations of translation prompt and header template files.
15+
16+
### Changed
17+
18+
* Update OpenAI pricing data to reflect current model costs (November 2025).
19+
20+
## 1.0.1 — 2025-06-27
21+
22+
* Version bump for [npm release](https://www.npmjs.com/package/potomatic).
23+
24+
## 1.0.0 — 2025-06-27
25+
26+
* Initial release.

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.0.1",
3+
"version": "1.1.0",
44
"description": "AI-powered translation utility for translating .po(t) files into multiple languages",
55
"author": "GravityKit",
66
"keywords": [

src/config/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function parseEnvironmentConfig() {
144144
* Creates a Zod schema for parsing boolean values from strings (env vars and CLI args).
145145
* Handles common string representations: "true", "false", "1", "0".
146146
*
147-
* @since TBD
147+
* @since 1.1.0
148148
*
149149
* @param {boolean} defaultValue - Default value if not provided or empty.
150150
*
@@ -163,7 +163,7 @@ function booleanStringSchema(defaultValue = false) {
163163
* Auto-detects provider from environment variable keys.
164164
* Checks for POTOMATIC_<PROVIDER>_API_KEY and <PROVIDER>_API_KEY patterns.
165165
*
166-
* @since TBD
166+
* @since 1.1.0
167167
*
168168
* @return {string|null} Detected provider name (lowercase) or null if none detected.
169169
*/

src/orchestrator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ export class TranslationOrchestrator {
799799
*
800800
* @private
801801
*
802-
* @since TBD
802+
* @since 1.1.0
803803
*
804804
* @param {string} language - Language code.
805805
* @param {Object} stats - Language processing statistics.

src/utils/validationStats.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
* Validation statistics utilities.
33
* Centralized validation type definitions and helper functions.
44
*
5-
* @since TBD
5+
* @since 1.1.0
66
*/
77

88
/**
99
* Registry of all validation types with their display names.
1010
*
11-
* @since TBD
11+
* @since 1.1.0
1212
*/
1313
export const VALIDATION_TYPES = {
1414
stringsWithPluralIssues: 'strings with plural issues',
@@ -17,7 +17,7 @@ export const VALIDATION_TYPES = {
1717
/**
1818
* Creates an empty validation statistics object with all validation types initialized to 0.
1919
*
20-
* @since TBD
20+
* @since 1.1.0
2121
*
2222
* @return {Object} Empty validation stats object.
2323
*/
@@ -34,7 +34,7 @@ export function createEmptyValidationStats() {
3434
/**
3535
* Calculates the total number of validation issues.
3636
*
37-
* @since TBD
37+
* @since 1.1.0
3838
*
3939
* @param {Object} validationStats - Validation statistics object.
4040
*
@@ -57,7 +57,7 @@ export function getTotalValidationIssues(validationStats) {
5757
/**
5858
* Formats validation stats as a human-readable breakdown string.
5959
*
60-
* @since TBD
60+
* @since 1.1.0
6161
*
6262
* @param {Object} validationStats - Validation statistics object.
6363
*
@@ -83,7 +83,7 @@ export function formatValidationBreakdown(validationStats) {
8383
/**
8484
* Accumulates validation stats from a source object into a target object.
8585
*
86-
* @since TBD
86+
* @since 1.1.0
8787
*
8888
* @param {Object} target - Target validation stats object to accumulate into.
8989
* @param {Object} source - Source validation stats object to accumulate from.

src/utils/xmlTranslation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function buildDictionaryResponse(dictionaryMatches) {
102102
* Validates plural form translations.
103103
* Ensures correct form count and warns about incomplete translations.
104104
*
105-
* @since TBD
105+
* @since 1.1.0
106106
*
107107
* @param {Array<string>} forms - Array of translated forms.
108108
* @param {string} originalMsgid - Original msgid for logging context.

0 commit comments

Comments
 (0)