A11Y: add page title to account activation step (#23736)

This commit is contained in:
Kris 2023-10-02 13:54:52 -04:00 committed by GitHub
parent fe15218d8f
commit f5d4ddbff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,12 @@
import PreloadStore from "discourse/lib/preload-store"; 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) { setupController(controller) {
controller.set("accountCreated", PreloadStore.get("accountCreated")); controller.set("accountCreated", PreloadStore.get("accountCreated"));
}, },

View File

@ -2113,6 +2113,7 @@ en:
title: "Create your account" title: "Create your account"
failed: "Something went wrong, perhaps this email is already registered, try the forgot password link" failed: "Something went wrong, perhaps this email is already registered, try the forgot password link"
associate: "Already have an account? <a href='%{associate_link}'>Log In</a> to link your %{provider} account." associate: "Already have an account? <a href='%{associate_link}'>Log In</a> to link your %{provider} account."
activation_title: "Activate your account"
forgot_password: forgot_password:
title: "Password Reset" title: "Password Reset"