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.

Any plans to add support for i18n?

I’ve had previous success with i18n webpack plugin - perhaps this could be integrated into the webpack configuration?

Given that it increases build time significantly (as it makes use of webpack’s multi-compiler feature i.e. module.exports = [configA, configB]; instead of module.exports = config;), it would most likely have to be an opt in feature. We could look for an i18n/ directory that users could drop a bunch of json files into the like so:

src/
i18n/
├─ en-gb.json
├─ de-de.json
├─ ...

The idea that CRA would produce an output bundle per locale in conjunction with i18n webpack plugin.

Thoughts? Happy to attempt a PR if you have no objections.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:54
  • Comments:22 (3 by maintainers)

github_iconTop GitHub Comments

27reactions
tomjalcommented, Nov 27, 2016

Same here, looking for a the cleanest way to add i18n support into Create React App app without ejecting, maybe there should be some kind of localization section in README?

13reactions
gaearoncommented, May 9, 2017

I agree this is something we’ll need to address.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is i18n? | Introduction to Internationalization - Lingoport
i18n is the process of preparing software so that it can support local languages, cultural settings, & meet the requirements of local markets....
Read more >
i18next documentation: Introduction
i18next goes beyond just providing the standard i18n features such as (plurals, context, interpolation, format). ... ​Learn more about supported frameworks​.
Read more >
i18n - MDN Web Docs - Mozilla
i18n. Functions to internationalize your extension. You can use these APIs to get localized strings from locale files packaged with your extension, ...
Read more >
i18n support · V8
Prerequisites #. The i18n implementation adds a dependency on ICU. As of v7.2, V8 requires at least ICU version 63. The exact dependency...
Read more >
What Is I18n? A Simple Definition of Internationalization | Phrase
Enabling code to support local, regional, language, or culturally related preferences. Typically, this involves incorporating predefined ...
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