add rtl for hebrew texts

This commit is contained in:
Esteban 2026-04-02 18:56:10 -05:00
parent 10ff2c0bd0
commit 207ee7e1bc
3 changed files with 37 additions and 14 deletions

28
.vscode/.ei18n-editor-config.json vendored Normal file
View File

@ -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"
}

View File

@ -7,7 +7,7 @@
"nav.contact": "צור קשר", "nav.contact": "צור קשר",
"hero.name": "ד\"ר חוסה בנחמין פרז מאטוס", "hero.name": "ד\"ר חוסה בנחמין פרז מאטוס",
"hero.title": "Líder fundador", "hero.title": "מייסד ומנהיג",
"hero.body": "“החלום שלי הוא לראות את הגשמת חזון הנביאים: עולם של צדק ושלום, לטובת ישראל והאנושות כולה.”", "hero.body": "“החלום שלי הוא לראות את הגשמת חזון הנביאים: עולם של צדק ושלום, לטובת ישראל והאנושות כולה.”",
"carousel.text1": "שלום", "carousel.text1": "שלום",
@ -110,7 +110,7 @@
}, },
{ {
"type": "text", "type": "text",
"icon": "ph:arrow-circle-right-thin", "icon": "ph:arrow-circle-left-thin",
"text": "Participación activa en escenarios internacionales.", "text": "Participación activa en escenarios internacionales.",
"textColor": "#003421", "textColor": "#003421",
"bgColor": "#BEA48D" "bgColor": "#BEA48D"
@ -136,7 +136,7 @@
}, },
{ {
"type": "text", "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.", "text": "Compromiso público en la defensa de Israel, la justicia y la paz.",
"textColor": "#003421", "textColor": "#003421",
"bgColor": "#EBE5D0" "bgColor": "#EBE5D0"

View File

@ -15,17 +15,11 @@ const {
url url
} = Astro.props; } = 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 <BaseHead
title={title} title={title}
description={description} description={description}
@ -33,8 +27,9 @@ const {
url={url} url={url}
/> />
<script> <script>
document.addEventListener('contextmenu', event => { document.addEventListener('contextmenu', (event) => {
if (event.target.tagName === 'IMG') { const target = event.target as HTMLElement;
if (target.tagName === 'IMG') {
event.preventDefault(); event.preventDefault();
} }
}); });