Skip to content

Option for custom id transforms.#186

Open
sullivanpt wants to merge 1 commit intorubenv:masterfrom
sullivanpt:msg-id-transform
Open

Option for custom id transforms.#186
sullivanpt wants to merge 1 commit intorubenv:masterfrom
sullivanpt:msg-id-transform

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