-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Feature request: Add ability to change default language #586
Comments
I also urgently need this feature. |
@JoelMarcey @amyrlam @yangshun @biezhi. What is the right behavior for this feature? https://docusaurus.io/docs/en/translation.html
Let's say I want my default language to be 'it' (Italia). Can I assume:
Or ...
Or ..
But http://localhost:3000/ will appears in Italian |
@endiliey Hi! Personally, I think your 1st option (docs in Italian, From my perspective, I think those are the options available to us and I believe, in order or my preference, it would be:
|
Yeah, I actually ordered it in the order of how hard it is to implement but makes more sense to the user. It's quite clear that there will be quite a refactoring here, but i guess it's worth a try. I'm new to contributing but I plan to contribute to Docusaurus on a longer term. |
I think it would be a great feature to have. I don't know if it is one of our most requested features (like Live Reload was), but still, as translations get more prevalent, it will be. So good to get out ahead of it.
❤️ |
Thanks for the reply. I was just wondering if we should focus more on fixing bugs, refactor or writing more tests to catch regressions, or maybe adding flow (static typechecker) to docusaurus codebase so that there will be less bugs & we can code confidently in the long run. |
@endiliey Hi! All of what you listed would be wonderful to have 👍 My advice to anyone who wants to contribute to Docusaurus, particularly if there are multiple possible projects/fixes, is to choose ones that you are interested in. That way you are working on something exciting to you and it will probably mean you will want to continue contributing in the future as well. |
Implemented in v2. Edit: reopened until we ship |
My use case: I want to have documentation in russian in docs, and use russian as a source language for another languages. So write-translations should peek-up preconfigured language instead of having hard-coded "en" string. |
This may be slightly unrelated to this specific issue, but I wanted to ask if there any changes planned related to the path used for localized docs? For example, the homepage is: I would expect it to be at |
Really need i18n support. not just one language. |
Here is an issue for i18n in v2 where we'll try to fix problems reported in this issue. |
Hi, I'm interested in implementing this. Is it still a desired feature? |
hi @vthirupathi , we won't implement this in v1, and it's already implemented for v2 in a pending PR. Closing this issue |
Is this a bug report?
No
Have you read the Contributing Guidelines on issues?
Yes
Steps to Reproduce
website/languages.js
to just haveDeutsch
as the onlyenabled: true
.cd website
andyarn start
.Consider adding ability to change the default language from English to something else in Docusaurus.
The text was updated successfully, but these errors were encountered: