Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Make the RequestLocalizationMiddleware support derivative cultures #165

Closed
DamianEdwards opened this issue Dec 10, 2015 · 2 comments
Closed
Assignees
Milestone

Comments

@DamianEdwards
Copy link
Member

If an application is configured to support the culture "fr", but not "fr-FR", then a request stating it is "fr-FR" should result in it being assigned the culture "fr", as "fr-FR" is a derivative of "fr".

This applies equally to format culture and UI culture.

This behavior should be on by default, and controlled by a new boolean property, RequestLocalizationOptions.FallbackToAncestorCulture.

@hishamco
Copy link
Contributor

I think this is a duplicate for issue #112

@DamianEdwards
Copy link
Member Author

Yep, it is.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants