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

Make t function call configurable #47

Open
katilius opened this issue Mar 5, 2019 · 0 comments
Open

Make t function call configurable #47

katilius opened this issue Mar 5, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@katilius
Copy link
Collaborator

katilius commented Mar 5, 2019

Tagged Template Literals allows you to call the function by providing just ticks. This could be leveraged, to make syntax a bit less verbose, when dealing with translations:

<span>{t('key')}</span>

becomes

<span>{t`key`}</span>

This is, of course, a matter of preference, so it probably should be configurable.

@sibelius sibelius added the enhancement New feature or request label Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants