Open
Description
Description
There is no way to specify locale in AngularAppEngine#handle
based on Accept-Language
, Cookie
, etc. The current implementation of AngularAppEngine
chooses locale based on URL.
Describe the solution you'd like
Ability to specify an array of locales when calling handle
:
app.use('/**', (req, res, next) => {
angularApp
- .handle(req)
+ .handle(req, undefined, { locales: req.acceptsLanguages() })
.then((response) =>
response ? writeResponseToNodeResponse(response, res) : next(),
)
As far as I understand, this will also require removing the locale prefix from <base href="…"/>
.
Describe alternatives you've considered
No response