From 310df7d6b01f5c4a56540bdba9243fb60dace323 Mon Sep 17 00:00:00 2001 From: Aaron <40338163+aaronperezaguilera@users.noreply.github.com> Date: Fri, 13 Dec 2024 22:22:33 +0100 Subject: [PATCH] i18n(ca): add Catalan Spanish UI translations (#2669) Co-authored-by: Chris Swithinbank --- .changeset/loud-cycles-arrive.md | 5 +++ packages/starlight/translations/ca.json | 42 ++++++++++++++++++++++++ packages/starlight/translations/index.ts | 2 ++ 3 files changed, 49 insertions(+) create mode 100644 .changeset/loud-cycles-arrive.md create mode 100644 packages/starlight/translations/ca.json diff --git a/.changeset/loud-cycles-arrive.md b/.changeset/loud-cycles-arrive.md new file mode 100644 index 00000000000..d281317d10c --- /dev/null +++ b/.changeset/loud-cycles-arrive.md @@ -0,0 +1,5 @@ +--- +"@astrojs/starlight": patch +--- + +Adds Catalan UI translations diff --git a/packages/starlight/translations/ca.json b/packages/starlight/translations/ca.json new file mode 100644 index 00000000000..2b2d6f67519 --- /dev/null +++ b/packages/starlight/translations/ca.json @@ -0,0 +1,42 @@ +{ + "skipLink.label": "Saltar al contingut", + "search.label": "Cercar", + "search.ctrlKey": "Ctrl", + "search.cancelLabel": "Cancel·lar", + "search.devWarning": "La cerca només està disponible a les versions de producció. \nProva de construir i previsualitzar el lloc per provar-ho localment.", + "themeSelect.accessibleLabel": "Seleccionar tema", + "themeSelect.dark": "Fosc", + "themeSelect.light": "Clar", + "themeSelect.auto": "Automàtic", + "languageSelect.accessibleLabel": "Seleccionar idioma", + "menuButton.accessibleLabel": "Menú", + "sidebarNav.accessibleLabel": "Primari", + "tableOfContents.onThisPage": "En aquesta pàgina", + "tableOfContents.overview": "Sinopsi", + "i18n.untranslatedContent": "Aquesta pàgina encara no està disponible en el teu idioma.", + "page.editLink": "Edita aquesta pàgina", + "page.lastUpdated": "Última actualització:", + "page.previousLink": "Pàgina anterior", + "page.nextLink": "Pàgina següent", + "page.draft": "Aquest contingut és un esborrany i no s'inclourà en les versions de producció.", + "404.text": "Pàgina no trobada. Comprova la URL o intenta utilitzar la barra de cerca.", + "aside.note": "Nota", + "aside.tip": "Consell", + "aside.caution": "Precaució", + "aside.danger": "Perill", + "expressiveCode.copyButtonCopied": "Copiat!", + "expressiveCode.copyButtonTooltip": "Copiar al porta-retalls", + "expressiveCode.terminalWindowFallbackTitle": "Finestra del terminal", + "fileTree.directory": "Directori", + "builtWithStarlight.label": "Fet amb Starlight", + "pagefind.clear_search": "Netejar", + "pagefind.load_more": "Carregar més resultats", + "pagefind.search_label": "Cercar pàgina", + "pagefind.filters_label": "Filtres", + "pagefind.zero_results": "Cap resultat per a: [SEARCH_TERM]", + "pagefind.many_results": "[COUNT] resultats per a: [SEARCH_TERM]", + "pagefind.one_result": "[COUNT] resultat per a: [SEARCH_TERM]", + "pagefind.alt_search": "Cap resultat per a [SEARCH_TERM]. Mostrant resultats per a: [DIFFERENT_TERM]", + "pagefind.search_suggestion": "Cap resultat per a [SEARCH_TERM]. Prova alguna d’aquestes cerques:", + "pagefind.searching": "Cercant [SEARCH_TERM]..." +} diff --git a/packages/starlight/translations/index.ts b/packages/starlight/translations/index.ts index 53de8243925..bd83b3b514e 100644 --- a/packages/starlight/translations/index.ts +++ b/packages/starlight/translations/index.ts @@ -2,6 +2,7 @@ import { builtinI18nSchema } from '../schemas/i18n'; import cs from './cs.json'; import en from './en.json'; import es from './es.json'; +import ca from './ca.json'; import de from './de.json'; import ja from './ja.json'; import pt from './pt.json'; @@ -35,6 +36,7 @@ export default Object.fromEntries( cs, en, es, + ca, de, ja, pt,