Skip to content

Ignore \n (After minificatio text is not translated) #183

@azachar

Description

@azachar

Hello,
when I use project from https://github.com/DaftMonk/generator-angular-fullstack, I find difficulties to match text based on Jade that is compilted into js.

In jade i have this text:

 p.text-justify(translate) Also we are looking for a
                     |   
                     strong volunteer - a native English speaker
                     |  who could help us to review the portal's user interface messages and texts.

Without minification this code is generated into HTML like

Also we are looking for a \n  <strong>volunteer - a native English speaker</strong> who could help us to review the portal's user interface messages and texts.

After minification the text is compiled into a production js like

Also we are looking for a <strong>volunteer - a native English speaker</strong> who could help us to review the portal\'s user interface messages and texts.

So the portal works in dev mode, when it is not minified but a minute I do a deploy procedure where compilation and minification is involved, the /n is removed and thus key is different and not matched.

Is there a possible solution for this?

Thanks a lot for a great job,
Andrej

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions