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

l10n get() not as a promise #9582

Closed
chitgoks opened this issue Mar 19, 2018 · 2 comments
Closed

l10n get() not as a promise #9582

chitgoks opened this issue Mar 19, 2018 · 2 comments
Labels

Comments

@chitgoks
Copy link

chitgoks commented Mar 19, 2018

is there an option to have this not as a promise?

@chitgoks chitgoks changed the title Adding more translations Change Key of data-l10n-id attribute Dynamically Mar 19, 2018
@chitgoks chitgoks changed the title Change Key of data-l10n-id attribute Dynamically l10n get() not as a promise Mar 19, 2018
@timvandermeij
Copy link
Contributor

No, we don't have such an option. It is recommended that you use the asynchronous version since it was part of larger changes in #8394. It you really need this to be a synchronous process, you should implement that yourself.

@Snuffleupagus
Copy link
Collaborator

It you really need this to be a synchronous process, you should implement that yourself.

I'm not sure if that could even work, since the l10n files are purposely loaded asynchronously; hence the l10n data cannot be assumed to be immediately available.

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

3 participants