List supported languages in docs #2015
emeraldsquirrel
started this conversation in
Feature Requests
Replies: 1 comment 4 replies
-
Thanks for the suggestion. We actually recently implemented some logic that might mean we can eventually make I think we made the assumption that if someone is translating docs into another language, also translating the label appropriately would be possible for them. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.24.2
What is your idea?
It would be helpful if the Starlight i18n documentation listed the configuration for all the languages that the Starlight UI is by default translated in.
The second paragraph of https://starlight.astro.build/guides/i18n/#translate-starlights-ui lists the languages by name.
It would be helpful if somewhere in the appendix of this article a default configuration could be included for you to copy + paste from to add supported languages to your configuration. Something like:
Note I filled this in myself from the available language codes in https://github.com/withastro/starlight/blob/main/packages/starlight/translations/index.ts and I may not have capitalized the language names properly. I used wikipedia to get the language names. The comment listing the english-name is also extremely useful when reading the code. I also tried to add rtl where appropriate but I may have missed some.
Why is this feature necessary?
Right now people making new starlight installs need to do a lot of legwork to get the configuration boilerplate the way starlight expects it. This would facilitate that for languages starlight already supports.
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions