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

JavaScript calls are not properly added to messages.js if the first argument isn't a variable called "locale" #22

Open
jobara opened this issue Sep 29, 2021 · 0 comments

Comments

@jobara
Copy link

jobara commented Sep 29, 2021

When making calls in JavaScript such as i18n._("en-CA", "To Translate") messages.js is populated with `_("en-CA") instead.

A workaround is to ensure that you have a variable called locale that is passed in as the first argument. e.g.

let locale = "en-CA";
i18n._(locale, "To Translate");
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

No branches or pull requests

1 participant