Skip to content

Commit

Permalink
removing repeat string interpolation for about page
Browse files Browse the repository at this point in the history
  • Loading branch information
tejaswarathe committed Dec 28, 2024
1 parent d48f91b commit 5c60991
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions frontend/src/pages/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ definePageMeta({
const { t } = useI18n({ useScope: "global" })
useHead({
title: `${t("about.title", { openverse: "Openverse" })} | Openverse`,
title: `${t("about.title")} | Openverse`,
})
</script>

<template>
<VContentPage>
<h1>
{{ $t("about.title", { openverse: "Openverse" }) }}
{{ $t("about.title") }}
</h1>
<p>
{{ $t("about.description.content", { openverse: "Openverse" }) }}
{{ $t("about.description.content") }}
</p>

<p>
Expand All @@ -38,13 +38,12 @@ useHead({
</p>

<p>
{{ $t("about.planning.content.a", { openverse: "Openverse" }) }}
{{ $t("about.planning.content.a") }}
{{ $t("about.planning.content.b") }}
<i18n-t scope="global" keypath="about.planning.content.c" tag="span">
<template #repository>
<VLink href="https://github.com/wordpress/openverse">{{
$t("about.planning.repository", {
openverse: "Openverse",
github: "GitHub",
})
}}</VLink>
Expand All @@ -63,7 +62,7 @@ useHead({
</p>

<p>
{{ $t("about.transfer.content.a", { openverse: "Openverse" }) }}
{{ $t("about.transfer.content.a") }}
<i18n-t scope="global" keypath="about.transfer.content.b" tag="span">
<template #creativeCommons>
<VLink
Expand All @@ -81,11 +80,11 @@ useHead({
</p>

<p>
{{ $t("about.declaration.content.a", { openverse: "Openverse" }) }}
{{ $t("about.declaration.content.a") }}
<i18n-t scope="global" keypath="about.declaration.content.b" tag="span">
<template #terms>
<VLink href="https://creativecommons.org/terms/">{{
$t("about.declaration.terms", { openverse: "Openverse" })
$t("about.declaration.terms")
}}</VLink>
</template>
</i18n-t>
Expand All @@ -102,22 +101,18 @@ useHead({
</i18n-t>

<p>
{{ $t("externalSourcesPage.license.a", { openverse: "Openverse" }) }}
{{ $t("externalSourcesPage.license.b", { openverse: "Openverse" }) }}
{{ $t("externalSourcesPage.license.a") }}
{{ $t("externalSourcesPage.license.b") }}
{{ $t("externalSourcesPage.license.c") }}
</p>

<p>
{{ $t("externalSourcesPage.explanation", { openverse: "Openverse" }) }}
{{ $t("externalSourcesPage.explanation") }}
</p>

<p>
{{
$t("externalSourcesPage.relationships.a", { openverse: "Openverse" })
}}
{{
$t("externalSourcesPage.relationships.b", { openverse: "Openverse" })
}}
{{ $t("externalSourcesPage.relationships.a") }}
{{ $t("externalSourcesPage.relationships.b") }}
</p>

<h2>
Expand Down Expand Up @@ -150,7 +145,7 @@ useHead({
</i18n-t>

<p>
{{ $t("externalSourcesPage.why.new.a", { openverse: "Openverse" }) }}
{{ $t("externalSourcesPage.why.new.a") }}
{{ $t("externalSourcesPage.why.new.b") }}
{{ $t("externalSourcesPage.why.new.c") }}
</p>
Expand Down

0 comments on commit 5c60991

Please sign in to comment.