Skip to content

Example of how to change the website language #1439

Answered by HiDeoo
sebastianjnuwu asked this question in Q&A
Discussion options

You must be logged in to vote

Hey 👋

Starlight UI strings are by default available, at the time of writing, in Arabic, Chinese, Czech, Danish, Dutch, English, French, Galician, German, Hebrew, Hindi, Indonesian, Italian, Japanese, Korean, Norwegian Bokmål, Persian, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish, Ukrainian, and Vietnamese by default (reference to the up-to-date list).

If this is one of the languages you want to use and your site is mono-lingual, you can follow this guide to setup a single language site in one of these languages. You will need to set the desired language as the root in your locales config (in your astro.config.mjs file).

For example, in French, this would be:

import { defineConfig

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sebastianjnuwu
Comment options

Answer selected by sebastianjnuwu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants