diff --git a/astro.config.mjs b/astro.config.mjs index a0de02a..30f36e8 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -9,7 +9,18 @@ import AstroPWA from "@vite-pwa/astro"; import icon from "astro-icon"; // https://astro.build/config -export default defineConfig({ +import { defineConfig } from "astro/config" + + export default defineConfig({ + i18n:{ + defaultLocale:'en', + locales:['es','en'], + routing:{ + prefixDefaultLocale:true, + } + }, + + site: "https://www.axos-project.com", vite: { define: { diff --git a/public/admin/config.yml b/public/admin/config.yml index e23734a..2ca92c6 100644 --- a/public/admin/config.yml +++ b/public/admin/config.yml @@ -3,8 +3,8 @@ local_backend: true logo_url: /logo.svg backend: - name: "github" - repo: axos-project/axos-project.github.io + name: "gitlab" + repo: axos-project/axos-project.gitlab.io branch: main base_url: https://www.axos-project.com automatic_deployments: true diff --git a/public/images/sleex.mp4 b/public/images/sleex.mp4 new file mode 100644 index 0000000..30d8de6 Binary files /dev/null and b/public/images/sleex.mp4 differ diff --git a/src/components/blog/pagination.astro b/src/components/blog/pagination.astro index ee9220f..c18c932 100644 --- a/src/components/blog/pagination.astro +++ b/src/components/blog/pagination.astro @@ -1,4 +1,14 @@ --- + + +import {getRelativeLocaleUrl} from "astro:i18n"; //to get the language url and back with that same url +const currentLang= Astro.currentLocale || 'es' ; +import {langagelist} from "i18n/ui"; +import {useTranslations} from "i18n/util"; +const translateLabels = useTranslations(currentLang as keyof typeof langagelist); //for text translation + + + import Link from "@components/ui/link.astro"; import { Icon } from "astro-icon/components"; @@ -13,8 +23,8 @@ export interface Props { const { prevUrl, nextUrl, - prevText = "blog.prev", - nextText = "blog.next", + prevText = translateLabels("blg.prv"), //Previous text showed 'previous.next' to the user, but now it correctly displays "next/previos or siguiente/anterior if it's on the Spanish verison" + nextText = translateLabels("blg.nxt"), class: className, } = Astro.props; --- diff --git a/src/components/dlhero.astro b/src/components/dlhero.astro index a3efa9c..483b3f5 100644 --- a/src/components/dlhero.astro +++ b/src/components/dlhero.astro @@ -2,6 +2,11 @@ import Link from "@components/ui/link.astro"; +import {getRelativeLocaleUrl} from "astro:i18n"; +const currentLang= Astro.currentLocale || 'en' ; //all commands to replace the literals (text) +import {langagelist} from "i18n/ui"; +import {useTranslations} from "i18n/util"; +const translateLabels = useTranslations(currentLang as keyof typeof langagelist); ---
- Before you start, you could maybe make a donation to help us keep the project alive, and to help us improve it ♥️
+ {translateLabels("dwn.bf")} ♥️
- Click here to donate via PayPal + {translateLabels("dwn.pypl")}
- The Linux experience, enhanced! + {translateLabels("hero.experience")}
- AxOS is a free and open-source operating system, based on Arch Linux. It is distributed under the GNU General Public License v3.0 (GPL-3.0), which allows you to use, modify, and distribute the software freely, as long as you comply with the terms of the license. -
- See the full GPL licence + {translateLabels("legal.bx1")} + {translateLabels("legal.btn1")}- The AxOS project is maintained by a group of volunteers, and we are not affiliated with any company or organization. We do not collect any personal data from our users, and we do not share any data with third parties. -
- See the full legal notice + {translateLabels("legal.bx2")} + {translateLabels("legal.btn2")}Sorry, we couldn't find this page.
-You're probably lost, but don't worry, you can go back
- Back to homepage +{translateLabels("404title")}
+{translateLabels("404sub")}
+ {translateLabels("404back")}+ The documentation have been moved to https://docs.axos-project.com. +
++ Please update your bookmarks and links to point to the new location. +
+
This site is hosted by:
-
Github Pages
- GitHub, Inc., 88 Colin P Kelly Jr St, San Francisco, CA 94107, USA
-
https://pages.github.com.
+
Gitlab Pages
+ Gitlab, Inc., 268 Bush Street #350 San Francisco, CA 94104-3503, USA.
+
https://docs.gitlab.com/user/project/pages/.
The large files storage is provided by a VPS from the service
datalix.io.
Unless otherwise stated, all content (texts, images, source code) on the - AxOS website or github repositories is distributed under the free software - license GNU General Public License v3. + AxOS website or gitlab repositories is distributed under the free software + license GNU General Public License v3.
+ The documentation have been moved to https://docs.axos-project.com. +
++ Please update your bookmarks and links to point to the new location. +
++ El sitio Web de AxOS es publicado como parte del proyecto de AxOS. + Gestor de Publicaciones: Adrian Arjoca, Conocido como Ardox. + Contacto: ardox@axos-project.com +
+ +
+ Este sitio se encuentra alojado por:
+
Gitlab Pages
+ Gitlab, Inc., 268 Bush Street #350 San Francisco, CA 94104-3503, USA.
+
https://docs.gitlab.com/user/project/pages/.
+
El almacenamiento de grandes archivos son provistos por un VPS del servicio.
+ datalix.io.
+
+ + A menos que se establezca de otra forma, todo el contenido (textos, imágenes, código fuente) en el Sitio Web de AxOS, o los repositorios de gitlab son distribuidos bajo la licencia de software libre. + GNU Licencia Publica General v3. +
+ ++ La información provista por este sitio es únicamente para propósitos de información general. + El editor no se hace responsable de errores u omisiones. + El uso del sitio es bajo el propio riesgo del usuario. + +
+ ++ Los datos personales no son recolectados sin el conocimiento del usuario. + El sitio no usa cookies con fines publicitarios. + Conforme a la regulación General de protección de datos (GDPR), los usuarios tienen el derecho en acceder, modificar, y eliminar sus datos personales. + Debido que el sitio no recolecta ningún dato personal, no existen datos que se puedan acceder, modificar o eliminar. +
+ +
+ Ante cualquier duda, puedes contactar con el dueño del sitio web al:
+ ardox@axos-project.com
+
La dirección postal puede ser solicitada a través de correo electrónico.
+