Skip to content

Update Plurals translation docs for ICU MessageFormat#155

Open
bdraco wants to merge 1 commit into
mainfrom
docs-plurals-icu-messageformat
Open

Update Plurals translation docs for ICU MessageFormat#155
bdraco wants to merge 1 commit into
mainfrom
docs-plurals-icu-messageformat

Conversation

@bdraco

@bdraco bdraco commented Jun 14, 2026

Copy link
Copy Markdown
Member

The Device Builder frontend moved pluralization to ICU MessageFormat in esphome/device-builder-frontend#750, so the old _singular/_plural key convention no longer applies. This updates the Plurals section of the translation guide to describe the single-key ICU MessageFormat syntax, and links the Lokalise ICU guide for reference.

Fixes #156

The frontend migrated pluralization to ICU MessageFormat in
esphome/device-builder-frontend#750, so the _singular/_plural
key convention no longer applies. Update the Plurals section to
describe the single-key ICU MessageFormat syntax.

Fixes esphome/device-builder#1448
@netlify

netlify Bot commented Jun 14, 2026

Copy link
Copy Markdown

Deploy Preview for esphome-dev-docs ready!

Name Link
🔨 Latest commit e3d1b73
🔍 Latest deploy log https://app.netlify.com/projects/esphome-dev-docs/deploys/6a2ecf10edcae8000812642f
😎 Deploy Preview https://deploy-preview-155--esphome-dev-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@esphbot

esphbot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

PR Review — Update Plurals translation docs for ICU MessageFormat

Accurate, well-written docs update. Merge-ready.

  • ICU MessageFormat syntax is correct: {count, plural, one {...} other {...}} with # as the number substitution is valid Lokalise/ICU plural form.
  • Clearly explains the conceptual shift from paired _singular/_plural keys to a single-key wrapper, and the closing note that the old suffixes are no longer used prevents confusion for returning translators.
  • The plural-category explanation (English one/other vs Polish one/few/many/other) is correct and gives translators a concrete mental model for why their language may show more input boxes.
  • Diff matches the PR description exactly — scoped to the Plurals section, links the Lokalise ICU guide, no scope creep.


Checklist

  • Diff matches PR description (scoped to Plurals section, ICU guide linked)
  • ICU MessageFormat syntax is technically correct
  • No broken/inaccurate links
  • Consistent with existing placeholder rules in the doc

Automated review by Kōan (Claude) HEAD=e3d1b73 23s

@esphbot esphbot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No blocking issues found.

@bdraco bdraco marked this pull request as ready for review June 14, 2026 16:01
Copilot AI review requested due to automatic review settings June 14, 2026 16:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the translation contributor documentation to reflect the Device Builder frontend’s switch from _singular/_plural translation keys to single-key ICU MessageFormat pluralization.

Changes:

  • Replaces the old “paired keys” pluralization guidance with ICU MessageFormat syntax and an example.
  • Adds brief guidance on plural categories (e.g., one, few, many, other) and how Lokalise presents them.
  • Notes that the _singular / _plural suffix convention is no longer used and links the Lokalise ICU guide.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] "Plurals" section documentation update

3 participants