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

runWithLocale() on Meteor 3 #193

Open
derwaldgeist opened this issue Feb 5, 2025 · 0 comments
Open

runWithLocale() on Meteor 3 #193

derwaldgeist opened this issue Feb 5, 2025 · 0 comments

Comments

@derwaldgeist
Copy link

derwaldgeist commented Feb 5, 2025

Since I upgraded to Meteor 3 and universe:[email protected], runWithLocale() does not work as expected (it worked fine on Meteor 2 with universe:[email protected]).

It neither picks the right text for the locale nor does it apply any parameters to the text, e.g. {$username}. It just returns the plain string for the default language, including the placeholders for any parameters.

Here's how I call it:

const language = user?.language || 'en-US';
await runWithLocale(language, async () => {
    ...
}
@github-project-automation github-project-automation bot moved this to Needs triage in Open Source Feb 6, 2025
@piotrpospiech piotrpospiech moved this from Needs triage to To do in Open Source Feb 6, 2025
@piotrpospiech piotrpospiech removed the bug label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

No branches or pull requests

2 participants