Closed JiechengZhao closed 6 months ago
I agree that having the language in the URL is a good idea, but I think it should be better integrated with the preferences.
If I understand this suggestion correctly, then a tag in the URL will overwrite the preferences and changing them will not do anything. Better if the tag changes according to the preferences set.
I agree that having the language in the URL is a good idea, but I think it should be better integrated with the preferences.
If I understand this suggestion correctly, then a tag in the URL will overwrite the preferences and changing them will not do anything. Better if the tag changes according to the preferences set.
My experiment in the local environment shows that clicking ☰ will remove the search parameter in the URL. Therefore, changing the preference will change the language.
Another related issue might be that the language option is too deeply embedded in the UI, making it difficult for people to change it. I feel add a search parameter is a quick fix that meet my needs to share the game. We can make a complete better design later.
https://adam-dev.math.hhu.de/#/g/leanprover-community/nng4
I added the language button to the top navigation on all pages. This should already make it much easier to switch languages.
I implemented the feature, and it can be tested at the dev-server above :) Thanks for the suggestion and template!
if people add
?lang=zh
in the url, they will get the Chinese version of the game.