Skip to content

Conversation

@SkyeYoung
Copy link
Member

@SkyeYoung SkyeYoung commented Mar 24, 2022

Fixes: #743
Changes:

pls check #743 (comment)

I didn't add a re-enable button, because after thinking, I find the step of detecting the language automatically should only happen when I first entered the website.

Screenshots of the change:

none, pls check preview.

Logic of Language Redirect:
Untitled-2022-02-18-2055

@netlify
Copy link

netlify bot commented Mar 24, 2022

Deploy Preview for apache-apisix ready!

Name Link
🔨 Latest commit 990ee2d
🔍 Latest deploy log https://app.netlify.com/sites/apache-apisix/deploys/62417bd115dd2f0008ca7867
😎 Deploy Preview https://deploy-preview-970--apache-apisix.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 settings.

@SkyeYoung SkyeYoung requested a review from bzp2010 March 24, 2022 10:08
Copy link
Member

@juzhiyuan juzhiyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @SkyeYoung. This PR has lots of style changes. 😅 How about this?

  1. You could set up the prettier configuration and format all codes in one PR.
  2. Submit this lang detection PR without extra codes style changes.

@SkyeYoung
Copy link
Member Author

Hi, @SkyeYoung. This PR has lots of style changes. 😅 How about this?

  1. You could set up the prettier configuration and format all codes in one PR.
  2. Submit this lang detection PR without extra codes style changes.

Ok, I'll rollback it. I'm adding lint tools. :D

@SkyeYoung SkyeYoung requested a review from juzhiyuan March 25, 2022 03:23
@bzp2010
Copy link
Contributor

bzp2010 commented Mar 25, 2022

I found a strange problem. My broswer is in Chinese mode. Page will be redirect to the // and show 404 not found.

msedge_2022-03-25_16-24-45

@SkyeYoung
Copy link
Member Author

SkyeYoung commented Mar 25, 2022

I found a strange problem. My broswer is in Chinese mode. Page will be redirect to the // and show 404 not found.

I have tried to solve this problem. Pls have a look.

bzp2010
bzp2010 previously approved these changes Mar 28, 2022
Copy link
Member

@juzhiyuan juzhiyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bzp2010 bzp2010 merged commit ee75f02 into apache:master Mar 28, 2022
@SkyeYoung SkyeYoung deleted the fix-issue-743 branch March 28, 2022 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support language detection

3 participants