Replies: 30 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.
|
Beta Was this translation helpful? Give feedback.
-
FYI if someone has a similar issue, I sorta made it work by doing |
Beta Was this translation helpful? Give feedback.
-
Hi Guillaume, glad to hear that the theme itself works well for you!
This way the |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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!) |
Beta Was this translation helpful? Give feedback.
-
Thanks @LekoArts ! Awesome I will give it a try :) |
Beta Was this translation helpful? Give feedback.
-
Hey, is there an option to prefix the default language in the path? I.e. |
Beta Was this translation helpful? Give feedback.
-
Hey! 👋 I'm currently on vacation for two weeks, I'll get back to any questions after that 😊 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
@wirths sure thing, the gist of it is this:
|
Beta Was this translation helpful? Give feedback.
-
@tmskrtsz Thank you! |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
I'm now also trying to get prefixed for the default language, because it make a lot of things easier, but @tmskrtsz @wirths what did you you do about |
Beta Was this translation helpful? Give feedback.
-
I extended |
Beta Was this translation helpful? Give feedback.
-
Hi! Getting back up to speed again and will look into these things :) |
Beta Was this translation helpful? Give feedback.
-
Once feature that is stuck in PR in |
Beta Was this translation helpful? Give feedback.
-
Ok, so a bit of an update:
Next thing on my list:
This should help with the page creation, |
Beta Was this translation helpful? Give feedback.
-
@wirths @philschonholzer @tmskrtsz Please have a look at #75 and try out the canary release |
Beta Was this translation helpful? Give feedback.
-
Is there a way to translate the whole page url when creating localized pages? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I noticed that |
Beta Was this translation helpful? Give feedback.
-
I found solution to language switcher on Discord channel about this theme. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to use language detector with this theme or is it not implemented yet? |
Beta Was this translation helpful? Give feedback.
-
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: |
Beta Was this translation helpful? Give feedback.
-
Is this theme still maintained? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Hello! @LekoArts , I have created 4 issues & associated PRs for gatsby-theme-i18n fixing 1 bug and adding some features (useful to me):
I hope this could be useful to others as well, and am keen to get your eyes on these. And hopefully get these PR merged :-) |
Beta Was this translation helpful? Give feedback.
-
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:
Beta Was this translation helpful? Give feedback.
All reactions