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

transchoice twig filter incorrectly determines domain #662

Closed
artursvonda opened this issue Dec 31, 2015 · 4 comments
Closed

transchoice twig filter incorrectly determines domain #662

artursvonda opened this issue Dec 31, 2015 · 4 comments
Labels

Comments

@artursvonda
Copy link

Looks like transchoice filter thinks the domain is always messages.

@Haehnchen
Copy link
Owner

@artursvonda basically its working, can you provide an example of your usage?

@artursvonda
Copy link
Author

{{ 'key' | transchoice(count, {'%var%': value}, 'domain') }} <- warning about missing translation
{{ 'key' | trans({'%var%': value}, 'domain') }} <- Fine

@Haehnchen
Copy link
Owner

fixed. idea for better regex are welcome :)

@artursvonda
Copy link
Author

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants