forked from athenekilta/ilmomasiina
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from Tietokilta/feature/93-ui-i18n
Add i18n for public UI
- Loading branch information
Showing
92 changed files
with
1,749 additions
and
745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,11 +46,19 @@ FEATHERS_AUTH_SECRET= | |
EDIT_TOKEN_SALT= | ||
|
||
|
||
# Time zone for both frontend and backend. | ||
APP_TIMEZONE=Europe/Helsinki | ||
|
||
|
||
# Mail settings | ||
|
||
# Mail sender | ||
MAIL_FROM=<[email protected]> | ||
|
||
# Default mail language. Mostly useful for the "promoted from queue" emails when they were created before | ||
# a version supporting language detection. | ||
MAIL_DEFAULT_LANG=fi | ||
|
||
# SMTP server host and credentials, if using direct SMTP. | ||
SMTP_HOST='' | ||
SMTP_PORT=587 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
extends ../layout.pug | ||
|
||
block mainContent | ||
div.content-block | ||
p.bodyText #{event.verificationEmail} | ||
div.content-block | ||
p.bodyText Event details: | ||
ul | ||
li #[strong Event:] #{event.title} | ||
li #[strong Location:] #{event.location} | ||
if date | ||
li #[strong Time:] #{date} | ||
div.content-block | ||
p.bodyText Signup details: | ||
ul | ||
if name | ||
li #[strong Name:] #{name} | ||
li #[strong Email:] #{email} | ||
li #[strong Quota:] #{quota} | ||
each val in answers | ||
li #[strong #{val.label}:] #{val.answer} | ||
div.content-block | ||
p.bodyText If you want to edit or cancel your signup, you can do it by clicking #[a(href=cancelLink) this link]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extends ../layout.pug | ||
|
||
block mainContent | ||
div.content-block | ||
p.bodyText Ilmomasiina admin credentials have been created for you. | ||
ul | ||
li #[strong Email:] #{email} | ||
li #[strong Password:] #{password} | ||
p.bodyText You can log in at #[a(href=siteUrl) #{siteUrl}]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
extends ../layout.pug | ||
|
||
block mainContent | ||
div.content-block | ||
p.bodyText Your signup to #{event.title} was accepted from the queue. | ||
div.content-block | ||
p.bodyText Event details: | ||
ul | ||
li #[strong Event:] #{event.title} | ||
li #[strong Location:] #{event.location} | ||
if date | ||
li #[strong Time:] #{date} | ||
div.content-block | ||
p.bodyText If you want to edit or cancel your signup, you can do it by clicking #[a(href=cancelLink) this link]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extends ../layout.pug | ||
|
||
block mainContent | ||
div.content-block | ||
p.bodyText Salasanasi Ilmomasiinaan on nollattu. | ||
ul | ||
li #[strong Sähköposti:] #{email} | ||
li #[strong Uusi salasana:] #{password} | ||
p.bodyText Voit kirjautua sisään osoitteessa #[a(href=siteUrl) #{siteUrl}]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
extends ../layout.pug | ||
|
||
block mainContent | ||
div.content-block | ||
p.bodyText #{event.verificationEmail} | ||
div.content-block | ||
p.bodyText Tapahtuman tiedot: | ||
ul | ||
li #[strong Tapahtuma:] #{event.title} | ||
li #[strong Sijainti:] #{event.location} | ||
if date | ||
li #[strong Aika:] #{date} | ||
div.content-block | ||
p.bodyText Ilmoittautumisesi tiedot: | ||
ul | ||
if name | ||
li #[strong Nimi:] #{name} | ||
li #[strong Sähköposti:] #{email} | ||
li #[strong Kiintiö:] #{quota} | ||
each val in answers | ||
li #[strong #{val.label}:] #{val.answer} | ||
div.content-block | ||
p.bodyText Mikäli haluat muokata tai perua ilmoittautumisesi, voit tehdä sen painamalla tätä #[a(href=cancelLink) linkkiä]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extends ../layout.pug | ||
|
||
block mainContent | ||
div.content-block | ||
p.bodyText Sinulle on luotu admin-tunnukset Ilmomasiinaan. | ||
ul | ||
li #[strong Sähköposti:] #{email} | ||
li #[strong Salasana:] #{password} | ||
p.bodyText Voit kirjautua sisään osoitteessa #[a(href=siteUrl) #{siteUrl}]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
extends ../layout.pug | ||
|
||
block mainContent | ||
div.content-block | ||
p.bodyText Olet päässyt mukaan tapahtumaan #{event.title} varasijalta. | ||
div.content-block | ||
p.bodyText Tapahtuman tiedot: | ||
ul | ||
li #[strong Tapahtuma:] #{event.title} | ||
li #[strong Sijainti:] #{event.location} | ||
if date | ||
li #[strong Aika:] #{date} | ||
div.content-block | ||
p.bodyText Mikäli haluat muokata tai perua ilmoittautumisesi, voit tehdä sen painamalla tätä #[a(href=cancelLink) linkkiä]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extends ../layout.pug | ||
|
||
block mainContent | ||
div.content-block | ||
p.bodyText Your password for Ilmomasiina has been reset. | ||
ul | ||
li #[strong Email:] #{email} | ||
li #[strong New password:] #{password} | ||
p.bodyText You can log in at #[a(href=siteUrl) #{siteUrl}]. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/ilmomasiina-backend/emails/resetPassword/html.pug
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import i18n from 'i18next'; | ||
|
||
import config from './config'; | ||
import * as en from './locales/en.json'; | ||
import * as fi from './locales/fi.json'; | ||
|
||
i18n.init({ | ||
lng: config.mailDefaultLang, | ||
fallbackLng: config.mailDefaultLang, | ||
|
||
resources: { | ||
fi, | ||
en, | ||
}, | ||
}); | ||
|
||
export default i18n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"translation": { | ||
"dateFormat.general": "DD.MM.YYYY HH:mm", | ||
"emails.confirmation.subject": "Edit confirmation: {{event}}", | ||
"emails.editConfirmation.subject": "Signup confirmation: {{event}}", | ||
"emails.newUser.subject": "User created for Ilmomasiina", | ||
"emails.promotedFromQueue.subject": "You got into {{event}} from the queue", | ||
"emails.resetPassword.subject": "Your Ilmomasiina password has been reset" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"translation": { | ||
"dateFormat.general": "DD.MM.YYYY HH:mm", | ||
"emails.confirmation.subject": "Muokkausvahvistus: {{event}}", | ||
"emails.editConfirmation.subject": "Ilmoittautumisvahvistus: {{event}}", | ||
"emails.newUser.subject": "Käyttäjätunnukset Ilmomasiinaan", | ||
"emails.promotedFromQueue.subject": "Pääsit varasijalta tapahtumaan {{event}}", | ||
"emails.resetPassword.subject": "Salasanasi Ilmomasiinaan on nollattu" | ||
} | ||
} |
Oops, something went wrong.