add rtl for hebrew texts
This commit is contained in:
parent
10ff2c0bd0
commit
207ee7e1bc
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"allowEmptyTranslations": false,
|
||||
"defaultLanguage": "en",
|
||||
"forceKeyUPPERCASE": true,
|
||||
"jsonSpace": 2,
|
||||
"keySeparator": ".",
|
||||
"lineEnding": "\n",
|
||||
"supportedFolders": [
|
||||
"i18n"
|
||||
],
|
||||
"workspaceFolders": [
|
||||
{
|
||||
"name": "src",
|
||||
"path": "src/i18n",
|
||||
"visibleColumns": [
|
||||
"es",
|
||||
"fr",
|
||||
"he",
|
||||
"pt",
|
||||
"uk"
|
||||
],
|
||||
"hiddenColumns": []
|
||||
}
|
||||
],
|
||||
"defaultWorkspaceFolder": "src",
|
||||
"translationService": "Coming soon",
|
||||
"translationServiceApiKey": "Coming soon"
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
"nav.contact": "צור קשר",
|
||||
|
||||
"hero.name": "ד\"ר חוסה בנחמין פרז מאטוס",
|
||||
"hero.title": "Líder fundador",
|
||||
"hero.title": "מייסד ומנהיג",
|
||||
"hero.body": "“החלום שלי הוא לראות את הגשמת חזון הנביאים: עולם של צדק ושלום, לטובת ישראל והאנושות כולה.”",
|
||||
|
||||
"carousel.text1": "שלום",
|
||||
|
|
@ -110,7 +110,7 @@
|
|||
},
|
||||
{
|
||||
"type": "text",
|
||||
"icon": "ph:arrow-circle-right-thin",
|
||||
"icon": "ph:arrow-circle-left-thin",
|
||||
"text": "Participación activa en escenarios internacionales.",
|
||||
"textColor": "#003421",
|
||||
"bgColor": "#BEA48D"
|
||||
|
|
@ -136,7 +136,7 @@
|
|||
},
|
||||
{
|
||||
"type": "text",
|
||||
"icon": "ph:arrow-circle-left-thin",
|
||||
"icon": "ph:arrow-circle-right-thin",
|
||||
"text": "Compromiso público en la defensa de Israel, la justicia y la paz.",
|
||||
"textColor": "#003421",
|
||||
"bgColor": "#EBE5D0"
|
||||
|
|
|
|||
|
|
@ -15,17 +15,11 @@ const {
|
|||
url
|
||||
} = Astro.props;
|
||||
|
||||
const currentLocale = Astro.currentLocale ?? 'es';
|
||||
const direction = currentLocale === 'he' ? 'rtl' : 'ltr';
|
||||
---
|
||||
<style is:global>
|
||||
img {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<html lang="en" class="scroll-smooth">
|
||||
<html lang={currentLocale} dir={direction} class="scroll-smooth">
|
||||
<BaseHead
|
||||
title={title}
|
||||
description={description}
|
||||
|
|
@ -33,8 +27,9 @@ const {
|
|||
url={url}
|
||||
/>
|
||||
<script>
|
||||
document.addEventListener('contextmenu', event => {
|
||||
if (event.target.tagName === 'IMG') {
|
||||
document.addEventListener('contextmenu', (event) => {
|
||||
const target = event.target as HTMLElement;
|
||||
if (target.tagName === 'IMG') {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue