Skip to content

Commit

Permalink
feat: add hebrew (and rtl support) (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShlomoCode authored Mar 1, 2024
1 parent dd672c4 commit 289dbd7
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"vue": "^3.2.47",
"vue-i18n": "^9.2.2",
"vue-router": "^4.0.0",
"vuetify": "^3.1.13",
"vuetify": "^3.1.15",
"webfontloader": "^1.0.0"
},
"devDependencies": {
Expand Down
44 changes: 44 additions & 0 deletions src/locales/he.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"home": {
"slogan1": "שיתוף קבצים למכשירים בקרבת מקום.",
"slogan2": "חינמי, קוד פתוח, וחוצה פלטפורמות.",
"download": "הורדה",
"community": "קהילה"
},
"download": {
"title": "הורדות",
"subTitle": "{os} הורדה עבור",
"appStores": "חנויות אפליקציות",
"appStoresDescription": "מומלץ עבור רוב המשתמשים.",
"binaries": "Binaries",
"binariesDescription": "הורדה עבור שימוש לא מקוון.",
"packageManagers": "מנהלי חבילות",
"packageManagersDescription": "התקנה באמצעות שורת פקודה.",
"allReleases": "כל המהדורות",
"zip": "ZIP (גרסה ניידת)",
"copiedToClipboard": "הועתק ללוח!"
},
"community": {
"title": "קהילה",
"getHelp": "קבל עזרה",
"getHelpDescription": "שאל או חפש תשובות ב-Github Discussions.",
"getInvolved": "תרומה לפרויקט",
"getInvolvedDescription": "צור קשר עם המפתחים ותרום ישירות לפרויקט.",
"discord": "דיסקורד",
"issues": "Issues",
"pullRequests": "Pull Requests"
},
"footer":{
"underlicense": "משוחרר תחת",
"mitlicense": "רישיון MIT",
"andcontributor": "והתורמים של Localsend.",
"github": "GitHub",
"discord": "דיסקורד",
"privacy": "מדיניות פרטיות",
"terms": "תנאים",
"contact": "צור קשר",
"disclaimer-line1": "אתר זה ו-LocalSend אינם מזוהים עם, מאושרים על ידי, או קשורים בכל דרך שהיא למותגים המוזכרים באתר זה.",
"disclaimer-line2": "כל הסימנים המסחריים, הסמלים ושמות המותג הינם רכושם של בעליהם. אנו משתמשים בהם למטרות מידע בלבד."
},
"homepageButton": "דף הבית"
}
2 changes: 2 additions & 0 deletions src/plugins/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import uk from '@/locales/uk.json'
import zhCN from '@/locales/zh-CN.json'
import zhTW from '@/locales/zh-TW.json'
import zhHK from '@/locales/zh-HK.json'
import he from '@/locales/he.json'

export const locales: { [key: string]: [string, Record<string, any>] } = {
'cs': ['Čeština', cs],
Expand All @@ -24,6 +25,7 @@ export const locales: { [key: string]: [string, Record<string, any>] } = {
'es': ['Español', es],
'fr': ['Français', fr],
'it': ['Italiano', it],
'he': ['עברית', he],
'ja': ['日本語', ja],
'km': ['ភាសាខ្មែរ', km],
'ru': ['Русский', ru],
Expand Down
6 changes: 3 additions & 3 deletions src/views/Community.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<p>{{ $t('community.getHelpDescription') }}</p>

<v-btn v-for="(b, index) in helpButtons" v-bind:key="index" variant="tonal" :class="index ? ['ml-4', 'mt-2'] : ['mt-2']" :href="b.url" target="_blank">
<v-btn v-for="(b, index) in helpButtons" v-bind:key="index" variant="tonal" :class="index ? ['ms-4', 'mt-2'] : ['mt-2']" :href="b.url" target="_blank">
{{ b.name }}
</v-btn>

Expand All @@ -19,12 +19,12 @@
&nbsp;{{ $t('community.discord') }}
</v-btn>

<v-btn variant="tonal" href="https://github.com/localsend/localsend/issues" class="ml-4 mt-2" target="_blank">
<v-btn variant="tonal" href="https://github.com/localsend/localsend/issues" class="ms-4 mt-2" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="currentColor" d="M8 9.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3Z"/><path fill="currentColor" d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0a6.5 6.5 0 0 0-13 0Z"/></svg>
&nbsp;{{ $t('community.issues') }}
</v-btn>

<v-btn variant="tonal" href="https://github.com/localsend/localsend/pulls" class="ml-4 mt-2" target="_blank">
<v-btn variant="tonal" href="https://github.com/localsend/localsend/pulls" class="ms-4 mt-2" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 512 512"><path d="M305.8 2.1C314.4 5.9 320 14.5 320 24V64h16c70.7 0 128 57.3 128 128V358.7c28.3 12.3 48 40.5 48 73.3c0 44.2-35.8 80-80 80s-80-35.8-80-80c0-32.8 19.7-61 48-73.3V192c0-35.3-28.7-64-64-64H320v40c0 9.5-5.6 18.1-14.2 21.9s-18.8 2.3-25.8-4.1l-80-72c-5.1-4.6-7.9-11-7.9-17.8s2.9-13.3 7.9-17.8l80-72c7-6.3 17.2-7.9 25.8-4.1zM104 80A24 24 0 1 0 56 80a24 24 0 1 0 48 0zm8 73.3V358.7c28.3 12.3 48 40.5 48 73.3c0 44.2-35.8 80-80 80s-80-35.8-80-80c0-32.8 19.7-61 48-73.3V153.3C19.7 141 0 112.8 0 80C0 35.8 35.8 0 80 0s80 35.8 80 80c0 32.8-19.7 61-48 73.3zM104 432a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zm328 24a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"/></svg>
&nbsp;{{ $t('community.pullRequests') }}
</v-btn>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<v-btn variant="tonal" size="x-large" class="mt-4" color="primary" :prepend-icon="mdiDownload" to="/download">
{{ $t('home.download') }}
</v-btn>
<v-btn variant="tonal" size="x-large" class="ml-4 mt-4" :prepend-icon="mdiAccountMultiple" to="/community">
<v-btn variant="tonal" size="x-large" class="ms-4 mt-4" :prepend-icon="mdiAccountMultiple" to="/community">
{{ $t('home.community') }}
</v-btn>
</div>
Expand Down

0 comments on commit 289dbd7

Please sign in to comment.