From f5d4ddbff5ec2b7fad86967ac68ad51e4d30d522 Mon Sep 17 00:00:00 2001 From: Kris Date: Mon, 2 Oct 2023 13:54:52 -0400 Subject: [PATCH] A11Y: add page title to account activation step (#23736) --- .../javascripts/discourse/app/routes/account-created.js | 9 +++++++-- config/locales/client.en.yml | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/routes/account-created.js b/app/assets/javascripts/discourse/app/routes/account-created.js index 04944f21959..e680085da31 100644 --- a/app/assets/javascripts/discourse/app/routes/account-created.js +++ b/app/assets/javascripts/discourse/app/routes/account-created.js @@ -1,7 +1,12 @@ import PreloadStore from "discourse/lib/preload-store"; -import Route from "@ember/routing/route"; +import DiscourseRoute from "discourse/routes/discourse"; +import I18n from "I18n"; + +export default DiscourseRoute.extend({ + titleToken() { + return I18n.t("create_account.activation_title"); + }, -export default Route.extend({ setupController(controller) { controller.set("accountCreated", PreloadStore.get("accountCreated")); }, diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index c9f20d9dcc9..a30c26d99f0 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -2113,6 +2113,7 @@ en: title: "Create your account" failed: "Something went wrong, perhaps this email is already registered, try the forgot password link" associate: "Already have an account? Log In to link your %{provider} account." + activation_title: "Activate your account" forgot_password: title: "Password Reset"