-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
Better language switcher #583
Comments
Dear @jpanther, Thanks for your reply. I totally understand that it takes time and your workload doesn’t allow to tackle this issue. In the meantime, here are some thoughts regarding its position: As far as I know, one person puts the language switcher in the footer (see #290), while most people would rather put it in the menu (see #462) and it seems the case for most multilingual websites. It is true that it will be hard to please everyone, but I believe that we all agree that next to the site name is not ideal. Thanks again for your work and your consideration! Regards, |
Thanks for looking into the language switcher. I could contribute by translating some sample content into German. In terms of scope, would we need only exampleSite/content/samples and the new config files for |
I'm really only looking for some sample content in different languages. Translating all the documentation is a much bigger project and then we'd have to try to manage the problem of keeping it up to date as the theme evolves. If the example site had translations for the homepage, menu, and the sample pages (even if it's only some of the sample pages), then I think that would be plenty to be able to test how the localisation works in a variety of places. The example site content directory is already structured into subdirectories so it should be as simple as providing a translated |
Thank you for your answer, @jpanther. This sounds very reasonable. |
Brought here by @AntoineSoetewey from #290. I have a production-ready blog at https://blog.tomy.me, which has a custom translation dropdown menu. The implementation can be found in tomy0000000/blog@a026989 commit, which is only 15 lines of code, yet it turns out to work very well as of now. Since @jpanther also mentioned that there are more to be considered to make the widget customizable, I think it would be great to list out all the concerns here, so we (the community) can help work toward the goal, and I will have a more clear picture of how I can draft a PR. |
I like the idea of a dropdown menu and it could perhaps be styled with CSS to make it more in keeping with the overall design language. I also like the idea (as others have suggested) of having a single "translation" icon in the menu that will open a menu of language choices when they're available. I want to be able to integrate this functionality with the menus config file in a similar fashion to how the appearance switcher works. This allows a great deal of flexibility for users because the link can be placed in a variety of locations depending on individual use cases. We could then include parameters that can further customise the appearance. |
This issue has been automatically marked as stale because it has not had any recent activity. |
Keep open :) |
Thanks @jpanther for your work! I have no particular feedback, except that I like the design and at the top right seems to me a very appropriate location. Can’t wait to see the final version released! |
Although the commit closes this issue, I'm still happy for any general feedback in this thread. If you come across a new issue related to the functionality of these changes, please open a new issue for it. |
Previous discussion in #462
There is a need to overhaul the language switcher and I want to improve it for everyone.
Unfortunately, I have been very busy in my day job and my workload has been too large to deal with this issue. I definitely want to fix it though and there's been a number of challenges for me to get there. As I think I've mentioned elsewhere, my intention is to make the language picker portable so that it can be placed in any menu. The changes I've been making over the last few theme releases have laid the groundwork for this however I'm still impeded by the time constraints of developing the last few components.
One of the biggest hurdles I have is actually having demo data to be able to test new i18n features. I don't have multilingual content in the example site and so I have to make a local development environment every time and set up dummy data for other languages. It takes a lot of time and doesn't reflect real use cases. This means that for me to be able to make changes, it's not as quick as just being able to test it against the large dataset of the current example site. It would be super helpful if the community could chip in here and perhaps we could get some of the sample content in the theme localised so that the example site has some multilingual content by default. It would not only help to demonstrate the theme features to new users, but it would greatly speed up the development and testing process. Having "real" data highlights potential issues far earlier than it does if I'm just creating shell pages to see if the translation features work.
The other issue is there are a lot of opinions on how this feature should operate. Some like the idea of a dropdown language picker, others like icons, some want it to be a top level menu and others want it buried in the hamburger menu. Implementing the feature in such a way that it is customisable is a key component but it's going to be difficult to please everyone. The mobile menu was exactly like this and it took time to come up with a workable solution that meets most people's needs.
I think the change I made to hide the current language wasn't thought out enough, and I expected to have more time to be able to quickly release incremental updates to work towards a longer term solution but I just haven't had the time. My options at this point are to roll it back or push forward knowing that it will take some time to get to the final feature release.
I'm going to keep this issue open as the main place to discuss this change as it will help keep me focused on implementing a solution. I'll link existing discussions to this page. Please post comments and feedback as it really helps me understand everyone's needs and wants.
The text was updated successfully, but these errors were encountered: