Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(localize): merge XLIFF translation file <file> elements #35936

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

Conversation

petebacondarwin
Copy link
Contributor

@petebacondarwin petebacondarwin commented Mar 8, 2020

Fixes #35839

// FW-1980

@petebacondarwin petebacondarwin added state: blocked action: review The PR is still awaiting reviews from at least one requested reviewer area: i18n Issues related to localization and internationalization target: patch This PR is targeted for the next patch release labels Mar 8, 2020
@ngbot ngbot bot added this to the needsTriage milestone Mar 8, 2020
@pullapprove pullapprove bot requested a review from AndrewKushnir March 8, 2020 14:25
@petebacondarwin petebacondarwin force-pushed the i18n-merge-translation-file-elements branch from 0e64522 to 7dff90c Compare March 8, 2020 14:29
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fixes @petebacondarwin! 👍

Just left a couple minor nits, otherwise looks great.

@AndrewKushnir AndrewKushnir added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 8, 2020
@petebacondarwin petebacondarwin force-pushed the i18n-merge-translation-file-elements branch from b695099 to c6c88bd Compare March 9, 2020 08:57
@petebacondarwin petebacondarwin removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Mar 9, 2020
XLIFF translation files can contain multiple `<file>` elements,
each of which contains translations. In ViewEngine all these
translations are merged into a single translation bundle.

Previously in Ivy only the translations from the last `<file>`
element were being loaded. Now all the translations from each
`<file>` are merged into a single translation bundle.

Fixes angular#35839
@petebacondarwin petebacondarwin force-pushed the i18n-merge-translation-file-elements branch from c6c88bd to cd169fb Compare March 9, 2020 16:15
@petebacondarwin petebacondarwin added action: merge The PR is ready for merge by the caretaker and removed state: blocked labels Mar 9, 2020
@matsko matsko closed this in fc4c3c3 Mar 9, 2020
matsko pushed a commit that referenced this pull request Mar 9, 2020
…5936)

XLIFF translation files can contain multiple `<file>` elements,
each of which contains translations. In ViewEngine all these
translations are merged into a single translation bundle.

Previously in Ivy only the translations from the last `<file>`
element were being loaded. Now all the translations from each
`<file>` are merged into a single translation bundle.

Fixes #35839

PR Close #35936
@petebacondarwin petebacondarwin deleted the i18n-merge-translation-file-elements branch March 9, 2020 17:17
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: i18n Issues related to localization and internationalization cla: yes target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Xliff1TranslationParser does not handle multiple <file> elements
3 participants