bchinfo / bch.info

Bitcoin Cash informational website
https://bch.info
MIT License
35 stars 43 forks source link

Reconfigure netlify locale redirects #205

Closed 2qx closed 9 months ago

2qx commented 9 months ago

This PR creates a symbolic copy of the default locale (en), denoted by paths prefixed with an underscore "/_/*".

Whether the user is entering the root of the site, /, or a deeper page (i.e. chips/, wallets/). The user is redirected to the default locale (english), denoted with an underscore: (chips/ => /_/chips, wallets/ => /_/wallets)

If a translation is available for the user's language, the user is then redirected further to a copy of the page in their language.


The configuration may be tested locally with the command:

netlify dev -c 'yarn start' --target-port 3000 if netlify-cli is installed.

netlify[bot] commented 9 months ago

Deploy Preview for bch ready!

Name Link
Latest commit 51bdc5768ae51f31bb07ec2146bdeddad8348ea6
Latest deploy log https://app.netlify.com/sites/bch/deploys/65b3ce8532257b000831b4e3
Deploy Preview https://deploy-preview-205--bch.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.