Comments (1)
solved the issue
For anyone who stumbles upon this problem.
If the map
parameter is to be used, map
must also be specified in the priority array.
createLocaleMiddleware({ priority: ["accept-language", "map", "default"], map: { de: "de-DE", en: "en-GB", }, })
from express-locale.
Related Issues (16)
- Parse short codes HOT 2
- Add support for debug HOT 2
- Add option to limit accepted locales HOT 2
- It becomes default value when receiving accept-language without Locale HOT 5
- Setting allowed breaks to undefined HOT 2
- add config sanity checks HOT 1
- Date.toLocaleString (native) - RangeError: Invalid language tag: en_US HOT 3
- Invalid locale hard coded 'en_UK'; HOT 1
- Unclear interaction between `map` and `allowed` HOT 3
- Always defaults HOT 3
- figure out missing region information HOT 5
- 1.0.0 roadmap HOT 2
- Query lookup doesnβt appear to be bundled HOT 10
- allow for setting language not based on region HOT 3
- Error: Cannot find module 'babel-polyfill' HOT 5
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 express-locale.