Migrate more strings to translation keys (#11512)

This commit is contained in:
Michael Telatynski 2023-09-04 10:20:34 +01:00 committed by GitHub
parent ce8d07fa72
commit a94cb8fb0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 2720 additions and 2687 deletions

View file

@ -57,55 +57,55 @@ const tasks: UserOnboardingTask[] = [
{
id: "create-account",
title: _t("Create account"),
description: _t("You made it!"),
description: _t("onboarding|you_made_it"),
completed: () => true,
},
{
id: "find-friends",
title: _t("Find and invite your friends"),
description: _t("Its what youre here for, so lets get to it"),
title: _t("onboarding|find_friends"),
description: _t("onboarding|find_friends_description"),
completed: (ctx: UserOnboardingContext) => ctx.hasDmRooms,
relevant: [UseCase.PersonalMessaging, UseCase.Skip],
action: {
label: _t("Find friends"),
label: _t("onboarding|find_friends_action"),
onClick: onClickStartDm,
},
},
{
id: "find-coworkers",
title: _t("Find and invite your co-workers"),
description: _t("Get stuff done by finding your teammates"),
title: _t("onboarding|find_coworkers"),
description: _t("onboarding|get_stuff_done"),
completed: (ctx: UserOnboardingContext) => ctx.hasDmRooms,
relevant: [UseCase.WorkMessaging],
action: {
label: _t("Find people"),
label: _t("onboarding|find_people"),
onClick: onClickStartDm,
},
},
{
id: "find-community-members",
title: _t("Find and invite your community members"),
description: _t("Get stuff done by finding your teammates"),
title: _t("onboarding|find_community_members"),
description: _t("onboarding|get_stuff_done"),
completed: (ctx: UserOnboardingContext) => ctx.hasDmRooms,
relevant: [UseCase.CommunityMessaging],
action: {
label: _t("Find people"),
label: _t("onboarding|find_people"),
onClick: onClickStartDm,
},
},
{
id: "download-apps",
title: () =>
_t("Download %(brand)s", {
_t("onboarding|download_app", {
brand: SdkConfig.get("brand"),
}),
description: () =>
_t("Dont miss a thing by taking %(brand)s with you", {
_t("onboarding|download_app_description", {
brand: SdkConfig.get("brand"),
}),
completed: (ctx: UserOnboardingContext) => ctx.hasDevices,
action: {
label: _t("Download apps"),
label: _t("onboarding|download_app_action"),
onClick: (ev: ButtonEvent) => {
PosthogTrackers.trackInteraction("WebUserOnboardingTaskDownloadApps", ev);
Modal.createDialog(AppDownloadDialog, {}, "mx_AppDownloadDialog_wrapper", false, true);
@ -114,11 +114,11 @@ const tasks: UserOnboardingTask[] = [
},
{
id: "setup-profile",
title: _t("Set up your profile"),
description: _t("Make sure people know its really you"),
title: _t("onboarding|set_up_profile"),
description: _t("onboarding|set_up_profile_description"),
completed: (ctx: UserOnboardingContext) => ctx.hasAvatar,
action: {
label: _t("Your profile"),
label: _t("onboarding|set_up_profile_action"),
onClick: (ev: ButtonEvent) => {
PosthogTrackers.trackInteraction("WebUserOnboardingTaskSetupProfile", ev);
defaultDispatcher.dispatch({
@ -130,11 +130,11 @@ const tasks: UserOnboardingTask[] = [
},
{
id: "permission-notifications",
title: _t("Turn on notifications"),
description: _t("Dont miss a reply or important message"),
title: _t("onboarding|enable_notifications"),
description: _t("onboarding|enable_notifications_description"),
completed: (ctx: UserOnboardingContext) => ctx.hasNotificationsEnabled,
action: {
label: _t("Enable notifications"),
label: _t("onboarding|enable_notifications_action"),
onClick: (ev: ButtonEvent) => {
PosthogTrackers.trackInteraction("WebUserOnboardingTaskEnableNotifications", ev);
Notifier.setEnabled(true);