[bisq-network/bisq-website] Redirect user to localized pages based on Accept-Language header (#214)

wiz notifications at github.com
Sat Aug 24 18:49:21 UTC 2019


Needs testing on netlify before merging to production site. Example test cases:

1) `curl -i -H 'Accept-Language: en' https://bisq.network|head -1` should 200 and serve / as normal
2) `curl -i -H 'Accept-Language: es' https://bisq.network/|head -15` should 302 with Location: /es/
3) `curl -i -H 'Accept-Language: es' https://bisq.network/dao/|head -15` should 302 with Location: /es/dao/
You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq-website/pull/214

-- Commit Summary --

  * Redirect user to localized pages based on Accept-Language header

-- File Changes --

    A _data/languages.yml (24)
    M _redirects (117)

-- Patch Links --

https://github.com/bisq-network/bisq-website/pull/214.patch
https://github.com/bisq-network/bisq-website/pull/214.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq-website/pull/214
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190824/42f1ce71/attachment.html>


More information about the bisq-github mailing list