-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Ability to manually specify locale in SSR #29019
Copy link
Copy link
Open
Labels
area: @angular/ssrfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authors
Metadata
Metadata
Assignees
Labels
area: @angular/ssrfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authors
Description
There is no way to specify locale in
AngularAppEngine#handlebased onAccept-Language,Cookie, etc. The current implementation ofAngularAppEnginechooses 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