Skip to content
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

Multiple languages support #224

Open
pdxuan opened this issue Nov 12, 2024 · 4 comments
Open

Multiple languages support #224

pdxuan opened this issue Nov 12, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@pdxuan
Copy link

pdxuan commented Nov 12, 2024

Multiple languages support

@saicaca saicaca added the enhancement New feature or request label Nov 15, 2024
@Zhuguli232
Copy link

This is good idea, I hope this can be added too.
It would be language settings on the top of nav bar, you can select different languages to display, for example, when the "English" is selected, all texts will be English, if the "Chinese (Simplified)" is selected, all texts will be in Simplified Chinese.

@L4Ph
Copy link
Contributor

L4Ph commented Feb 21, 2025

@Zhuguli232

It's unclear what "all text" refers to, but in principle there's no reason to dwell on it.

Because the basic functionality of the language key is supported and should automatically change to a specific language.(Depends on browser and OS)

If "all text" includes articles and titles, then I personally think you should give up.

This is because there are too many fallbacks to consider and the code base can become unnecessarily large.

@i'm not sure what @pdxuan intentions were in opening this issue, but I don't think it would be a very effective change.

@pdxuan
Copy link
Author

pdxuan commented Feb 23, 2025

@L4Ph I mean that the blog can support multiple languages, similar to Astro's documentation. Readers can switch to their preferred language.

Image

@L4Ph
Copy link
Contributor

L4Ph commented Feb 23, 2025

@pdxuan
The question is, to what extent will users be required to select a language?

Frankly, I believe that our ultimate goal of supporting multiple languages will be achieved as we add more supported languages, especially since automatic language switching is possible.
What is the purpose of this feature? (I'm particularly interested in what aspects of the current logic are unsatisfactory.)

Incidentally, aligning with Astro's official i18n would require significant breaking changes. (It would cause substantial damage to the existing logic.)

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

4 participants