diff --git a/.changeset/tasty-ladybugs-return.md b/.changeset/tasty-ladybugs-return.md new file mode 100644 index 00000000000..1f9f843f94c --- /dev/null +++ b/.changeset/tasty-ladybugs-return.md @@ -0,0 +1,5 @@ +--- +"@astrojs/starlight": patch +--- + +i18n(ro): Add Romanian UI translations diff --git a/docs/src/content/docs/guides/i18n.mdx b/docs/src/content/docs/guides/i18n.mdx index f86f3db0357..e8f2bcf03d0 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, 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). +English, Czech, French, German, Italian, Japanese, Portuguese, Dutch, Danish, Spanish, Turkish, Arabic, Norwegian, Farsi, Hebrew, Simplified Chinese, Korean, Indonesian, Romanian, 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/index.ts b/packages/starlight/translations/index.ts index 92cc73dbd4e..4560252074c 100644 --- a/packages/starlight/translations/index.ts +++ b/packages/starlight/translations/index.ts @@ -19,6 +19,7 @@ import nb from './nb.json'; import zh from './zh-CN.json'; import ko from './ko.json'; import sv from './sv.json'; +import ro from './ro.json'; import ru from './ru.json'; import vi from './vi.json'; import uk from './uk.json'; @@ -47,6 +48,7 @@ export default Object.fromEntries( zh, ko, sv, + ro, ru, vi, uk, diff --git a/packages/starlight/translations/ro.json b/packages/starlight/translations/ro.json new file mode 100644 index 00000000000..0864f1639b7 --- /dev/null +++ b/packages/starlight/translations/ro.json @@ -0,0 +1,26 @@ +{ + "skipLink.label": "Sari la conținut", + "search.label": "Caută", + "search.shortcutLabel": "(Apasă pe / ca să cauți)", + "search.cancelLabel": "Anulează", + "search.devWarning": "Căutarea este disponibilă numai în versiunea de producție. \nÎncercă să construiești și să previzualizezi site-ul pentru a-l testa local.", + "themeSelect.accessibleLabel": "Selectează tema", + "themeSelect.dark": "Întunecată", + "themeSelect.light": "Deschisă", + "themeSelect.auto": "Auto", + "languageSelect.accessibleLabel": "Selectează limba", + "menuButton.accessibleLabel": "Meniu", + "sidebarNav.accessibleLabel": "Principal", + "tableOfContents.onThisPage": "Pe această pagină", + "tableOfContents.overview": "Sinopsis", + "i18n.untranslatedContent": "Acest conținut nu este încă disponibil în limba selectată.", + "page.editLink": "Editează pagina", + "page.lastUpdated": "Ultima actualizare:", + "page.previousLink": "Pagina precendentă", + "page.nextLink": "Pagina următoare", + "404.text": "Pagina nu a fost găsită. Verifică adresa URL sau încercă să folosești bara de căutare.", + "aside.note": "Mențiune", + "aside.tip": "Sfat", + "aside.caution": "Atenție", + "aside.danger": "Pericol" +}