-
Notifications
You must be signed in to change notification settings - Fork 26.4k
fix(localize): render ICU placeholders in extracted translation files #38484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(localize): render ICU placeholders in extracted translation files #38484
Conversation
The addiational tests check that ICUs containing interpolations are serialized correctly.
Previously placeholders were only rendered for dynamic interpolation expressons in `$localize` tagged strings. But there are also potentially dynamic values in ICU expressions too, so we need to render these as placeholders when extracting i18n messages into translation files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great work @petebacondarwin 👍
packages/localize/src/tools/src/extract/translation_files/icu_parsing.ts
Outdated
Show resolved
Hide resolved
…#38484) Previously placeholders were only rendered for dynamic interpolation expressons in `$localize` tagged strings. But there are also potentially dynamic values in ICU expressions too, so we need to render these as placeholders when extracting i18n messages into translation files. PR Close #38484
The addiational tests check that ICUs containing interpolations are serialized correctly. PR Close angular#38484
…angular#38484) Previously placeholders were only rendered for dynamic interpolation expressons in `$localize` tagged strings. But there are also potentially dynamic values in ICU expressions too, so we need to render these as placeholders when extracting i18n messages into translation files. PR Close angular#38484
…on files (angular#38484)" This reverts commit 5bb5494.
…lar#38484)" This reverts commit b24bc24.
The addiational tests check that ICUs containing interpolations are serialized correctly. PR Close angular#38484
…angular#38484) Previously placeholders were only rendered for dynamic interpolation expressons in `$localize` tagged strings. But there are also potentially dynamic values in ICU expressions too, so we need to render these as placeholders when extracting i18n messages into translation files. PR Close angular#38484
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Previously placeholders were only rendered for dynamic interpolation
expressons in
$localize
tagged strings. But there are also potentiallydynamic values in ICU expressions too, so we need to render these as
placeholders when extracting i18n messages into translation files.
Fixes #38437