Skip to content

Commit

Permalink
Add Galician language support (#1004)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
nunhes and delucis committed Nov 1, 2023
1 parent 72cca2d commit 7f92213
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
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

0 comments on commit 7f92213

Please sign in to comment.