forked from auxolotl/website
rename t throughout to translation
This commit is contained in:
parent
7b72189f13
commit
56d6b0f645
|
@ -2,41 +2,41 @@
|
||||||
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
||||||
|
|
||||||
const lang = getLangFromUrl(Astro.url);
|
const lang = getLangFromUrl(Astro.url);
|
||||||
const t = useTranslations(lang);
|
const translation = useTranslations(lang);
|
||||||
---
|
---
|
||||||
|
|
||||||
<section id="goals">
|
<section id="goals">
|
||||||
<h2 class="title">Goals</h2>
|
<h2>{translation("goals.title")}</h2>
|
||||||
<div>
|
<div>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<h3>{t("goals.independent.title")}</h3>
|
<h3>{translation("goals.independent.title")}</h3>
|
||||||
<p>
|
<p>
|
||||||
{t("goals.independent")}
|
{translation("goals.independent")}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<h3>{t("goals.gov.title")}</h3>
|
<h3>{translation("goals.gov.title")}</h3>
|
||||||
<p>
|
<p>
|
||||||
{t("goals.gov")}
|
{translation("goals.gov")}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<h3>{t("goals.stabilization.title")}</h3>
|
<h3>{translation("goals.stabilization.title")}</h3>
|
||||||
<p>
|
<p>
|
||||||
{t("goals.stabilization")}
|
{translation("goals.stabilization")}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<h3>{t("goals.infa.title")}</h3>
|
<h3>{translation("goals.infa.title")}</h3>
|
||||||
<p>
|
<p>
|
||||||
{t("goals.infa")}
|
{translation("goals.infa")}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<h3>{t("goals.education.title")}</h3>
|
<h3>{translation("goals.education.title")}</h3>
|
||||||
<p>
|
<p>
|
||||||
{t("goals.education")}
|
{translation("goals.education")}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
|
@ -4,14 +4,14 @@ interface Props {}
|
||||||
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
||||||
|
|
||||||
const lang = getLangFromUrl(Astro.url);
|
const lang = getLangFromUrl(Astro.url);
|
||||||
const t = useTranslations(lang);
|
const translation = useTranslations(lang);
|
||||||
---
|
---
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<a href="https://aux.computer" class="brand">
|
<a href="https://aux.computer" class="brand">
|
||||||
<img class="icon" src="/aux.svg" />
|
<img class="icon" src="/aux.svg" />
|
||||||
<span class="title">{t("root.title")}</span>
|
<span class="title">{translation("root.title")}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
|
@ -21,8 +21,8 @@ const t = useTranslations(lang);
|
||||||
<li><a href="https://aux.computer/documentation">Documentation</a></li>
|
<li><a href="https://aux.computer/documentation">Documentation</a></li>
|
||||||
<li><a href="https://aux.computer/contribute">Contribute</a></li>
|
<li><a href="https://aux.computer/contribute">Contribute</a></li>
|
||||||
-->
|
-->
|
||||||
<li><a href="https://forum.aux.computer">{t("header.community")}</a></li>
|
<li><a href="https://forum.aux.computer">{translation("header.community")}</a></li>
|
||||||
<li><a href="https://github.com/auxolotl">{t("header.github")}</a></li>
|
<li><a href="https://github.com/auxolotl">{translation("header.github")}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
||||||
|
|
||||||
const lang = getLangFromUrl(Astro.url);
|
const lang = getLangFromUrl(Astro.url);
|
||||||
const t = useTranslations(lang);
|
const translation = useTranslations(lang);
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="hero">
|
<div class="hero">
|
||||||
|
@ -10,8 +10,8 @@ const t = useTranslations(lang);
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<img src="/aux.svg" alt="" />
|
<img src="/aux.svg" alt="" />
|
||||||
</div>
|
</div>
|
||||||
<h1 class="title">{t("root.title")}</h1>
|
<h1 class="title">{translation("root.title")}</h1>
|
||||||
<div class="description">{t("root.description")}</div>
|
<div class="description">{translation("root.description")}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -2,64 +2,64 @@
|
||||||
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
||||||
|
|
||||||
const lang = getLangFromUrl(Astro.url);
|
const lang = getLangFromUrl(Astro.url);
|
||||||
const t = useTranslations(lang);
|
const translation = useTranslations(lang);
|
||||||
---
|
---
|
||||||
|
|
||||||
<section id="roadmap">
|
<section id="roadmap">
|
||||||
<h2>{t("roadmap.title")}</h2>
|
<h2>{translation("roadmap.title")}</h2>
|
||||||
|
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<h3>{t("roadmap.soft_fork.title")}</h3>
|
<h3>{translation("roadmap.soft_fork.title")}</h3>
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.soft_fork.1")}
|
{translation("roadmap.soft_fork.1")}
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.soft_fork.2")}
|
{translation("roadmap.soft_fork.2")}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<h3>{t("roadmap.hard_fork.title")}</h3>
|
<h3>{translation("roadmap.hard_fork.title")}</h3>
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.hard_fork.1")}
|
{translation("roadmap.hard_fork.1")}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.hard_fork.2")}
|
{translation("roadmap.hard_fork.2")}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.hard_fork.3")}
|
{translation("roadmap.hard_fork.3")}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<h3>{t("roadmap.organization.title")}</h3>
|
<h3>{translation("roadmap.organization.title")}</h3>
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.organization.1")}
|
{translation("roadmap.organization.1")}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.organization.2")}
|
{translation("roadmap.organization.2")}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.organization.3")}
|
{translation("roadmap.organization.3")}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<h3>{t("roadmap.infa.title")}</h3>
|
<h3>{translation("roadmap.infa.title")}</h3>
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.infa.1")}
|
{translation("roadmap.infa.1")}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.infa.2")}
|
{translation("roadmap.infa.2")}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.infa.3")}
|
{translation("roadmap.infa.3")}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<h3>{t("roadmap.alignment.title")}</h3>
|
<h3>{translation("roadmap.alignment.title")}</h3>
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.alignment.1")}
|
{translation("roadmap.alignment.1")}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{t("roadmap.alignment.2")}
|
{translation("roadmap.alignment.2")}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
|
@ -2,30 +2,30 @@
|
||||||
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
||||||
|
|
||||||
const lang = getLangFromUrl(Astro.url);
|
const lang = getLangFromUrl(Astro.url);
|
||||||
const t = useTranslations(lang);
|
const translation = useTranslations(lang);
|
||||||
---
|
---
|
||||||
|
|
||||||
<section id="values">
|
<section id="values">
|
||||||
<h2>{t("values.title")}</h2>
|
<h2>{translation("values.title")}</h2>
|
||||||
<h3 class="name">{t("values.rep.title")}</h3>
|
<h3 class="name">{translation("values.rep.title")}</h3>
|
||||||
<p class="description">
|
<p class="description">
|
||||||
{t("values.rep")}
|
{translation("values.rep")}
|
||||||
</p>
|
</p>
|
||||||
<h3 class="name">{t("values.kindness.title")}</h3>
|
<h3 class="name">{translation("values.kindness.title")}</h3>
|
||||||
<p class="description">
|
<p class="description">
|
||||||
{t("values.kindness")}
|
{translation("values.kindness")}
|
||||||
</p>
|
</p>
|
||||||
<h3 class="name">{t("values.collaboration.title")}</h3>
|
<h3 class="name">{translation("values.collaboration.title")}</h3>
|
||||||
<p class="description">
|
<p class="description">
|
||||||
{t("values.collaboration")}
|
{translation("values.collaboration")}
|
||||||
</p>
|
</p>
|
||||||
<h3 class="name">{t("values.sustainability.title")}</h3>
|
<h3 class="name">{translation("values.sustainability.title")}</h3>
|
||||||
<p class="description">
|
<p class="description">
|
||||||
{t("values.sustainability")}
|
{translation("values.sustainability")}
|
||||||
</p>
|
</p>
|
||||||
<h3 class="name">{t("values.accessibility.title")}</h3>
|
<h3 class="name">{translation("values.accessibility.title")}</h3>
|
||||||
<p class="description">
|
<p class="description">
|
||||||
{t("values.accessibility")}
|
{translation("values.accessibility")}
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue