summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornunhes2023-11-01 23:17:58 +0100
committerGitHub2023-11-01 23:17:58 +0100
commit7f92213a0b93de5a844816841a6bc9cdd371de0c (patch)
tree6b38203e6adb0b6a30f729e478cb0d99ba27b436
parent72cca2d07644f00595da6ebf7d603adb282f359d (diff)
downloadIT.starlight-7f92213a0b93de5a844816841a6bc9cdd371de0c.tar.gz
IT.starlight-7f92213a0b93de5a844816841a6bc9cdd371de0c.tar.bz2
IT.starlight-7f92213a0b93de5a844816841a6bc9cdd371de0c.zip
Add Galician language support (#1004)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
-rw-r--r--.changeset/four-pots-cheat.md5
-rw-r--r--docs/src/content/docs/guides/i18n.mdx2
-rw-r--r--packages/starlight/translations/gl.json22
-rw-r--r--packages/starlight/translations/index.ts2
4 files changed, 30 insertions, 1 deletions
diff --git a/.changeset/four-pots-cheat.md b/.changeset/four-pots-cheat.md
new file mode 100644
index 00000000..878c564c
--- /dev/null
+++ b/.changeset/four-pots-cheat.md
@@ -0,0 +1,5 @@
+---
+"@astrojs/starlight": patch
+---
+
+Add Galician language support
diff --git a/docs/src/content/docs/guides/i18n.mdx b/docs/src/content/docs/guides/i18n.mdx
index 78acf66f..f86f3db0 100644
--- a/docs/src/content/docs/guides/i18n.mdx
+++ b/docs/src/content/docs/guides/i18n.mdx
@@ -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.
diff --git a/packages/starlight/translations/gl.json b/packages/starlight/translations/gl.json
new file mode 100644
index 00000000..9b9d1401
--- /dev/null
+++ b/packages/starlight/translations/gl.json
@@ -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."
+ }
diff --git a/packages/starlight/translations/index.ts b/packages/starlight/translations/index.ts
index 52c82d1f..92cc73db 100644
--- a/packages/starlight/translations/index.ts
+++ b/packages/starlight/translations/index.ts
@@ -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';
@@ -34,6 +35,7 @@ export default Object.fromEntries(
pt,
fa,
fr,
+ gl,
he,
id,
it,