feat: add Python brace localization format#207
Conversation
Add the PO_PYTHON_BRACE format (Python str.format() / gettext python-brace-format) to push and pull, mirroring the existing PO_PYTHON. It maps to platform export messageFormat PYTHON_BRACE and import format PO_PYTHON_BRACE. Regenerate the OpenAPI schema against tolgee-platform main, which adds the new format values and syncs unrelated drift.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
WalkthroughAdds ChangesPO_PYTHON_BRACE Format Support
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Related issue tolgee/tolgee-platform#3589
Summary
PO_PYTHON_BRACElocalization format (Pythonstr.format()/ gettextpython-brace-format) topushandpull, mirroring the existingPO_PYTHON. It maps to the platform exportmessageFormat: PYTHON_BRACEand import formatPO_PYTHON_BRACE(added to tolgee-platform in #3589).schema.json,src/options.tsandsrc/utils/mapExportFormat.tsupdated;src/utils/mapImportFormat.tsneeds no change (its default passthrough already forwards the matchingPO_PYTHON_BRACEimport format).{count:d}(file) ⇄{count, number}(stored ICU), which exercises the actual converter rather than a placeholder that looks identical in ICU.src/client/internal/schema.generated.ts,src/schema.d.ts) against tolgee-platformmain; this addsPYTHON_BRACE/PO_PYTHON_BRACEand syncs unrelated schema drift accumulated since the last regeneration.Summary by CodeRabbit
New Features
PO_PYTHON_BRACElocalization format, enabling translation workflows with Python-style brace placeholders for plural handling (e.g.,{count:d}syntax).Tests