-
Notifications
You must be signed in to change notification settings - Fork 0
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
[NFT Page] - I18N & Language Switching #23
Conversation
80adccb
to
7df5533
Compare
|
||
<Footer /> | ||
</ClientContext.Provider> | ||
<ClientContext.Provider value={client}>{children}</ClientContext.Provider> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems the plugin gatsby-theme-i18n
has a bug, and here I have to move elements from layout into the page, this solution might be ok we don't have too many pages, just copy the Header and Footer to every page
Components in wrapPageElement cannot access the current locale #138
gatsbyjs/themes#138 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 🧑🏼🎨
1. https://nft-develop.matters.news/ (zh-han traditional is working) 2. https://nft-develop.matters.news/en/ (english is working) 3. https://nft-develop.matters.news/zh-hans/ (not working if directly access) [NFT Page] - I18N & Language Switching #23 [NFT Page] - I18N & Language Switching 5pt feature request #9
1. https://nft-develop.matters.news/ (zh-han traditional is working) 2. https://nft-develop.matters.news/en/ (english is working) 3. https://nft-develop.matters.news/zh-hans/ (not working if directly access) [NFT Page] - I18N & Language Switching #23 [NFT Page] - I18N & Language Switching 5pt feature request #9
1. https://nft-develop.matters.news/ (zh-han traditional is working) 2. https://nft-develop.matters.news/en/ (english is working) 3. https://nft-develop.matters.news/zh-hans/ (not working if directly access) - [NFT Page] - I18N & Language Switching #23 - [NFT Page] - I18N & Language Switching 5pt feature request #9
1. https://nft-develop.matters.news/ (zh-han traditional is working) 2. https://nft-develop.matters.news/en/ (english is working) 3. https://nft-develop.matters.news/zh-hans/ (not working if directly access) - [NFT Page] - I18N & Language Switching #23 - [NFT Page] - I18N & Language Switching 5pt feature request #9
1. https://nft-develop.matters.news/ (zh-han traditional is working) 2. https://nft-develop.matters.news/en/ (english is working) 3. https://nft-develop.matters.news/zh-hans/ (not working if directly access) - [NFT Page] - I18N & Language Switching #23 - [NFT Page] - I18N & Language Switching 5pt feature request #9
how about a lightweight solution like this to keep all translation messages in the source code,
when there aren't too many messages, looks more lightweight than any of
react-intl
,react-i18next
, orLingui
.https://www.gatsbyjs.com/blog/2020-07-28-introducing-gatsby-i18n-theme/
resolves #9