-
Notifications
You must be signed in to change notification settings - Fork 52
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
customRegex as object #73
Comments
Hey @Ulrikop My first insight:
So the plan is for April:
If you can @Ulrikop , install |
Ohhh, f*** But i played around a little bit with the customRegex option and now I have a feature wish :-) First: Can the customRegex get the match object (r in the src) as additional parameter? So the custom regex can use more match groups. Scenario: For some of my (ui.router) states I use the same template. All have a title and a description:
I want to use the state declaration for the i18n extraction. Therefore I add an enhanced version of the comment regex, so I can specify a prefix (here state) and optional one or more suffixes.
My customRegex:
For that the _extractTranslation function must be changed in some places.
|
Hi,
I saw at master that I can use an object for customRegex. I was happy, because I searched a way to add prefix to some translation keys:
stateName should save as "navigation.state.statename".
So I added the following to the i18nextract options:
But that doesn't work. So I searched at the src of grunt-angular-translate, what I did wrong. So I found out, that this.data.customRegex is an empty object, when an object is set as customRegex.
I am not familiar with grunt task developing, so I can't find the failure. What do I do wrong?
When is it planed to build a tag with that new feature?
Thank you
edit:
I use windows 10,
node 4.4.0
grunt 0.4.5
The text was updated successfully, but these errors were encountered: