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

Option for custom id transforms. #186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sullivanpt
Copy link
Contributor

A custom id mapping can be provided. Examples:
// do not trim the whitespace from the string ends (the current default)
catalog.setIdTransform(fn(s) { return s; })
// apply html whitespace trimming rules
catalog.setIdTransform(fn(s) { return s.replace(/\s+/g,' '); })

I am also submitting a matching pull request for rubenv/angular-gettext-tools
References rubenv/grunt-angular-gettext#1, #183

A custom id mapping can be provided. Examples:
// do not trim the whitespace from the string ends (the current default)
catalog.setIdTransform(fn(s) { return s; })
// apply html whitespace trimming rules
catalog.setIdTransform(fn(s) { return s.replace(/\s+/g,' '); })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant