Skip to content

feat: add reorderOption, attributeNameRequired, selectConfigKey and duplicateFieldName - #87

Merged
kevinchappell merged 3 commits into
masterfrom
feat/editor-followup-keys
Sep 28, 2026
Merged

kevinchappell merged 3 commits into
masterfrom
feat/editor-followup-keys

Conversation

@kevinchappell

Copy link
Copy Markdown
Contributor

What

Adds four editor strings that Formeo already uses with English fallbacks, translated for every locale with npm run translate:

Key en-US
reorderOption Drag to reorder
attributeNameRequired Enter an attribute name
selectConfigKey Select Configuration Key
duplicateFieldName Another field is also named "{name}", so their answers will share one key.

duplicateFieldName is used by the new duplicate-name hint in Formeo (Draggable/formeo, branch fix/editor-attr-guards).

Also:

  • Removes the stray spaces machine translation put inside quotes around {placeholders}, e.g. " {attribute} ", in the new keys and in attributeNotPermitted, controls.filteringTerm, pages.remove and pages.removeConfirm. fr-FR guillemets keep their spaces.
  • Corrects the it-IT, tr-TR and es/pt wording of the new keys.

Follow-up worth considering: tools/placeholders.js restorePlaceholders only trims inside the translate="no" span, so future runs can reintroduce quote-adjacent spaces.

Testing

npm test: 38/38. npm run lint can't run here, because biome isn't installed as a devDependency. That problem predates this branch.

Copilot AI lite review requested due to automatic review settings September 28, 2026 11:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review comments remain, and the supplied assessments find the changes ready for approval.

Review effort: Lite
Findings: None

What changed in this PR

Adds four editor translations across supported locales and normalizes placeholder spacing.

Changes:

  • Adds attributeNameRequired, duplicateFieldName, reorderOption, and selectConfigKey.
  • Corrects selected translations and placeholder formatting.
  • Updates generated locale JSON files.
File Summary
src/​lang/​zh-HK.lang Locale translations
src/​lang/​zh-HK.json Generated locale mirror
src/​lang/​zh-CN.lang Locale translations
src/​lang/​zh-CN.json Generated locale mirror
src/​lang/​tr-TR.lang Locale translations
src/​lang/​tr-TR.json Generated locale mirror
src/​lang/​th-TH.lang Locale translations
src/​lang/​ru-RU.lang Locale translations
src/​lang/​ru-RU.json Generated locale mirror
src/​lang/​ro-RO.lang Locale translations
src/​lang/​ro-RO.json Generated locale mirror
src/​lang/​pt-PT.lang Locale translations
src/​lang/​pt-PT.json Generated locale mirror
src/​lang/​pt-BR.lang Locale translations
src/​lang/​pt-BR.json Generated locale mirror
src/​lang/​pl-PL.lang Locale translations
src/​lang/​pl-PL.json Generated locale mirror
src/​lang/​nb-NO.lang Locale translations
src/​lang/​nb-NO.json Generated locale mirror
src/​lang/​ja-JP.lang Locale translations
src/​lang/​ja-JP.json Generated locale mirror
src/​lang/​it-IT.lang Locale translations
src/​lang/​it-IT.json Generated locale mirror
src/​lang/​hu-HU.lang Locale translations
src/​lang/​hi-IN.lang Locale translations
src/​lang/​he-IL.lang Locale translations
src/​lang/​fr-FR.lang Locale translations
src/​lang/​fr-FR.json Generated locale mirror
src/​lang/​fi-FI.lang Locale translations
src/​lang/​fi-FI.json Generated locale mirror
src/​lang/​fa-IR.lang Locale translations
src/​lang/​fa-IR.json Generated locale mirror
src/​lang/​es-ES.lang Locale translations
src/​lang/​es-ES.json Generated locale mirror
src/​lang/​en-US.lang Locale translations
src/​lang/​en-US.json Generated locale mirror
src/​lang/​de-DE.lang Locale translations
src/​lang/​de-DE.json Generated locale mirror
src/​lang/​cs-CZ.lang Locale translations
src/​lang/​ar-TN.lang Locale translations
src/​lang/​ar-TN.json Generated locale mirror
src/​lang/​af-ZA.lang Locale translations
src/​lang/​af-ZA.json Generated locale mirror

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@kevinchappell
kevinchappell merged commit 2d1414b into master Sep 28, 2026
4 checks passed
@kevinchappell

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 3.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@kevinchappell
kevinchappell deleted the feat/editor-followup-keys branch September 28, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants