Skip to content

Commit

Permalink
add Hebrew UI translations (#747)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
nirtamir2 and delucis committed Sep 25, 2023
1 parent 206c5f5 commit 7589515
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/twelve-buttons-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/starlight": patch
---

Add Hebrew 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, Simplified Chinese, Korean, Indonesian, Russian, and Swedish 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, and Swedish 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
22 changes: 22 additions & 0 deletions packages/starlight/translations/he.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"skipLink.label": "דלגו לתוכן",
"search.label": "חיפוש",
"search.shortcutLabel": "(לחצו / כדי לחפש)",
"search.cancelLabel": "ביטול",
"search.devWarning": "החיפוש זמין רק בסביבת ייצור. \nנסו לבנות ולהציג תצוגה מקדימה של האתר כדי לבדוק אותו באופן מקומי.",
"themeSelect.accessibleLabel": "בחרו פרופיל צבע",
"themeSelect.dark": "כהה",
"themeSelect.light": "בהיר",
"themeSelect.auto": "מערכת",
"languageSelect.accessibleLabel": "בחרו שפה",
"menuButton.accessibleLabel": "תפריט",
"sidebarNav.accessibleLabel": "ראשי",
"tableOfContents.onThisPage": "בדף זה",
"tableOfContents.overview": "סקירה כללית",
"i18n.untranslatedContent": "תוכן זה אינו זמין עדיין בשפה שלך.",
"page.editLink": "ערכו דף",
"page.lastUpdated": "עדכון אחרון:",
"page.previousLink": "הקודם",
"page.nextLink": "הבא",
"404.text": "הדף לא נמצא. אנא בדקו את כתובת האתר או נסו להשתמש בסרגל החיפוש."
}
2 changes: 2 additions & 0 deletions packages/starlight/translations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 he from './he.json';
import id from './id.json';
import it from './it.json';
import nl from './nl.json';
Expand All @@ -31,6 +32,7 @@ export default Object.fromEntries(
pt,
fa,
fr,
he,
id,
it,
nl,
Expand Down

0 comments on commit 7589515

Please sign in to comment.