From 56d6b0f64584a232c0a3fbec6e3618ac430f5b11 Mon Sep 17 00:00:00 2001 From: marshmallow Date: Sat, 4 May 2024 07:02:46 +1000 Subject: [PATCH] rename t throughout to translation --- src/components/Goals.astro | 24 +++++++++++----------- src/components/Header.astro | 8 ++++---- src/components/Hero.astro | 6 +++--- src/components/Roadmap.astro | 40 ++++++++++++++++++------------------ src/components/Values.astro | 24 +++++++++++----------- 5 files changed, 51 insertions(+), 51 deletions(-) diff --git a/src/components/Goals.astro b/src/components/Goals.astro index ddb485e..413b21d 100644 --- a/src/components/Goals.astro +++ b/src/components/Goals.astro @@ -2,41 +2,41 @@ import { getLangFromUrl, useTranslations } from '../i18n/utils'; const lang = getLangFromUrl(Astro.url); -const t = useTranslations(lang); +const translation = useTranslations(lang); ---
-

Goals

+

{translation("goals.title")}

  1. -

    {t("goals.independent.title")}

    +

    {translation("goals.independent.title")}

    - {t("goals.independent")} + {translation("goals.independent")}

  2. -

    {t("goals.gov.title")}

    +

    {translation("goals.gov.title")}

    - {t("goals.gov")} + {translation("goals.gov")}

  3. -

    {t("goals.stabilization.title")}

    +

    {translation("goals.stabilization.title")}

    - {t("goals.stabilization")} + {translation("goals.stabilization")}

  4. -

    {t("goals.infa.title")}

    +

    {translation("goals.infa.title")}

    - {t("goals.infa")} + {translation("goals.infa")}

  5. -

    {t("goals.education.title")}

    +

    {translation("goals.education.title")}

    - {t("goals.education")} + {translation("goals.education")}

diff --git a/src/components/Header.astro b/src/components/Header.astro index dd6e1b9..1918fc0 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -4,14 +4,14 @@ interface Props {} import { getLangFromUrl, useTranslations } from '../i18n/utils'; const lang = getLangFromUrl(Astro.url); -const t = useTranslations(lang); +const translation = useTranslations(lang); ---
diff --git a/src/components/Hero.astro b/src/components/Hero.astro index 223470f..2c9e0d9 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -2,7 +2,7 @@ import { getLangFromUrl, useTranslations } from '../i18n/utils'; const lang = getLangFromUrl(Astro.url); -const t = useTranslations(lang); +const translation = useTranslations(lang); ---
@@ -10,8 +10,8 @@ const t = useTranslations(lang);
-

{t("root.title")}

-
{t("root.description")}
+

{translation("root.title")}

+
{translation("root.description")}
diff --git a/src/components/Roadmap.astro b/src/components/Roadmap.astro index 11c79a0..4fe232d 100644 --- a/src/components/Roadmap.astro +++ b/src/components/Roadmap.astro @@ -2,64 +2,64 @@ import { getLangFromUrl, useTranslations } from '../i18n/utils'; const lang = getLangFromUrl(Astro.url); -const t = useTranslations(lang); +const translation = useTranslations(lang); ---
-

{t("roadmap.title")}

+

{translation("roadmap.title")}

  1. -

    {t("roadmap.soft_fork.title")}

    +

    {translation("roadmap.soft_fork.title")}

    - {t("roadmap.soft_fork.1")} + {translation("roadmap.soft_fork.1")}

    - {t("roadmap.soft_fork.2")} + {translation("roadmap.soft_fork.2")}

  2. -

    {t("roadmap.hard_fork.title")}

    +

    {translation("roadmap.hard_fork.title")}

    - {t("roadmap.hard_fork.1")} + {translation("roadmap.hard_fork.1")}

    - {t("roadmap.hard_fork.2")} + {translation("roadmap.hard_fork.2")}

    - {t("roadmap.hard_fork.3")} + {translation("roadmap.hard_fork.3")}

  3. -

    {t("roadmap.organization.title")}

    +

    {translation("roadmap.organization.title")}

    - {t("roadmap.organization.1")} + {translation("roadmap.organization.1")}

    - {t("roadmap.organization.2")} + {translation("roadmap.organization.2")}

    - {t("roadmap.organization.3")} + {translation("roadmap.organization.3")}

  4. -

    {t("roadmap.infa.title")}

    +

    {translation("roadmap.infa.title")}

    - {t("roadmap.infa.1")} + {translation("roadmap.infa.1")}

    - {t("roadmap.infa.2")} + {translation("roadmap.infa.2")}

    - {t("roadmap.infa.3")} + {translation("roadmap.infa.3")}

  5. -

    {t("roadmap.alignment.title")}

    +

    {translation("roadmap.alignment.title")}

    - {t("roadmap.alignment.1")} + {translation("roadmap.alignment.1")}

    - {t("roadmap.alignment.2")} + {translation("roadmap.alignment.2")}

diff --git a/src/components/Values.astro b/src/components/Values.astro index 76b74f0..e4ab21b 100644 --- a/src/components/Values.astro +++ b/src/components/Values.astro @@ -2,30 +2,30 @@ import { getLangFromUrl, useTranslations } from '../i18n/utils'; const lang = getLangFromUrl(Astro.url); -const t = useTranslations(lang); +const translation = useTranslations(lang); ---
-

{t("values.title")}

-

{t("values.rep.title")}

+

{translation("values.title")}

+

{translation("values.rep.title")}

- {t("values.rep")} + {translation("values.rep")}

-

{t("values.kindness.title")}

+

{translation("values.kindness.title")}

- {t("values.kindness")} + {translation("values.kindness")}

-

{t("values.collaboration.title")}

+

{translation("values.collaboration.title")}

- {t("values.collaboration")} + {translation("values.collaboration")}

-

{t("values.sustainability.title")}

+

{translation("values.sustainability.title")}

- {t("values.sustainability")} + {translation("values.sustainability")}

-

{t("values.accessibility.title")}

+

{translation("values.accessibility.title")}

- {t("values.accessibility")} + {translation("values.accessibility")}