-
Notifications
You must be signed in to change notification settings - Fork 76
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
☂ [Umbrella] gatsby-theme-i18n & child-themes #43
Comments
Hi! I am building my portfolio with Gatsby and TypeScript and initially used I have 2 questions. Since I am still pretty new to web development, sorry in advance if it's too obvious or not suited for this thread:
Usually you solve it by tweaking the Thanks in advance and again, great job on this theme.
|
FYI if someone has a similar issue, I sorta made it work by doing |
Hi Guillaume, glad to hear that the theme itself works well for you!
This way the |
This is awesome! Thanks a lot, it worked! :) For the Type definitions, I would be very interested in participating but I am pretty new to TypeScript and have never done that (i usually just install them for Typescript to be happy ah ah 😄 ) so I am not sure exactly how to contribute. |
Hi! Thanks for these themes, they are really great. I have an issue though, or maybe a question, but how does localization work on the 404 page? I built and served my project but after going to a non existing route under a language I still get the english (default locale) text.
Going to http://localhost:9000/es/testing which does not exist, shows "Error 404 - Page not Found", which is the value for the english translation. Is this intended? How should it work? Thank you. |
This would be a Hi @msallent 👋 Until I have time to add that to the theme itself this should unblock you :) (Or feel free to send in a PR yourself which would be much appreciated!) |
Thanks @LekoArts ! Awesome I will give it a try :) |
Hey, is there an option to prefix the default language in the path? I.e. |
Hey! 👋 I'm currently on vacation for two weeks, I'll get back to any questions after that 😊 |
Hi @tmskrtsz, would you mind to post or DM the mentioned code snippet? Very much appreciated. @LekoArts Are you planning to add an option to allow a prefix for the default language? Thank you |
@wirths sure thing, the gist of it is this:
|
@tmskrtsz Thank you! |
Sorry, have just seen this umbrella issue. If the default locale would also be prefixed using navigate from gatsby would be easy: navigate(`/${locale}/page-3`) But because the default is not prefixed: navigate(`/${locale === defaultLang ? `` : `${locale}/`}page-3`) Is there a better way? Can you maybe provide a helper for this? |
Is it possible that a redirect based on the browser locale is not supported? In my tests I was never redirected to the matching route. |
I extended |
Hi! Getting back up to speed again and will look into these things :) |
Once feature that is stuck in PR in |
Ok, so a bit of an update:
Next thing on my list:
This should help with the page creation, |
@wirths @philschonholzer @tmskrtsz Please have a look at #75 and try out the canary release |
Is there a way to translate the whole page url when creating localized pages? |
I noticed that |
I found solution to language switcher on Discord channel about this theme. |
Is it possible to use language detector with this theme or is it not implemented yet? |
Hey, I've come across this problem while implementing gatsby-theme-i18 to a website I've been working on: I use particles.js library in the layout component and the default locale is English. However, when I switch to Turkish, the particles component vanishes. When I switch back to English, I see the particles component again. I cannot make it work for the other language. I even couldn't find a connection between particles.js and gatsby-theme-i18. Any help would be much obliged! Here is the part including the particles component: |
Is this theme still maintained? |
Same case for me, I ended up implementing a hacky fix for my specific use-case (translate slugs both for mdx/blog posts & regular pages...). It would be awesome if a solution for translation of urls could be implemented in this theme at some point, since that other library is not maintained anymore. |
Hi everyone! I'm working on translating a corporate website, and I'm using However, I was wondering if there is a way to have per-component translations. Thanks in advance and congrats on the incredible work on this theme. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hello!
If you want to try out
gatsby-theme-i18n
or its child themes -- this is the place to ask questions, report bugs, suggest ideas, collaborate on improvements, and get notified about updates. Alternatively you can also join the Gatsby Discord server.Quick links:
The text was updated successfully, but these errors were encountered: