Skip to content

Commit

Permalink
refactor(telemtry): rename language_{redirect => remember}
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Sep 25, 2024
1 parent 299dfc1 commit 3bf6894
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/telemetry/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ export const BASELINE = Object.freeze({

export const CLIENT_SIDE_NAVIGATION = "client_side_nav";
export const LANGUAGE = "language";
export const LANGUAGE_REDIRECT = "language_redirect";
export const LANGUAGE_REMEMBER = "language_remember";
export const THEME_SWITCHER = "theme_switcher";
export const SURVEY = "survey";
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Submenu } from "../../../molecules/submenu";
import "./index.scss";
import { DropdownMenu, DropdownMenuWrapper } from "../../../molecules/dropdown";
import { useLocale } from "../../../../hooks";
import { LANGUAGE, LANGUAGE_REDIRECT } from "../../../../telemetry/constants";
import { LANGUAGE, LANGUAGE_REMEMBER } from "../../../../telemetry/constants";
import {
deleteCookie,
getCookieValue,
Expand Down Expand Up @@ -150,7 +150,7 @@ function LocaleRedirectSetting() {
deleteCookie(PREFERRED_LOCALE_COOKIE_NAME);
setPreferredLocale(undefined);
}
gleanClick(`${LANGUAGE_REDIRECT}: ${locale} -> ${Number(newValue)}`);
gleanClick(`${LANGUAGE_REMEMBER}: ${locale} -> ${Number(newValue)}`);
}

return (
Expand Down

0 comments on commit 3bf6894

Please sign in to comment.