Skip to content

Commit

Permalink
Merge pull request #5235 from mozilla/mntor-3678
Browse files Browse the repository at this point in the history
Update breach pages titles
  • Loading branch information
flozia authored Oct 24, 2024
2 parents 17e4d72 + 332fb53 commit f165008
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion locales/en/app.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ error-page-error-other-title = { $errorCode } Something went wrong
## Breach overview page

all-breaches-headline-2 = All breaches detected by { -brand-fx-monitor }
all-breaches-headline-3 = Data Breach Database
all-breaches-lead = We monitor all known data breaches to find out if your personal information was compromised. Here’s a complete list of all of the breaches that have been reported since 2007.
search-breaches = Search Breaches
Expand Down
5 changes: 4 additions & 1 deletion locales/en/breaches.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

breach-all-meta-title = { -brand-fx-monitor } - All Data Breaches
breach-all-meta-page-title = Data Breach Database — { -brand-fx-monitor }
breach-all-meta-social-title = All Breaches Detected by { -brand-fx-monitor }
breach-all-meta-social-description = Browse the complete list of known breaches detected by { -brand-fx-monitor }, then find out if your information was exposed.
# Variables:
# $company (String) - Name of the company that was breached, e.g. "PHP Freaks"
breach-detail-meta-page-title = { $company } Data Breach – { -brand-fx-monitor }
# Variables:
# $company (String) - Name of the company that was breached, e.g. "PHP Freaks"
breach-detail-meta-social-title = Were you affected by the { $company } Data Breach?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export async function generateMetadata(props: {
}

return {
title: `${l10n.getString("brand-mozilla-monitor")} - ${breach.Title}`,
title: l10n.getString("breach-detail-meta-page-title", {
company: breach.Title,
}),
twitter: {
card: "summary_large_image",
title: l10n.getString("breach-detail-meta-social-title", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const BreachIndexView = (props: Props) => {
return (
<main className={styles.wrapper}>
<header>
<h1>{l10n.getString("all-breaches-headline-2")}</h1>
<h1>{l10n.getString("all-breaches-headline-3")}</h1>
<p>{l10n.getString("all-breaches-lead")}</p>
<FilterForm
onChange={(term: string) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { BreachIndexView } from "./BreachIndexView";
export function generateMetadata() {
const l10n = getL10n();
return {
title: l10n.getString("breach-all-meta-title"),
title: l10n.getString("breach-all-meta-page-title"),
twitter: {
card: "summary_large_image",
title: l10n.getString("breach-all-meta-social-title"),
Expand Down

0 comments on commit f165008

Please sign in to comment.