Skip to content

Commit

Permalink
Translate signup page
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Oct 19, 2023
1 parent 21408e3 commit f92c83b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/auth/Signup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,32 @@ import PageTitle from "@/components/PageTitle.vue";

<template>
<div>
<PageTitle>Create account</PageTitle>
<PageTitle>{{ $t("signup") }}</PageTitle>
<div class="flex flex-wrap gap-6">
<Section
class="!mt-0 w-64 flex-grow"
title="You may already have an account"
:title="$t('signup.existing.title')"
>
<p>
If your university account is connected to eduGAIN, you can directly
use Mink by simply signing in:
{{ $t("signup.existing.login") }}
</p>
<LoginButton />
<p>
(If you are not sure, click the button and search for your university
or organization.)
{{ $t("signup.existing.tip") }}
</p>
</Section>

<Section class="!mt-0 w-64 flex-grow" title="No account">
<p>
If you are not affiliated with any of the available identity
providers, you can
<a href="https://eduid.se/en/" target="_blank"
>create an eduID account</a
>
and then sign in here, selecting <em>eduID Sweden</em> as identity
provider.
</p>
<Section class="!mt-0 w-64 flex-grow" :title="$t('signup.new')">
<i18n-t keypath="signup.new.create" scope="global" tag="p">
<template #register>
<a :href="$t('signup.new.register.url')" target="_blank">
{{ $t("signup.new.register.label") }}
</a>
</template>
<template #eduid>
<em>{{ $t("signup.new.eduid") }}</em>
</template>
</i18n-t>
</Section>
</div>
</div>
Expand Down
8 changes: 8 additions & 0 deletions src/i18n/locales/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ login.help: Most university users can sign in directly.
logout: Logout
signup: Create account
signup.help: Most non-university users need to set up an account first.
signup.existing.title: You may already have an account
signup.existing.login: "If your university account is connected to eduGAIN, you can directly use Mink by simply signing in:"
signup.existing.tip: (If you are not sure, click the button and search for your university or organization.)
signup.new: No account
signup.new.create: If you are not affiliated with any of the available identity providers, you can {register} and then sign in here, selecting {eduid} as identity provider.
signup.new.register.url: https://eduid.se/en/
signup.new.register.label: create an eduID account
signup.new.eduid: eduID Sweden
account: Account
enable: Enable
disable: Disable
Expand Down
8 changes: 8 additions & 0 deletions src/i18n/locales/sv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ login.help: De flesta med akademisk anknytning kan logga in direkt.
logout: Logga ut
signup: Skapa konto
signup.help: Andra användare behöver i regel registrera ett konto.
signup.existing.title: Du kanske redan har ett konto
signup.existing.login: "Om ditt universitetskonto är kopplat till Edugain kan du redan nu använda Mink genom att logga in:"
signup.existing.tip: (Om du inte är säker kan du alltid klicka på knappen och söka efter ditt universitet eller organisation i listan över identitetsintygare.)
signup.new: Inget konto
signup.new.create: Om du inte tillhör någon av de kopplade identitetsintygarna kan du {register} och sedan logga in här genom att välja {eduid} som identitetsintygare.
signup.new.register.url: https://eduid.se/
signup.new.register.label: skapa ett EduID-konto
signup.new.eduid: eduID Sweden
account: Konto
enable: Aktivera
disable: Avaktivera
Expand Down

0 comments on commit f92c83b

Please sign in to comment.