Skip to content

Commit 4e1ffab

Browse files
authored
Merge branch 'main' into hd-i18n-fr-0-13-0-configuration
2 parents 7d9e26f + 8c0b267 commit 4e1ffab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CONTRIBUTING.md

+11
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,17 @@ Help out by:
198198

199199
Visit **<https://i18n.starlight.astro.build>** to track translation progress for the currently supported languages.
200200

201+
#### Adding a new language to Starlight’s docs
202+
203+
To add a language, you will need its BCP-47 tag and a label. See [“Adding a new language”](https://github.com/withastro/docs/blob/main/contributor-guides/translating-astro-docs.md#adding-a-new-language) in the Astro docs repo for some helpful tips around choosing these.
204+
205+
- Add your language to the `locales` config in `docs/astro.config.mjs`
206+
- Add your language’s subtag to the i18n label config in `.github/labeler.yml`
207+
- Add your language to the `pa11y` script’s `--sitemap-exclude` flag in `package.json`
208+
- Create the first translated page for your language.
209+
This must be the Starlight landing page: `docs/src/content/docs/{language}/index.mdx`.
210+
- Open a pull request on GitHub to add your changes to Starlight!
211+
201212
## Understanding Starlight
202213

203214
- Starlight is built as an Astro integration.

0 commit comments

Comments
 (0)