Comments (4)
The problem is that react-intl
only provides data files with a language like en
and not with a region like en-GB
. So what we need to do inside the loader is convert the provided locale to a language and use that for react-intl
. This should be fairly easy to do, so if you want to tackle that, go for it and submit a PR.
from react-intl-loader.
Thank you for quick response.
I think i have already tackled that by loading locale like this:
this.loadLocaleData(locale.split("-")[0]).then((messages)=>{
and then afterwards setting the full locale in LocaleProvider.
My problem is that i dont know how to define that these are using the default translations
from react-intl-loader.
Maybe i don't understand what you are trying to achieve and mean with default translation. Could you share a code sample?
from react-intl-loader.
Closing due to inactivity. Feel free to reopen.
from react-intl-loader.
Related Issues (3)
- Locale Normalization HOT 2
- Compatibility with webpack v2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-intl-loader.