Skip to content

Commit 50356db

Browse files
committed
Translate missing page titles
1 parent d50e58b commit 50356db

10 files changed

+93
-38
lines changed

app/views/pages/home.page.templ

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ import (
88

99
templ Home() {
1010
{{ intl := rctx.GetIntl(ctx) }}
11-
@layouts.Landing("Home") {
11+
@layouts.Landing(intl.Localize(&i18n.LocalizeConfig{
12+
DefaultMessage: &i18n.Message{
13+
ID: "Home.PageTitle",
14+
Other: "Home",
15+
},
16+
})) {
1217
<div class="hero">
1318
<div class="hero-content text-center">
1419
<div class="max-w-md">

app/views/pages/home.page_templ.go

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/views/pages/identity_select.page.templ

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ templ IdentitySelect(members []db.Member) {
1212
{{ intl := rctx.GetIntl(ctx) }}
1313
{{ space := rctx.GetSpace(ctx) }}
1414
{{ access := rctx.GetAccess(ctx) }}
15-
@layouts.Landing("Select identity") {
15+
@layouts.Landing(intl.Localize(&i18n.LocalizeConfig{
16+
DefaultMessage: &i18n.Message{
17+
ID: "Identity.Select.PageTitle",
18+
Other: "Select identity",
19+
},
20+
})) {
1621
<div class="max-w-md mx-auto py-4">
1722
<h1 class="text-2xl font-bold mb-1.5">{ space.Name }</h1>
1823
<p class="mb-4 text-sm opacity-60">

app/views/pages/identity_select.page_templ.go

Lines changed: 13 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/views/pages/spaces_new.page.templ

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ import (
99

1010
templ SpacesNew(requiresCode bool, form *forms.CreateSpace, errors forms.Errors) {
1111
{{ intl := rctx.GetIntl(ctx) }}
12-
@layouts.Landing("Create space") {
12+
@layouts.Landing(intl.Localize(&i18n.LocalizeConfig{
13+
DefaultMessage: &i18n.Message{
14+
ID: "Spaces.New.PageTitle",
15+
Other: "Create space",
16+
},
17+
})) {
1318
<div class="max-w-md mx-auto py-4">
1419
<h1 class="text-2xl font-bold mb-1.5">
1520
{ intl.Localize(&i18n.LocalizeConfig{

app/views/pages/spaces_new.page_templ.go

Lines changed: 25 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/views/pages/spaces_new_success.page.templ

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ import (
1111
templ SpacesNewSuccess() {
1212
{{ intl := rctx.GetIntl(ctx) }}
1313
{{ messages := rctx.GetFlashMessages(ctx) }}
14-
@layouts.Landing("Create space") {
14+
@layouts.Landing(intl.Localize(&i18n.LocalizeConfig{
15+
DefaultMessage: &i18n.Message{
16+
ID: "Spaces.New.PageTitle",
17+
Other: "Create space",
18+
},
19+
})) {
1520
<div class="max-w-md mx-auto py-4">
1621
<h1 class="text-2xl font-bold mb-6">
1722
{ intl.Localize(&i18n.LocalizeConfig{

0 commit comments

Comments
 (0)