gatsby-starter-i18n | Gatsby starter with i18n and some cool features | Search Engine Optimization library
kandi X-RAY | gatsby-starter-i18n Summary
kandi X-RAY | gatsby-starter-i18n Summary
Gatsby starter with i18n and some cool features
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gatsby-starter-i18n
gatsby-starter-i18n Key Features
gatsby-starter-i18n Examples and Code Snippets
Community Discussions
Trending Discussions on gatsby-starter-i18n
QUESTION
I am still learning JavaScript, React and GatsbyJS.
I have difficult to readjust the list (dropdown (ul > li > input label > ul > li
), replicating the original codes of @Smakosh's gatsby-starter-i18n/src/components/theme/Header/SelectLanguage.jsx
which is options selection (select > option
) because of value={lang} onChange={e => selectLanguage(e.target.value)}
that the list does not have. I wanted to use data-aria
, but I do not use Bootstrap and jQuery.
The original codes of
...gatsby-starter-i18n/src/components/theme/Header/SelectLanguage.jsx
:
ANSWER
Answered 2020-Aug-16 at 16:23I never worked with Gatsby or recompose before, so I doubt if I can be of much help, but I'll give it a go and let you know what I think might be the problem anyway:
From what I see, the value of the languages input is being sent whenever it is clicked, but I can't see that value updated with the language selected, whenever the list items are clicked, so this is how I would approach it
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gatsby-starter-i18n
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page