Skip to content

Commit

Permalink
i18n(ro): Add ro.json UI translation (#1082)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
bogdaaamn and delucis committed Nov 17, 2023
1 parent f27f781 commit ce27486
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tasty-ladybugs-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/starlight": patch
---

i18n(ro): Add Romanian UI translations
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, 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.

Expand Down
2 changes: 2 additions & 0 deletions packages/starlight/translations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -47,6 +48,7 @@ export default Object.fromEntries(
zh,
ko,
sv,
ro,
ru,
vi,
uk,
Expand Down
26 changes: 26 additions & 0 deletions packages/starlight/translations/ro.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit ce27486

Please sign in to comment.