Skip to content

Commit 51f7728

Browse files
authored
chore: fix translation strings (#2994)
1 parent 00ecfc4 commit 51f7728

5 files changed

Lines changed: 43 additions & 25 deletions

File tree

packages/web/src/javascripts/Components/AccountMenu/ConfirmPassword.tsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,22 @@ const ConfirmPassword: FunctionComponent<Props> = ({ setMenuPane, email, passwor
166166
const confirmPasswordForm = (
167167
<>
168168
<div className="mb-3 px-3 text-sm">
169-
{c('Info').jt`Because your notes are encrypted using your password, ${(
170-
<span className="text-danger">Standard Notes does not have a password reset option</span>
171-
)}. If you forget your password, you will permanently lose access to your data.`}
169+
{
170+
// 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."
171+
c('Info').t`Because your notes are encrypted using your password,`
172+
}{' '}
173+
{
174+
<span className="text-danger">
175+
{
176+
// 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."
177+
c('Info').t`Standard Notes does not have a password reset option`
178+
}
179+
</span>
180+
}
181+
{
182+
// 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."
183+
c('Info').t`. If you forget your password, you will permanently lose access to your data.`
184+
}
172185
</div>
173186
<form onSubmit={handleConfirmFormSubmit} className="mb-1 px-3">
174187
{!isRegistering && (

packages/web/src/javascripts/Components/Preferences/Panes/Account/Subscription/Subscription.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { FunctionComponent, useEffect, useState } from 'react'
66
import PreferencesGroup from '@/Components/Preferences/PreferencesComponents/PreferencesGroup'
77
import PreferencesSegment from '@/Components/Preferences/PreferencesComponents/PreferencesSegment'
88
import { useApplication } from '@/Components/ApplicationProvider'
9-
import { SubscriptionManagerEvent, Subscription } from '@standardnotes/snjs'
9+
import { SubscriptionManagerEvent, Subscription as SubscriptionType } from '@standardnotes/snjs'
1010

1111
const Subscription: FunctionComponent = () => {
1212
const application = useApplication()
1313

14-
const [onlineSubscription, setOnlineSubscription] = useState<Subscription | undefined>(
14+
const [onlineSubscription, setOnlineSubscription] = useState<SubscriptionType | undefined>(
1515
application.subscriptionController.onlineSubscription,
1616
)
1717

packages/web/src/javascripts/Components/PurchaseFlow/Panes/CreateAccount.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,14 @@ const CreateAccount: FunctionComponent<Props> = ({ application }) => {
198198
<DiamondIcon className="absolute -right-2 top-0 -z-[1] h-18 w-18 translate-x-1/2" />
199199

200200
<div className="mr-0 lg:mr-12">
201-
// translator: Full sentence: "Create your free account"
202-
<h1 className="mb-2 mt-0 text-2xl font-bold">{c('Title').t`Create your free account`}</h1>
203-
// translator: Full sentence: "Create your free account to continue to Standard Notes."
204-
<div className="mb-4 text-sm font-medium">{c('Info').t`to continue to Standard Notes.`}</div>
201+
{
202+
// translator: Full sentence: "Create your free account"
203+
<h1 className="mb-2 mt-0 text-2xl font-bold">{c('Title').t`Create your free account`}</h1>
204+
}
205+
{
206+
// translator: Full sentence: "Create your free account to continue to Standard Notes."
207+
<div className="mb-4 text-sm font-medium">{c('Info').t`to continue to Standard Notes.`}</div>
208+
}
205209
{captchaURL ? captchaIframe : CreateAccountForm}
206210
<div className="flex flex-col-reverse items-start justify-between md:flex-row md:items-center">
207211
<div className="flex flex-col">
@@ -210,8 +214,10 @@ const CreateAccount: FunctionComponent<Props> = ({ application }) => {
210214
disabled={isCreatingAccount}
211215
className="mb-2 flex cursor-pointer items-start border-0 bg-default p-0 font-medium text-info hover:underline"
212216
>
213-
// translator: "Instead" here refers to "instead of creating an account"
214-
{c('Action').t`Sign in instead`}
217+
{
218+
// translator: "Instead" here refers to "instead of creating an account"
219+
c('Action').t`Sign in instead`
220+
}
215221
</button>
216222
{!application.isNativeIOS() && (
217223
<button

packages/web/src/javascripts/Components/PurchaseFlow/Panes/SignIn.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,13 @@ const SignIn: FunctionComponent<Props> = ({ application }) => {
168168
<div className="mb-4 text-sm font-medium">{c('Info').t`to continue to Standard Notes.`}</div>
169169
{showCaptcha ? captchaIframe : signInForm}
170170
<div className="text-sm font-medium text-passive-1">
171-
{c('Info').jt`Don’t have an account yet? ${(
172-
<a
173-
className={`text-info ${isSigningIn ? 'cursor-not-allowed' : 'cursor-pointer '}`}
174-
onClick={handleCreateAccountInstead}
175-
>
176-
{c('Action').t`Create account`}
177-
</a>
178-
)}`}
171+
{c('Info').t`Don’t have an account yet?`}{' '}
172+
<a
173+
className={`text-info ${isSigningIn ? 'cursor-not-allowed' : 'cursor-pointer '}`}
174+
onClick={handleCreateAccountInstead}
175+
>
176+
{c('Action').t`Create account`}
177+
</a>
179178
</div>
180179
</div>
181180
</div>

packages/web/src/javascripts/Components/Table/Table.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { KeyboardKey } from '@standardnotes/ui-services'
33
import { useCallback, useState, useRef } from 'react'
44
import { useApplication } from '../ApplicationProvider'
55
import Icon from '../Icon/Icon'
6-
import { Table, TableRow } from './CommonTypes'
6+
import { Table as TableType, TableRow as TableRowType } from './CommonTypes'
77

88
function TableRow<Data>({
99
row,
@@ -13,12 +13,12 @@ function TableRow<Data>({
1313
handleRowContextMenu,
1414
handleActivateRow,
1515
}: {
16-
row: TableRow<Data>
16+
row: TableRowType<Data>
1717
index: number
18-
canSelectRows: Table<Data>['canSelectRows']
18+
canSelectRows: TableType<Data>['canSelectRows']
1919
handleRowClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, id: string) => void
20-
handleRowContextMenu: Table<Data>['handleRowContextMenu']
21-
handleActivateRow: Table<Data>['handleActivateRow']
20+
handleRowContextMenu: TableType<Data>['handleRowContextMenu']
21+
handleActivateRow: TableType<Data>['handleActivateRow']
2222
}) {
2323
const [isHovered, setIsHovered] = useState(false)
2424
const [isFocused, setIsFocused] = useState(false)
@@ -96,7 +96,7 @@ const MinRowsToDisplay = 20
9696
const PageSize = Math.ceil(document.documentElement.clientHeight / MinTableRowHeight) || MinRowsToDisplay
9797
const PageScrollThreshold = 200
9898

99-
function Table<Data>({ table }: { table: Table<Data> }) {
99+
function Table<Data>({ table }: { table: TableType<Data> }) {
100100
const application = useApplication()
101101

102102
const [rowsToDisplay, setRowsToDisplay] = useState<number>(PageSize)

0 commit comments

Comments
 (0)