From 51f7728c17c1a1aff6e29ca32d2bfabd29999ec7 Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Fri, 6 Mar 2026 15:17:55 -0300 Subject: [PATCH] chore: fix translation strings (#2994) --- .../AccountMenu/ConfirmPassword.tsx | 19 ++++++++++++++++--- .../Account/Subscription/Subscription.tsx | 4 ++-- .../PurchaseFlow/Panes/CreateAccount.tsx | 18 ++++++++++++------ .../Components/PurchaseFlow/Panes/SignIn.tsx | 15 +++++++-------- .../javascripts/Components/Table/Table.tsx | 12 ++++++------ 5 files changed, 43 insertions(+), 25 deletions(-) diff --git a/packages/web/src/javascripts/Components/AccountMenu/ConfirmPassword.tsx b/packages/web/src/javascripts/Components/AccountMenu/ConfirmPassword.tsx index bcb518af4..77ef5cdae 100644 --- a/packages/web/src/javascripts/Components/AccountMenu/ConfirmPassword.tsx +++ b/packages/web/src/javascripts/Components/AccountMenu/ConfirmPassword.tsx @@ -166,9 +166,22 @@ const ConfirmPassword: FunctionComponent = ({ setMenuPane, email, passwor const confirmPasswordForm = ( <>
- {c('Info').jt`Because your notes are encrypted using your password, ${( - Standard Notes does not have a password reset option - )}. If you forget your password, you will permanently lose access to your data.`} + { + // translator: Full sentence: "Because your notes are encrypted using your password, Standard Notes does not have a password reset option. If you forget your password, you will permanently lose access to your data." + c('Info').t`Because your notes are encrypted using your password,` + }{' '} + { + + { + // translator: Full sentence: "Because your notes are encrypted using your password, Standard Notes does not have a password reset option. If you forget your password, you will permanently lose access to your data." + c('Info').t`Standard Notes does not have a password reset option` + } + + } + { + // translator: Full sentence: "Because your notes are encrypted using your password, Standard Notes does not have a password reset option. If you forget your password, you will permanently lose access to your data." + c('Info').t`. If you forget your password, you will permanently lose access to your data.` + }
{!isRegistering && ( diff --git a/packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/Subscription.tsx b/packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/Subscription.tsx index f42e172e9..55213a0c7 100644 --- a/packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/Subscription.tsx +++ b/packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/Subscription.tsx @@ -6,12 +6,12 @@ import { FunctionComponent, useEffect, useState } from 'react' import PreferencesGroup from '@/Components/Preferences/PreferencesComponents/PreferencesGroup' import PreferencesSegment from '@/Components/Preferences/PreferencesComponents/PreferencesSegment' import { useApplication } from '@/Components/ApplicationProvider' -import { SubscriptionManagerEvent, Subscription } from '@standardnotes/snjs' +import { SubscriptionManagerEvent, Subscription as SubscriptionType } from '@standardnotes/snjs' const Subscription: FunctionComponent = () => { const application = useApplication() - const [onlineSubscription, setOnlineSubscription] = useState( + const [onlineSubscription, setOnlineSubscription] = useState( application.subscriptionController.onlineSubscription, ) diff --git a/packages/web/src/javascripts/Components/PurchaseFlow/Panes/CreateAccount.tsx b/packages/web/src/javascripts/Components/PurchaseFlow/Panes/CreateAccount.tsx index 76f1b8db2..47698cf2d 100644 --- a/packages/web/src/javascripts/Components/PurchaseFlow/Panes/CreateAccount.tsx +++ b/packages/web/src/javascripts/Components/PurchaseFlow/Panes/CreateAccount.tsx @@ -198,10 +198,14 @@ const CreateAccount: FunctionComponent = ({ application }) => {
- // translator: Full sentence: "Create your free account" -

{c('Title').t`Create your free account`}

- // translator: Full sentence: "Create your free account to continue to Standard Notes." -
{c('Info').t`to continue to Standard Notes.`}
+ { + // translator: Full sentence: "Create your free account" +

{c('Title').t`Create your free account`}

+ } + { + // translator: Full sentence: "Create your free account to continue to Standard Notes." +
{c('Info').t`to continue to Standard Notes.`}
+ } {captchaURL ? captchaIframe : CreateAccountForm}
@@ -210,8 +214,10 @@ const CreateAccount: FunctionComponent = ({ application }) => { disabled={isCreatingAccount} className="mb-2 flex cursor-pointer items-start border-0 bg-default p-0 font-medium text-info hover:underline" > - // translator: "Instead" here refers to "instead of creating an account" - {c('Action').t`Sign in instead`} + { + // translator: "Instead" here refers to "instead of creating an account" + c('Action').t`Sign in instead` + } {!application.isNativeIOS() && (
diff --git a/packages/web/src/javascripts/Components/Table/Table.tsx b/packages/web/src/javascripts/Components/Table/Table.tsx index 1175398bc..08e3fda88 100644 --- a/packages/web/src/javascripts/Components/Table/Table.tsx +++ b/packages/web/src/javascripts/Components/Table/Table.tsx @@ -3,7 +3,7 @@ import { KeyboardKey } from '@standardnotes/ui-services' import { useCallback, useState, useRef } from 'react' import { useApplication } from '../ApplicationProvider' import Icon from '../Icon/Icon' -import { Table, TableRow } from './CommonTypes' +import { Table as TableType, TableRow as TableRowType } from './CommonTypes' function TableRow({ row, @@ -13,12 +13,12 @@ function TableRow({ handleRowContextMenu, handleActivateRow, }: { - row: TableRow + row: TableRowType index: number - canSelectRows: Table['canSelectRows'] + canSelectRows: TableType['canSelectRows'] handleRowClick: (event: React.MouseEvent, id: string) => void - handleRowContextMenu: Table['handleRowContextMenu'] - handleActivateRow: Table['handleActivateRow'] + handleRowContextMenu: TableType['handleRowContextMenu'] + handleActivateRow: TableType['handleActivateRow'] }) { const [isHovered, setIsHovered] = useState(false) const [isFocused, setIsFocused] = useState(false) @@ -96,7 +96,7 @@ const MinRowsToDisplay = 20 const PageSize = Math.ceil(document.documentElement.clientHeight / MinTableRowHeight) || MinRowsToDisplay const PageScrollThreshold = 200 -function Table({ table }: { table: Table }) { +function Table({ table }: { table: TableType }) { const application = useApplication() const [rowsToDisplay, setRowsToDisplay] = useState(PageSize)