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

Add Galician language support #1004

Merged
merged 4 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/four-pots-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/starlight": patch
---

Add Galician language support
2 changes: 1 addition & 1 deletion docs/src/content/docs/guides/i18n.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ If a translation is not yet available for a language, Starlight will show reader

In addition to hosting translated content files, Starlight allows you to translate the default UI strings (e.g. the "On this page" heading in the table of contents) so that your readers can experience your site entirely in the selected language.

English, Czech, French, German, Italian, Japanese, Portuguese, Dutch, Danish, Spanish, Turkish, Arabic, Norwegian, Farsi, Hebrew, Simplified Chinese, Korean, Indonesian, Russian, Swedish, Ukrainian, and Vietnamese translated UI strings are provided out of the box, and we welcome [contributions to add more default languages](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md).
English, Czech, French, German, Italian, Japanese, Portuguese, Dutch, Danish, Spanish, Turkish, Arabic, Norwegian, Farsi, Hebrew, Simplified Chinese, Korean, Indonesian, Russian, Swedish, Ukrainian, Vietnamese, and Galician translated UI strings are provided out of the box, and we welcome [contributions to add more default languages](https://github.com/withastro/starlight/blob/main/CONTRIBUTING.md).

You can provide translations for additional languages you support — or override our default labels — via the `i18n` data collection.

Expand Down
22 changes: 22 additions & 0 deletions packages/starlight/translations/gl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"skipLink.label": "Ir ao contido",
"search.label": "Busca",
"search.shortcutLabel": "(Preme / para Busca)",
"search.cancelLabel": "Deixar",
"search.devWarning": "A busca só está dispoñible nas versións de producción. \nTrata de construir e ollear o sitio para probalo localmente.",
"themeSelect.accessibleLabel": "Seleciona tema",
"themeSelect.dark": "Escuro",
"themeSelect.light": "Claro",
"themeSelect.auto": "Auto",
"languageSelect.accessibleLabel": "Seleciona linguaxe",
"menuButton.accessibleLabel": "Menú",
"sidebarNav.accessibleLabel": "Principal",
"tableOfContents.onThisPage": "Nesta paxina",
"tableOfContents.overview": "Sinopse",
"i18n.untranslatedContent": "Este contido aínda non está dispoñible no teu idioma.",
"page.editLink": "Editar paxina",
"page.lastUpdated": "Última actualización:",
"page.previousLink": "Anterior",
"page.nextLink": "Seguinte",
"404.text": "Paxina non atopada. Comproba a URL ou intenta usar a barra de busca."
}
2 changes: 2 additions & 0 deletions packages/starlight/translations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import ja from './ja.json';
import pt from './pt.json';
import fa from './fa.json';
import fr from './fr.json';
import gl from './gl.json';
import he from './he.json';
import id from './id.json';
import it from './it.json';
Expand Down Expand Up @@ -34,6 +35,7 @@ export default Object.fromEntries(
pt,
fa,
fr,
gl,
he,
id,
it,
Expand Down