Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic support for optional region-codes #13

Open
twiro opened this issue Mar 5, 2017 · 0 comments
Open

Add basic support for optional region-codes #13

twiro opened this issue Mar 5, 2017 · 0 comments

Comments

@twiro
Copy link
Owner

twiro commented Mar 5, 2017

While I don't want to change the way this extension manages and uses languages in the backend (2-character ISO 639-1-codes) I'm planning to add some basic support for optional region-codes in the frontend. All methods explained in the language detection stack (except the fallback language) should be able to include an optional region-code that's accepted, understood and processed by the extension - meaning the extension will extract the 2-character language-code, use that like before and simply add the optional region-code to the parameter pool for individual usage in the templates.

An example of different url-structures that are planned to be supported:

  • domain.com/page/?language=en
  • domain.com/page/?language=en&region=us
  • domain.com/en/page/
  • domain.com/en-us/page/
  • en.domain.com/page/
  • en-us.domain.com/page/
@twiro twiro added this to the 2.0.0 milestone Mar 5, 2017
@twiro twiro self-assigned this Mar 5, 2017
@twiro twiro mentioned this issue Mar 7, 2017
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant