Skip to content

Commit

Permalink
🐞 default translation appears when switching language for the first t…
Browse files Browse the repository at this point in the history
…ime (#352) (#353)

Parent issue: sequentech/meta#315
  • Loading branch information
edulix authored Feb 13, 2024
1 parent 9b5bc13 commit 263d43d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ config:
# default template election for gui-admin
election_template: >-
{
title: $i18next('avAdmin.sidebar.newel'),
title: $i18next.t('avAdmin.sidebar.newel'),
description: 'This is the description of the election. You can add simple html like <strong>bold</strong> or <a href=\"https://sequentech.io\">links to websites</a>.\\n\\n<br><br>You need to use two br element for new paragraphs.',
authorities: ConfigService.authorities,
director: ConfigService.director,
Expand Down Expand Up @@ -773,8 +773,8 @@ config:
admin_fields: ConfigService.adminFields,
config: {
allow_user_resend: false,
msg: $i18next(ConfigService.auth_msg.msg),
subject: $i18next(
msg: $i18next.t(ConfigService.auth_msg.msg),
subject: $i18next.t(
ConfigService.auth_msg.subject,
{
name: ConfigService.organization.orgName
Expand Down
6 changes: 3 additions & 3 deletions doc/devel/auth1.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ config:
# default template election for gui-admin
election_template: >-
{
title: $i18next('avAdmin.sidebar.newel'),
title: $i18next.t('avAdmin.sidebar.newel'),
description: 'This is the description of the election. You can add simple html like <strong>bold</strong> or <a href=\"https://sequentech.io\">links to websites</a>.\\n\\n<br><br>You need to use two br element for new paragraphs.',
authorities: ConfigService.authorities,
director: ConfigService.director,
Expand Down Expand Up @@ -742,8 +742,8 @@ config:
admin_fields: ConfigService.adminFields,
config: {
allow_user_resend: false,
msg: $i18next(ConfigService.auth_msg.msg),
subject: $i18next(
msg: $i18next.t(ConfigService.auth_msg.msg),
subject: $i18next.t(
ConfigService.auth_msg.subject,
{
name: ConfigService.organization.orgName
Expand Down
6 changes: 3 additions & 3 deletions doc/devel/auth2.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ config:
# default template election for gui-admin
election_template: >-
{
title: $i18next('avAdmin.sidebar.newel'),
title: $i18next.t('avAdmin.sidebar.newel'),
description: 'This is the description of the election. You can add simple html like <strong>bold</strong> or <a href=\"https://sequentech.io\">links to websites</a>.\\n\\n<br><br>You need to use two br element for new paragraphs.',
authorities: ConfigService.authorities,
director: ConfigService.director,
Expand Down Expand Up @@ -749,8 +749,8 @@ config:
admin_fields: ConfigService.adminFields,
config: {
allow_user_resend: false,
msg: $i18next(ConfigService.auth_msg.msg),
subject: $i18next(
msg: $i18next.t(ConfigService.auth_msg.msg),
subject: $i18next.t(
ConfigService.auth_msg.subject,
{
name: ConfigService.organization.orgName
Expand Down
6 changes: 3 additions & 3 deletions doc/devel/sequent.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ config:
# default template election for gui-admin
election_template: >-
{
title: $i18next('avAdmin.sidebar.newel'),
title: $i18next.t('avAdmin.sidebar.newel'),
description: 'This is the description of the election. You can add simple html like <strong>bold</strong> or <a href=\"https://sequentech.io\">links to websites</a>.\\n\\n<br><br>You need to use two br element for new paragraphs.',
authorities: ConfigService.authorities,
director: ConfigService.director,
Expand Down Expand Up @@ -756,8 +756,8 @@ config:
admin_fields: ConfigService.adminFields,
config: {
allow_user_resend: false,
msg: $i18next(ConfigService.auth_msg.msg),
subject: $i18next(
msg: $i18next.t(ConfigService.auth_msg.msg),
subject: $i18next.t(
ConfigService.auth_msg.subject,
{
name: ConfigService.organization.orgName
Expand Down
6 changes: 3 additions & 3 deletions doc/production/config.auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ config:
# default template election for gui-admin
election_template: >-
{
title: $i18next('avAdmin.sidebar.newel'),
title: $i18next.t('avAdmin.sidebar.newel'),
description: 'This is the description of the election. You can add simple html like <strong>bold</strong> or <a href=\"https://sequentech.io\">links to websites</a>.\\n\\n<br><br>You need to use two br element for new paragraphs.',
authorities: ConfigService.authorities,
director: ConfigService.director,
Expand Down Expand Up @@ -758,8 +758,8 @@ config:
admin_fields: ConfigService.adminFields,
config: {
allow_user_resend: false,
msg: $i18next(ConfigService.auth_msg.msg),
subject: $i18next(
msg: $i18next.t(ConfigService.auth_msg.msg),
subject: $i18next.t(
ConfigService.auth_msg.subject,
{
name: ConfigService.organization.orgName
Expand Down
6 changes: 3 additions & 3 deletions doc/production/config.master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ config:
# default template election for gui-admin
election_template: >-
{
title: $i18next('avAdmin.sidebar.newel'),
title: $i18next.t('avAdmin.sidebar.newel'),
description: 'This is the description of the election. You can add simple html like <strong>bold</strong> or <a href=\"https://sequentech.io\">links to websites</a>.\\n\\n<br><br>You need to use two br element for new paragraphs.',
authorities: ConfigService.authorities,
director: ConfigService.director,
Expand Down Expand Up @@ -758,8 +758,8 @@ config:
admin_fields: ConfigService.adminFields,
config: {
allow_user_resend: false,
msg: $i18next(ConfigService.auth_msg.msg),
subject: $i18next(
msg: $i18next.t(ConfigService.auth_msg.msg),
subject: $i18next.t(
ConfigService.auth_msg.subject,
{
name: ConfigService.organization.orgName
Expand Down

0 comments on commit 263d43d

Please sign in to comment.