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
i18n: support xmb formatted translation files in compile time inlining #33444
Conversation
e9aea91
to
8370c14
Compare
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, thanks for additional refactoring as well 👍
Pete, I'm wondering if we can add an e2e test that would:
- generate XMB file based on an app (using
ng xi18n
CLI or APIs) - update XMB file (simulating translation changes)
- run i18n inlining process (that would also involve XMB parsing)
- verify that the page contains what we expect
That might be helpful to make sure that extraction and inlining (consuming part) are in sync.
Thank you.
@petebacondarwin this PR seems to have merge conflicts now, since the base PR is now merged. Could you plz rebase and resolve conflicts? Thank you. |
…rsers` Each of the XML based `TranslationParsers` was providing its own `MessageSerializer`, but they are all very similar. So these have been consolidated into a single more generic `MessageSerializer. As a result of this, the extra layers of folders in the project seemed unnecessary, so they have been flattened.
This commit implements the `XtbTranslationParser`, which can read XTB formatted files.
8370c14
to
669ab79
Compare
@AndrewKushnir - there is a test here that does exactly what you suggest - except that it uses the XLIFF 1.2 format rather than XMB. See https://github.com/angular/angular/blob/master/integration/cli-hello-world-ivy-i18n/package.json#L23 Was your suggestion that we should duplicate this test for XMB? |
@petebacondarwin yeah, I was wondering if we can extend existing test to cover other formats as well. |
This integration test now does a full e2e test of: * extraction -> build -> translation - serve for both XLIFF 1.2 and XMB formats. Resolves angular#33444 (comment)
This integration test now does a full e2e test of: * extraction -> build -> translation - serve for both XLIFF 1.2 and XMB formats. Resolves #33444 (comment) PR Close #33462
This integration test now does a full e2e test of: * extraction -> build -> translation - serve for both XLIFF 1.2 and XMB formats. Resolves angular#33444 (comment) PR Close angular#33462
…rsers` (angular#33444) Each of the XML based `TranslationParsers` was providing its own `MessageSerializer`, but they are all very similar. So these have been consolidated into a single more generic `MessageSerializer. As a result of this, the extra layers of folders in the project seemed unnecessary, so they have been flattened. PR Close angular#33444
…angular#33444) This commit implements the `XtbTranslationParser`, which can read XTB formatted files. PR Close angular#33444
This integration test now does a full e2e test of: * extraction -> build -> translation - serve for both XLIFF 1.2 and XMB formats. Resolves angular#33444 (comment) PR Close angular#33462
…rsers` (angular#33444) Each of the XML based `TranslationParsers` was providing its own `MessageSerializer`, but they are all very similar. So these have been consolidated into a single more generic `MessageSerializer. As a result of this, the extra layers of folders in the project seemed unnecessary, so they have been flattened. PR Close angular#33444
…angular#33444) This commit implements the `XtbTranslationParser`, which can read XTB formatted files. PR Close angular#33444
This integration test now does a full e2e test of: * extraction -> build -> translation - serve for both XLIFF 1.2 and XMB formats. Resolves angular#33444 (comment) PR Close angular#33462
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. |
No description provided.