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

DomainRequestCultureProvider #43

Closed
hishamco opened this issue Jun 26, 2015 · 7 comments
Closed

DomainRequestCultureProvider #43

hishamco opened this issue Jun 26, 2015 · 7 comments
Milestone

Comments

@hishamco
Copy link
Contributor

It's quite often to detect the localization culture based on domain or sub domain, this provider may support various formats such as:

en.domain.com
domain.com.en
domain.com.au
domain.com/en-au/default.aspx

@hishamco
Copy link
Contributor Author

@kirthik can I start to make a PR to support DomainRequestCultureProvider?

@miloush
Copy link

miloush commented Nov 2, 2015

Even most of the Microsoft's web sites use path segment for localization and I would expect it to be one of the built-in providers. It is also easier to provide links to specific localizations in that case.

On the other side I don't think the host names - especially the TLD - are good idea, as you would basically need a lookup table for most of them (.at) and there are tricky cases too (.in) ...

@hishamco
Copy link
Contributor Author

hishamco commented Nov 2, 2015

@miloush the basic idea that I mentioned before is all about segements 😄 , regarding the .it, .in .. etc they are parent cultures so no need to lookup table

@miloush
Copy link

miloush commented Nov 2, 2015

@hishamco No these are not parent cultures. .it is, but you have en-IN, ta-IN, sa-IN where parent cultures are en, ta resp. sa. The same with China (parent is zh) and Arabic cultures (parent is ar) and pretty much all others where the culture neutral name differs from the culture specifier (.at .nz .cz ...). And don't forget there are cultures that differ by script (like sr-Cyrl-RS vs sr-Latn-RS).

@hishamco
Copy link
Contributor Author

hishamco commented Nov 2, 2015

anyway it's in a Backlog, and may it need a good design
thanks @miloush

@Eilon
Copy link
Contributor

Eilon commented Jan 3, 2017

Closing because we have no plans to ship this.

@Eilon Eilon closed this as completed Jan 3, 2017
@hishamco
Copy link
Contributor Author

hishamco commented Jan 4, 2017

This could be done easily now after shipping RouteDataRequestCultureProvider as well as middleware as filter 😄

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

4 participants