Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n(ro): Add ro.json UI translation #1082

Merged
merged 2 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}