Skip to content
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

feat(compiler): do not parse xtb messages not needed by angular #14111

Closed
wants to merge 1 commit into from

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Jan 26, 2017

fixes #14046

@vicb vicb added area: i18n action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 26, 2017
@vicb vicb changed the title feat(compiler): do not parse xtb messages not needed ny angular feat(compiler): do not parse xtb messages not needed by angular Jan 26, 2017
@@ -49,6 +51,22 @@ export class Xtb extends Serializer {
}
}

function createLazyProperty(messages: any, id: string, nodes: ml.Node[], converter: XmlToI18n) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just pass a closure, and make this function generic.

const XTB = `<?xml version="1.0" encoding="UTF-8" ?>
<translationbundle>
<translation id="angular">is great</translation>
<translation id="non angular">is <b>less</b> great</translation>
Copy link
Contributor

Choose a reason for hiding this comment

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

<invalid-tag>...

@tbosch tbosch added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews pr_state: LGTM and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 26, 2017
@vicb vicb added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Jan 26, 2017
@mhevery
Copy link
Contributor

mhevery commented Jan 27, 2017

LGTM

Approved with PullApprove

@mhevery mhevery closed this in f7fba74 Jan 27, 2017
@vicb vicb deleted the 0125-invxtb branch February 16, 2017 18:57
juleskremer pushed a commit to juleskremer/angular that referenced this pull request Aug 28, 2017
@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 Sep 10, 2019
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 cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ngc translation merging chokes on messages (from other frameworks) that it can't parse
4 participants