8000 Add multi language option · Issue #10 · joeplaa-com/joeplaa-homepage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add multi language option #10

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

Open
3 tasks
joeplaa opened this issue Sep 10, 2020 · 2 comments
Open
3 tasks

Add multi language option #10

joeplaa opened this issue Sep 10, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@joeplaa
Copy link
Member
joeplaa commented Sep 10, 2020

The site is currently in English. I want to have most parts in Dutch too. Blog posts can stay in English only.

  • Add i18n library
  • Add translations
  • Add language selection (automated and manual)
@joeplaa joeplaa self-assigned this Sep 10, 2020
@joeplaa joeplaa added the enhancement New feature or request label Sep 10, 2020
@joeplaa
Copy link
Member Author
joeplaa commented Jul 4, 2021

@joeplaa
Copy link
Member Author
joeplaa commented Oct 27, 2022

Which library

https://stackoverflow.com/questions/43460158

Why LinguiJS over React-intl

https://lingui.js.org/tutorials/react.html
https://lingui.js.org/misc/react-intl.html

LinguiJS in Gatsby

https://www.gatsbyjs.com/plugins/gatsby-theme-i18n-lingui/?=i18n
https://github.com/lingui/js-lingui

I tried implementing LinguiJS, but the extract script failed because it couldn't parse typescript. Adding typescript support yielded a babel-preset error (not allowed to export functions or something like that). Than tried to implement i18next, but couldn't get past the importing mdx stage. Gatsby complained about non-existing allMdx. Rewriting it to allFile as used in all the examples yielded the same error, but this time with keys inside allFile. I gave up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant
0