Skip to content

Add ICU MessageFormat language support for +intl-icu translations - #2919

Merged
Haehnchen merged 1 commit into
Haehnchen:masterfrom
Kocal:feat/translation-icu-language
Nov 15, 2026
Merged

Haehnchen merged 1 commit into
Haehnchen:masterfrom
Kocal:feat/translation-icu-language

Conversation

@Kocal

@Kocal Kocal commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Messages in +intl-icu translation files (YAML values, values of the array returned by a PHP file, XLIFF <source> and <target>) are now parsed as ICU MessageFormat. Braces, argument names, types, styles, selectors and # get their own colors, configurable under "Symfony ICU Message" in the color scheme settings.

Typing after {name, completes the argument types, after plural, or select, the selectors, and after number, or date, the styles, and braces are matched.

Syntax errors that make PHP's intl reject the message are reported in red: an unclosed {, an invalid argument name, a missing comma or option, an unknown type, a plural or select without other.

Capture d’écran 2026-11-13 à 18 00 09 Capture d’écran 2026-11-13 à 18 00 13

Messages in `+intl-icu` translation files (YAML values, values of the array returned by a PHP file, XLIFF `<source>` and `<target>`) are now parsed as ICU MessageFormat. Braces, argument names, types, styles, selectors and `#` get their own colors, configurable under "Symfony ICU Message" in the color scheme settings.

Typing after `{name, ` completes the argument types, after `plural, ` or `select, ` the selectors, and after `number, ` or `date, ` the styles, and braces are matched.

Syntax errors that make PHP's intl reject the message are reported in red: an unclosed `{`, an invalid argument name, a missing comma or option, an unknown type, a `plural` or `select` without `other`.
@Haehnchen

Copy link
Copy Markdown
Owner

👍

@Haehnchen
Haehnchen merged commit 5465355 into Haehnchen:master Nov 15, 2026
1 check passed
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.

2 participants