question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Export list of locales available, and a function to require an Array of locales

See original GitHub issue

Can you please export the list of locales available? This would be a much better approach than having to manually write it out or programmatically use fs.readdirSync to get the full list. It would also be nice to have an option to load all locales (require them all, or a list passed) at once.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
blaze-nitdcommented, Apr 28, 2021

how to require them all?

1reaction
iamkuncommented, Sep 17, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to get the list of available locales in PHP?
The solution based on ResourceBundle::getLocales(''); will get you locales. You then need to map them to language codes. But even after that the...
Read more >
Localization
List of user's locales, returned as an array of objects of type Locale . Guaranteed to contain at least 1 element. These are...
Read more >
The Ultimate Guide to JavaScript Localization
Kick-start your JavaScript localization and use different i18n JavaScript code examples to make your app ready for international users.
Read more >
grunt-locales
Update, build, import and export locales using grunt. ... files as well as localize method calls in JS files and collects the parsed...
Read more >
Localizing Your Next.js App
locales. A list of all locales supported by your app. It is an array of strings . defaultLocale. The locale of your main...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found