Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: localize

Ammar Ahmeddfe7b2e4a66f
diff --git a/apps/mobile/app/components/app-lock-overlay/index.tsx b/apps/mobile/app/components/app-lock-overlay/index.tsx
index a310ee667..7f23c6b95 100644
--- a/apps/mobile/app/components/app-lock-overlay/index.tsx
+++ b/apps/mobile/app/components/app-lock-overlay/index.tsx
@@ -279,13 +279,13 @@ const AppLockedOverlay = () => {
keyboardType={
appLockHasPasswordSecurity ? keyboardType : "default"
}
- placeholder={`Enter ${
+ placeholder={
appLockHasPasswordSecurity
- ? `app lock ${
- keyboardType === "numeric" ? "pin" : "password"
- }`
- : "account password"
- }`}
+ ? keyboardType === "numeric"
+ ? strings.enterApplockPassword()
+ : strings.enterApplockPin()
+ : strings.enterAccountPassword()
+ }
onChangeText={(v) => (password.current = v)}
onSubmit={() => {
onSubmit();
diff --git a/apps/mobile/app/components/attachments/index.tsx b/apps/mobile/app/components/attachments/index.tsx
index aacde4d98..225400c5a 100644
--- a/apps/mobile/app/components/attachments/index.tsx
+++ b/apps/mobile/app/components/attachments/index.tsx
@@ -415,7 +415,7 @@ export const AttachmentDialog = ({
>
<Seperator />
<Input
- placeholder="Filter attachments by filename, type or hash"
+ placeholder={strings.filterAttachments()}
onChangeText={onChangeText}
onSubmit={() => {
onChangeText(attachmentSearchValue.current as string);
@@ -555,9 +555,7 @@ export const AttachmentDialog = ({
size={60}
color={colors.secondary.icon}
/>
- <Paragraph>
- {note ? "No attachments on this note" : "No attachments"}
- </Paragraph>
+ <Paragraph>{strings.noAttachments()}</Paragraph>
</>
)}
</View>
diff --git a/apps/mobile/app/components/auth/change-password.js b/apps/mobile/app/components/auth/change-password.js
index 4bf8f15e1..bab16f0a8 100644
--- a/apps/mobile/app/components/auth/change-password.js
+++ b/apps/mobile/app/components/auth/change-password.js
@@ -117,7 +117,7 @@ export const ChangePassword = () => {
autoComplete="password"
autoCapitalize="none"
autoCorrect={false}
- placeholder="Old Password"
+ placeholder={strings.oldPassword()}
/>
<Input
@@ -126,14 +126,14 @@ export const ChangePassword = () => {
password.current = value;
}}
onErrorCheck={(e) => setError(e)}
- returnKeyLabel="Next"
+ returnKeyLabel={strings.next()}
returnKeyType="next"
secureTextEntry
validationType="password"
autoComplete="password"
autoCapitalize="none"
autoCorrect={false}
- placeholder="New password"
+ placeholder={strings.newPassword()}
/>
<Notice text={strings.changePasswordNotice()} type="alert" />
diff --git a/apps/mobile/app/components/auth/forgot-password.js b/apps/mobile/app/components/auth/forgot-password.js
index 1a5f5ab6e..942784f96 100644
--- a/apps/mobile/app/components/auth/forgot-password.js
+++ b/apps/mobile/app/components/auth/forgot-password.js
@@ -151,14 +151,14 @@ export const ForgotPassword = () => {
}}
defaultValue={email.current}
onErrorCheck={(e) => setError(e)}
- returnKeyLabel="Next"
+ returnKeyLabel={strings.next()}
returnKeyType="next"
autoComplete="email"
validationType="email"
autoCorrect={false}
autoCapitalize="none"
- errorMessage="Email is invalid"
- placeholder="Email"
+ errorMessage={strings.emailInvalid()}
+ placeholder={strings.email()}
onSubmit={() => {}}
/>
diff --git a/apps/mobile/app/components/auth/login.js b/apps/mobile/app/components/auth/login.js
index edfebb60b..be83699a6 100644
--- a/apps/mobile/app/components/auth/login.js
+++ b/apps/mobile/app/components/auth/login.js
@@ -179,8 +179,8 @@ export const Login = ({ changeMode }) => {
validationType="email"
autoCorrect={false}
autoCapitalize="none"
- errorMessage="Email is invalid"
- placeholder="Enter your email"
+ errorMessage={strings.emailInvalid()}
+ placeholder={strings.email()}
defaultValue={email.current}
editable={step === LoginSteps.emailAuth && !loading}
onSubmit={() => {
@@ -200,13 +200,13 @@ export const Login = ({ changeMode }) => {
password.current = value;
}}
testID="input.password"
- returnKeyLabel="Done"
+ returnKeyLabel={strings.done()}
returnKeyType="done"
secureTextEntry
autoComplete="password"
autoCapitalize="none"
autoCorrect={false}
- placeholder="Password"
+ placeholder={strings.password()}
marginBottom={0}
editable={!loading}
defaultValue={password.current}
diff --git a/apps/mobile/app/components/auth/session-expired.js b/apps/mobile/app/components/auth/session-expired.js
index b0fe7ffee..400961270 100644
--- a/apps/mobile/app/components/auth/session-expired.js
+++ b/apps/mobile/app/components/auth/session-expired.js
@@ -211,13 +211,13 @@ export const SessionExpired = () => {
onChangeText={(value) => {
password.current = value;
}}
- returnKeyLabel="Next"
+ returnKeyLabel={strings.done()}
returnKeyType="next"
secureTextEntry
autoComplete="password"
autoCapitalize="none"
autoCorrect={false}
- placeholder="Password"
+ placeholder={strings.password()}
onSubmit={() => login()}
/>
) : null}
diff --git a/apps/mobile/app/components/auth/signup.js b/apps/mobile/app/components/auth/signup.js
index a37819d76..15f9991b9 100644
--- a/apps/mobile/app/components/auth/signup.js
+++ b/apps/mobile/app/components/auth/signup.js
@@ -176,14 +176,14 @@ export const Signup = ({ changeMode, trial }) => {
}}
testID="input.email"
onErrorCheck={(e) => setError(e)}
- returnKeyLabel="Next"
+ returnKeyLabel={strings.next()}
returnKeyType="next"
autoComplete="email"
validationType="email"
autoCorrect={false}
autoCapitalize="none"
- errorMessage="Email is invalid"
- placeholder="Email"
+ errorMessage={strings.email()}
+ placeholder={strings.email()}
onSubmit={() => {
passwordInputRef.current?.focus();
}}
@@ -196,14 +196,14 @@ export const Signup = ({ changeMode, trial }) => {
}}
testID="input.password"
onErrorCheck={(e) => setError(e)}
- returnKeyLabel="Next"
+ returnKeyLabel={strings.next()}
returnKeyType="next"
secureTextEntry
autoComplete="password"
autoCapitalize="none"
validationType="password"
autoCorrect={false}
- placeholder="Password"
+ placeholder={strings.password()}
onSubmit={() => {
confirmPasswordInputRef.current?.focus();
}}
@@ -216,7 +216,7 @@ export const Signup = ({ changeMode, trial }) => {
}}
testID="input.confirmPassword"
onErrorCheck={(e) => setError(e)}
- returnKeyLabel="Signup"
+ returnKeyLabel={strings.done()}
returnKeyType="done"
secureTextEntry
autoComplete="password"
@@ -224,7 +224,7 @@ export const Signup = ({ changeMode, trial }) => {
autoCorrect={false}
validationType="confirmPassword"
customValidator={() => password.current}
- placeholder="Confirm password"
+ placeholder={strings.confirmPassword()}
marginBottom={12}
onSubmit={signup}
/>
diff --git a/apps/mobile/app/components/auth/two-factor.js b/apps/mobile/app/components/auth/two-factor.js
index 5f3670e47..c9a9b0f14 100644
--- a/apps/mobile/app/components/auth/two-factor.js
+++ b/apps/mobile/app/components/auth/two-factor.js
@@ -241,9 +241,9 @@ const TwoFactorVerification = ({ onMfaLogin, mfaInfo }) => {
/>
<Button
- title={
- strings["2faCodeSecondaryMethodText"][currentMethod.method]
- }
+ title={strings["2faCodeSecondaryMethodText"][
+ currentMethod.method
+ ]()}
type="plain"
onPress={onRequestSecondaryMethod}
height={30}
diff --git a/apps/mobile/app/components/container/floating-button.tsx b/apps/mobile/app/components/container/floating-button.tsx
index 3b224cab5..22146e3e7 100644
--- a/apps/mobile/app/components/container/floating-button.tsx
+++ b/apps/mobile/app/components/container/floating-button.tsx
@@ -34,11 +34,9 @@ import { useSelectionStore } from "../../stores/use-selection-store";
import { useSettingStore } from "../../stores/use-setting-store";
import { getElevationStyle } from "../../utils/elevation";
import { SIZE, normalize } from "../../utils/size";
-import NativeTooltip from "../../utils/tooltip";
import { Pressable } from "../ui/pressable";
interface FloatingButtonProps {
- title: string;
onPress: () => void;
color?: string;
shouldShow?: boolean;
@@ -46,7 +44,6 @@ interface FloatingButtonProps {
}
const FloatingButton = ({
- title,
onPress,
color,
alwaysVisible = false
@@ -126,11 +123,6 @@ const FloatingButton = ({
...getElevationStyle(5),
borderRadius: 100
}}
- onLongPress={(event) => {
- if (title) {
- NativeTooltip.show(event, title, NativeTooltip.POSITIONS.LEFT);
- }
- }}
onPress={onPress}
>
<View
diff --git a/apps/mobile/app/components/dialogs/applock-password/index.tsx b/apps/mobile/app/components/dialogs/applock-password/index.tsx
index fc5c29bac..878411408 100644
--- a/apps/mobile/app/components/dialogs/applock-password/index.tsx
+++ b/apps/mobile/app/components/dialogs/applock-password/index.tsx
@@ -143,11 +143,15 @@ export const AppLockPassword = () => {
}}
defaultValue={values.current.currentPassword}
autoComplete="password"
- returnKeyLabel="Next"
+ returnKeyLabel={strings.next()}
keyboardType={keyboardType === "pin" ? "number-pad" : "default"}
returnKeyType="next"
secureTextEntry={secureTextEntry}
- placeholder={`Current ${keyboardType}`}
+ placeholder={
+ keyboardType === "pin"
+ ? strings.currentPin()
+ : strings.currentPassword()
+ }
/>
) : null}
@@ -165,7 +169,9 @@ export const AppLockPassword = () => {
keyboardType === "pin" && !accountPass ? "number-pad" : "default"
}
autoComplete="password"
- returnKeyLabel={mode !== "remove" ? "Next" : "Remove"}
+ returnKeyLabel={
+ mode !== "remove" ? strings.next() : strings.remove()
+ }
returnKeyType={mode !== "remove" ? "next" : "done"}
secureTextEntry={secureTextEntry}
buttonLeft={
@@ -192,10 +198,14 @@ export const AppLockPassword = () => {
}
placeholder={
accountPass
- ? "Account password"
+ ? strings.enterAccountPassword()
: mode === "change"
- ? `New ${keyboardType}`
- : `${keyboardType === "pin" ? "Pin" : "Password"}`
+ ? keyboardType === "pin"
+ ? strings.newPin()
+ : strings.newPassword()
+ : `${
+ keyboardType === "pin" ? strings.pin() : strings.password()
+ }`
}
/>
@@ -214,10 +224,14 @@ export const AppLockPassword = () => {
customValidator={() => values.current.password || ""}
validationType="confirmPassword"
autoComplete="password"
- returnKeyLabel="Done"
+ returnKeyLabel={strings.done()}
returnKeyType="done"
secureTextEntry={secureTextEntry}
- placeholder={`Confirm ${keyboardType}`}
+ placeholder={
+ keyboardType === "pin"
+ ? strings.confirmPin()
+ : strings.confirmPassword()
+ }
/>
) : null}
diff --git a/apps/mobile/app/components/dialogs/color-picker/index.tsx b/apps/mobile/app/components/dialogs/color-picker/index.tsx
index af8f26a5a..d6b29f2fd 100644
--- a/apps/mobile/app/components/dialogs/color-picker/index.tsx
+++ b/apps/mobile/app/components/dialogs/color-picker/index.tsx
@@ -149,7 +149,7 @@ const ColorPicker = ({
}}
testID="color-title-input"
defaultValue={title.current}
- placeholder={title.current || "Color title"}
+ placeholder={title.current || strings.colorTitle()}
/>
<Button
diff --git a/apps/mobile/app/components/dialogs/vault/index.js b/apps/mobile/app/components/dialogs/vault/index.js
index a1f6cc556..fb006cfde 100644
--- a/apps/mobile/app/components/dialogs/vault/index.js
+++ b/apps/mobile/app/components/dialogs/vault/index.js
@@ -713,10 +713,16 @@ export class VaultDialog extends Component {
: this.onPress;
}}
autoComplete="password"
- returnKeyLabel={changePassword ? "Next" : this.state.title}
+ returnKeyLabel={
+ changePassword ? strings.next() : this.state.title
+ }
returnKeyType={changePassword ? "next" : "done"}
secureTextEntry
- placeholder={changePassword ? "Current password" : "Password"}
+ placeholder={
+ changePassword
+ ? strings.currentPassword()
+ : strings.password()
+ }
/>
{!this.state.biometricUnlock ||
@@ -773,7 +779,7 @@ export class VaultDialog extends Component {
returnKeyLabel="Change"
returnKeyType="done"
secureTextEntry
- placeholder={"New password"}
+ placeholder={strings.newPassword()}
/>
</>
) : null}
@@ -788,13 +794,13 @@ export class VaultDialog extends Component {
this.password = value;
}}
autoComplete="password"
- returnKeyLabel="Next"
+ returnKeyLabel={strings.next()}
returnKeyType="next"
secureTextEntry
onSubmit={() => {
this.confirmPassRef.current?.focus();
}}
- placeholder="Password"
+ placeholder={strings.password()}
/>
<Input
@@ -823,7 +829,7 @@ export class VaultDialog extends Component {
}
}}
onSubmit={this.onPress}
- placeholder="Confirm password"
+ placeholder={strings.confirmPassword()}
/>
</View>
) : null}
diff --git a/apps/mobile/app/components/list/empty.tsx b/apps/mobile/app/components/list/empty.tsx
index 529db6fdb..726fe29bc 100644
--- a/apps/mobile/app/components/list/empty.tsx
+++ b/apps/mobile/app/components/list/empty.tsx
@@ -87,8 +87,8 @@ export const Empty = React.memo(function Empty({
color={color}
tip={
screen !== "Search"
- ? tip || ({ text: placeholder?.paragraph } as TTip)
- : ({ text: placeholder?.paragraph } as TTip)
+ ? tip || ({ text: () => placeholder?.paragraph } as TTip)
+ : ({ text: () => placeholder?.paragraph } as TTip)
}
style={{
backgroundColor: "transparent",
diff --git a/apps/mobile/app/components/sheets/add-notebook/index.tsx b/apps/mobile/app/components/sheets/add-notebook/index.tsx
index 22174039e..0189106f8 100644
--- a/apps/mobile/app/components/sheets/add-notebook/index.tsx
+++ b/apps/mobile/app/components/sheets/add-notebook/index.tsx
@@ -136,7 +136,7 @@ export const AddNotebookSheet = ({
titleInput?.current?.focus();
});
}}
- placeholder="Enter notebook title"
+ placeholder={strings.enterNotebookTitle()}
onSubmit={() => {
descriptionInput.current?.focus();
}}
@@ -151,8 +151,8 @@ export const AddNotebookSheet = ({
onChangeText={(value) => {
description.current = value;
}}
- placeholder="Enter notebook description"
- returnKeyLabel="Next"
+ placeholder={strings.enterNotebookDescription()}
+ returnKeyLabel={strings.next()}
returnKeyType="next"
defaultValue={notebook ? notebook.description : ""}
/>
diff --git a/apps/mobile/app/components/sheets/add-to/index.tsx b/apps/mobile/app/components/sheets/add-to/index.tsx
index a21e9c960..d8061781c 100644
--- a/apps/mobile/app/components/sheets/add-to/index.tsx
+++ b/apps/mobile/app/components/sheets/add-to/index.tsx
@@ -267,7 +267,7 @@ const MoveNoteSheet = ({
}}
>
<Input
- placeholder="Search notebooks...."
+ placeholder={strings.searchNotebooks()}
button={{
icon: "plus",
onPress: () => {
diff --git a/apps/mobile/app/components/sheets/change-email/index.tsx b/apps/mobile/app/components/sheets/change-email/index.tsx
index e8155366d..ecdfd5551 100644
--- a/apps/mobile/app/components/sheets/change-email/index.tsx
+++ b/apps/mobile/app/components/sheets/change-email/index.tsx
@@ -115,7 +115,7 @@ export const ChangeEmail = ({ close }: ChangeEmailProps) => {
<>
<Input
fwdRef={emailInputRef}
- placeholder="Enter your new email"
+ placeholder={strings.enterNewEmail()}
validationType="email"
onErrorCheck={(e) => setError(e)}
onChangeText={(email) => {
@@ -124,7 +124,7 @@ export const ChangeEmail = ({ close }: ChangeEmailProps) => {
/>
<Input
fwdRef={passInputRef}
- placeholder="Enter your account password"
+ placeholder={strings.enterAccountPassword()}
secureTextEntry
onChangeText={(pass) => {
emailChangeData.current.password = pass;
@@ -135,7 +135,7 @@ export const ChangeEmail = ({ close }: ChangeEmailProps) => {
<>
<Input
fwdRef={codeInputRef}
- placeholder="Enter verification code sent to your new email"
+ placeholder={strings.verifyNewEmail()}
onChangeText={(code) => {
emailChangeData.current.code = code;
}}
diff --git a/apps/mobile/app/components/sheets/github/issue.js b/apps/mobile/app/components/sheets/github/issue.js
index 3b9dd55d1..ad9cabec3 100644
--- a/apps/mobile/app/components/sheets/github/issue.js
+++ b/apps/mobile/app/components/sheets/github/issue.js
@@ -141,7 +141,7 @@ Logged in: ${user ? "yes" : "no"}`,
<Seperator half />
<TextInput
- placeholder="Title"
+ placeholder={strings.title()}
onChangeText={(v) => (title.current = v)}
defaultValue={title.current}
style={{
@@ -160,13 +160,7 @@ Logged in: ${user ? "yes" : "no"}`,
<TextInput
ref={bodyRef}
multiline
- placeholder={`Tell us more about the issue you are facing.
-
-For example:
-- What were you trying to do in the app?
-- What did you expect to happen?
-- Steps to reproduce the issue
-- Things you have tried etc.`}
+ placeholder={strings.issuePlaceholder()}
numberOfLines={5}
textAlignVertical="top"
onChangeText={(v) => (body.current = v)}
diff --git a/apps/mobile/app/components/sheets/link-note/index.tsx b/apps/mobile/app/components/sheets/link-note/index.tsx
index 272fa9a1a..239dfbfa1 100644
--- a/apps/mobile/app/components/sheets/link-note/index.tsx
+++ b/apps/mobile/app/components/sheets/link-note/index.tsx
@@ -238,8 +238,8 @@ export default function LinkNote(props: {
<Input
placeholder={
selectedNote
- ? "Search a section of a note to link to"
- : "Search a note to link to"
+ ? strings.searchSectionToLinkPlaceholder()
+ : strings.searchNoteToLinkPlaceholder()
}
containerStyle={{
width: "100%"
diff --git a/apps/mobile/app/components/sheets/manage-tags/index.tsx b/apps/mobile/app/components/sheets/manage-tags/index.tsx
index a14334e2a..1ad2d3a62 100644
--- a/apps/mobile/app/components/sheets/manage-tags/index.tsx
+++ b/apps/mobile/app/components/sheets/manage-tags/index.tsx
@@ -271,7 +271,7 @@ const ManageTagsSheet = (props: {
onSubmit={() => {
onSubmit();
}}
- placeholder="Search or add a tag"
+ placeholder={strings.searchForTags()}
/>
{query && !queryExists ? (
diff --git a/apps/mobile/app/components/sheets/move-notes/movenote.tsx b/apps/mobile/app/components/sheets/move-notes/movenote.tsx
index 35ac27e55..be32c8d8b 100644
--- a/apps/mobile/app/components/sheets/move-notes/movenote.tsx
+++ b/apps/mobile/app/components/sheets/move-notes/movenote.tsx
@@ -140,7 +140,7 @@ export const MoveNotes = ({
onChangeText={(v) => {
loadNotes(v && v.trim() === "" ? undefined : v.trim());
}}
- placeholder="Search a note"
+ placeholder={strings.searchANote()}
/>
<FlashList
diff --git a/apps/mobile/app/components/sheets/publish-note/index.tsx b/apps/mobile/app/components/sheets/publish-note/index.tsx
index a03a291ce..8d82dc873 100644
--- a/apps/mobile/app/components/sheets/publish-note/index.tsx
+++ b/apps/mobile/app/components/sheets/publish-note/index.tsx
@@ -301,7 +301,7 @@ const PublishNoteSheet = ({
blurOnSubmit
secureTextEntry
defaultValue={passwordValue.current}
- placeholder="Enter Password"
+ placeholder={strings.enterPassword()}
/>
<Seperator half />
</>
diff --git a/apps/mobile/app/components/sheets/reminder/index.tsx b/apps/mobile/app/components/sheets/reminder/index.tsx
index f03ebedc5..f16aee6fa 100644
--- a/apps/mobile/app/components/sheets/reminder/index.tsx
+++ b/apps/mobile/app/components/sheets/reminder/index.tsx
@@ -242,7 +242,7 @@ export default function ReminderSheet({
<Input
fwdRef={titleRef}
defaultValue={reminder?.title || referencedItem?.title}
- placeholder="Remind me of..."
+ placeholder={strings.remindeMeOf()}
onChangeText={(text) => (title.current = text)}
wrapperStyle={{
marginTop: 10
@@ -253,7 +253,7 @@ export default function ReminderSheet({
defaultValue={
reminder ? reminder?.description : referencedItem?.headline
}
- placeholder="Add a short note"
+ placeholder={strings.addShortNote()}
onChangeText={(text) => (details.current = text)}
containerStyle={{
maxHeight: 80
diff --git a/apps/mobile/app/components/tip/index.tsx b/apps/mobile/app/components/tip/index.tsx
index dab568bba..94de94c1c 100644
--- a/apps/mobile/app/components/tip/index.tsx
+++ b/apps/mobile/app/components/tip/index.tsx
@@ -116,7 +116,7 @@ export const Tip = ({
color={colors.primary.paragraph}
size={SIZE.md}
>
- {tip.text}
+ {tip.text()}
</Paragraph>
{tip.image && !noImage && (
<View
diff --git a/apps/mobile/app/hooks/use-actions.tsx b/apps/mobile/app/hooks/use-actions.tsx
index 675b55b4a..fa4753bff 100644
--- a/apps/mobile/app/hooks/use-actions.tsx
+++ b/apps/mobile/app/hooks/use-actions.tsx
@@ -255,8 +255,8 @@ export const useActions = ({
item.type === "color"
) {
presentDialog({
- title: `Delete ${item.type}`,
- paragraph: `Are you sure you want to delete this ${item.type}?`,
+ title: strings.deleteItem(item.type),
+ paragraph: strings.deleteItemConfirmation(item.type),
positivePress: async () => {
if (item.type === "reminder") {
await db.reminders.remove(item.id);
diff --git a/apps/mobile/app/hooks/use-tooltip.ts b/apps/mobile/app/hooks/use-tooltip.ts
index 9f7f8c744..ef66d2d36 100644
--- a/apps/mobile/app/hooks/use-tooltip.ts
+++ b/apps/mobile/app/hooks/use-tooltip.ts
@@ -78,7 +78,7 @@ const useTooltip = () => {
timers[timers.length] = setTimeout(() => {
//TipManager.markPopupUsed(popup.id);
RNTooltips.Show(target.current, parent.current, {
- text: popup.text,
+ text: popup.text(),
tintColor: isDark ? colors.secondary.background : "#404040",
corner: Platform.OS === "ios" ? 5 : 50,
textSize: 15,
diff --git a/apps/mobile/app/screens/favorites/index.tsx b/apps/mobile/app/screens/favorites/index.tsx
index c4b8abe51..94f2b7876 100644
--- a/apps/mobile/app/screens/favorites/index.tsx
+++ b/apps/mobile/app/screens/favorites/index.tsx
@@ -53,13 +53,13 @@ export const Favorites = ({
<SelectionHeader id={route.name} items={favorites} type="note" />
<Header
renderedInRoute={route.name}
- title={route.name}
+ title={strings.routes[route.name]()}
canGoBack={false}
hasSearch={true}
id={route.name}
onSearch={() => {
Navigation.push("Search", {
- placeholder: `Type a keyword to search in ${route.name?.toLowerCase()}`,
+ placeholder: strings.searchInRoute(route.name),
type: "note",
title: route.name,
route: route.name,
@@ -81,7 +81,7 @@ export const Favorites = ({
paragraph: strings.favoritesEmpty(),
loading: strings.loadingFavorites()
}}
- headerTitle={strings.dataTypesPluralCamelCase.favorite()}
+ headerTitle={strings.routes.Favorites()}
/>
</DelayLayout>
</>
diff --git a/apps/mobile/app/screens/home/index.tsx b/apps/mobile/app/screens/home/index.tsx
index c2f55aeb1..94fe52473 100755
--- a/apps/mobile/app/screens/home/index.tsx
+++ b/apps/mobile/app/screens/home/index.tsx
@@ -29,6 +29,7 @@ import SettingsService from "../../services/settings";
import useNavigationStore from "../../stores/use-navigation-store";
import { useNotes } from "../../stores/use-notes-store";
import { openEditor } from "../notes/common";
+import { strings } from "@notesnook/intl";
export const Home = ({ navigation, route }: NavigationProps<"Notes">) => {
const [notes, loading] = useNotes();
@@ -51,7 +52,7 @@ export const Home = ({ navigation, route }: NavigationProps<"Notes">) => {
<SelectionHeader id={route.name} items={notes} type="note" />
<Header
renderedInRoute={route.name}
- title={route.name}
+ title={strings.routes[route.name]()}
canGoBack={false}
hasSearch={true}
onSearch={() => {
@@ -71,17 +72,17 @@ export const Home = ({ navigation, route }: NavigationProps<"Notes">) => {
dataType="note"
renderedInRoute={route.name}
loading={loading || !isFocused}
- headerTitle={route.name}
+ headerTitle={strings.routes[route.name]?.()}
placeholder={{
title: route.name?.toLowerCase(),
- paragraph: `You have not added any ${route.name.toLowerCase()} yet.`,
- button: "Add your first note",
+ paragraph: strings.notesEmpty(),
+ button: strings.newNote(),
action: openEditor,
- loading: "Loading your notes"
+ loading: strings.loadingNotes()
}}
/>
{!notes || !notes.placeholders?.length ? null : (
- <FloatingButton title="Create a new note" onPress={openEditor} />
+ <FloatingButton onPress={openEditor} />
)}
</DelayLayout>
</>
diff --git a/apps/mobile/app/screens/notebook/index.tsx b/apps/mobile/app/screens/notebook/index.tsx
index b0d5477fa..6b665a36c 100644
--- a/apps/mobile/app/screens/notebook/index.tsx
+++ b/apps/mobile/app/screens/notebook/index.tsx
@@ -168,7 +168,7 @@ const NotebookScreen = ({ route, navigation }: NavigationProps<"Notebook">) => {
).selector;
Navigation.push("Search", {
- placeholder: `Type a keyword to search in ${params.current.item?.title}`,
+ placeholder: strings.searchInRoute(params.current.item?.title),
type: "note",
title: params.current.item?.title,
route: route.name,
diff --git a/apps/mobile/app/screens/notebooks/index.tsx b/apps/mobile/app/screens/notebooks/index.tsx
index 1e5df68f1..ee54dc569 100644
--- a/apps/mobile/app/screens/notebooks/index.tsx
+++ b/apps/mobile/app/screens/notebooks/index.tsx
@@ -76,13 +76,13 @@ export const Notebooks = ({
/>
<Header
renderedInRoute={route.name}
- title={route.name}
+ title={strings.routes[route.name]()}
canGoBack={route.params?.canGoBack}
hasSearch={true}
id={route.name}
onSearch={() => {
Navigation.push("Search", {
- placeholder: `Type a keyword to search in ${route.name?.toLowerCase()}`,
+ placeholder: strings.searchInRoute(route.name),
type: "notebook",
title: route.name,
route: route.name
@@ -103,16 +103,13 @@ export const Notebooks = ({
action: onButtonPress,
loading: strings.loadingNotebooks()
}}
- headerTitle={strings.dataTypesPluralCamelCase.notebook()}
+ headerTitle={strings.routes[route.name]()}
/>
{!notebooks ||
notebooks.placeholders.length === 0 ||
!isFocused ? null : (
- <FloatingButton
- title="Create a new notebook"
- onPress={onButtonPress}
- />
+ <FloatingButton onPress={onButtonPress} />
)}
</DelayLayout>
</>
diff --git a/apps/mobile/app/screens/notes/index.tsx b/apps/mobile/app/screens/notes/index.tsx
index a8593012d..4f0e7bd8b 100644
--- a/apps/mobile/app/screens/notes/index.tsx
+++ b/apps/mobile/app/screens/notes/index.tsx
@@ -40,6 +40,7 @@ import useNavigationStore, {
RouteName
} from "../../stores/use-navigation-store";
import { setOnFirstSave } from "./common";
+import { strings } from "@notesnook/intl";
export interface RouteProps<T extends RouteName> extends NavigationProps<T> {
get: (
@@ -194,7 +195,10 @@ const NotesPage = ({
/>
<Header
renderedInRoute={route.name}
- title={title || route.name}
+ title={
+ title ||
+ strings.routes[route.name as unknown as keyof typeof strings.routes]()
+ }
canGoBack={params?.current?.canGoBack}
hasSearch={true}
id={
@@ -207,7 +211,7 @@ const NotesPage = ({
: db.relations.from(params.current.item, "note").selector;
Navigation.push("Search", {
- placeholder: `Type a keyword to search in ${title}`,
+ placeholder: strings.searchInRoute(title || route.name),
type: "note",
title: title,
route: route.name,
@@ -227,7 +231,7 @@ const NotesPage = ({
loading={!isFocused}
renderedInRoute={route.name}
id={params.current.item?.id}
- headerTitle={title}
+ headerTitle={title || "Monographs"}
customAccentColor={accentColor}
placeholder={placeholder}
/>
@@ -235,11 +239,7 @@ const NotesPage = ({
{!isMonograph &&
((notes?.placeholders && (notes?.placeholders?.length || 0) > 0) ||
isFocused) ? (
- <FloatingButton
- color={accentColor}
- title="Create a note"
- onPress={onPressFloatingButton}
- />
+ <FloatingButton color={accentColor} onPress={onPressFloatingButton} />
) : null}
</DelayLayout>
</>
diff --git a/apps/mobile/app/screens/reminders/index.tsx b/apps/mobile/app/screens/reminders/index.tsx
index d32a40464..40862d98b 100644
--- a/apps/mobile/app/screens/reminders/index.tsx
+++ b/apps/mobile/app/screens/reminders/index.tsx
@@ -55,12 +55,12 @@ export const Reminders = ({
<SelectionHeader id={route.name} items={reminders} type="reminder" />
<Header
renderedInRoute={route.name}
- title={route.name}
+ title={strings.routes[route.name]()}
canGoBack={false}
hasSearch={true}
onSearch={() => {
Navigation.push("Search", {
- placeholder: `Type a keyword to search in ${route.name}`,
+ placeholder: strings.searchInRoute(route.name),
type: "reminder",
title: route.name,
route: route.name
@@ -76,7 +76,7 @@ export const Reminders = ({
<List
data={reminders}
dataType="reminder"
- headerTitle={strings.dataTypesPluralCamelCase.reminder()}
+ headerTitle={strings.routes[route.name]()}
renderedInRoute="Reminders"
loading={loading}
placeholder={{
diff --git a/apps/mobile/app/screens/search/index.tsx b/apps/mobile/app/screens/search/index.tsx
index 65205cca7..0e195edfd 100644
--- a/apps/mobile/app/screens/search/index.tsx
+++ b/apps/mobile/app/screens/search/index.tsx
@@ -33,6 +33,7 @@ import useNavigationStore from "../../stores/use-navigation-store";
import { eOnRefreshSearch } from "../../utils/events";
import { SearchBar } from "./search-bar";
import { FilteredSelector } from "@notesnook/core";
+import { strings } from "@notesnook/intl";
export const Search = ({ route, navigation }: NavigationProps<"Search">) => {
const [results, setResults] = useState<VirtualizedGrouping<Item>>();
const [loading, setLoading] = useState(false);
@@ -67,6 +68,7 @@ export const Search = ({ route, navigation }: NavigationProps<"Search">) => {
query,
route.params.items as FilteredSelector<Note>
).sorted();
+
console.log(
`Found ${results.placeholders?.length} results for ${query}`
);
@@ -74,7 +76,7 @@ export const Search = ({ route, navigation }: NavigationProps<"Search">) => {
await results.item(0);
setResults(results);
if (results.placeholders?.length === 0) {
- setSearchStatus(`No results found for ${query}`);
+ setSearchStatus(`${strings.noResultsFound()} ${query}`);
} else {
setSearchStatus(undefined);
}
@@ -125,8 +127,8 @@ export const Search = ({ route, navigation }: NavigationProps<"Search">) => {
title: route.name,
paragraph:
searchStatus ||
- `Type a keyword to search in ${route.params?.title}`,
- loading: `Searching for ${currentQuery.current}...`
+ `${strings.typeAKeywordToSearchIn()} ${route.params?.title}`,
+ loading: `${strings.searchingFor()} ${currentQuery.current}...`
}}
/>
</>
diff --git a/apps/mobile/app/screens/search/search-bar.tsx b/apps/mobile/app/screens/search/search-bar.tsx
index 38390921b..e4c85f4a8 100644
--- a/apps/mobile/app/screens/search/search-bar.tsx
+++ b/apps/mobile/app/screens/search/search-bar.tsx
@@ -28,6 +28,7 @@ import useGlobalSafeAreaInsets from "../../hooks/use-global-safe-area-insets";
import { DDS } from "../../services/device-detection";
import { useSelectionStore } from "../../stores/use-selection-store";
import useNavigationStore from "../../stores/use-navigation-store";
+import { strings } from "@notesnook/intl";
export const SearchBar = ({
onChangeText,
loading
@@ -87,9 +88,9 @@ export const SearchBar = ({
}}
autoFocus
onChangeText={_onChangeText}
- placeholder="Type a keyword"
+ placeholder={strings.typeAKeyword()}
textContentType="none"
- returnKeyLabel="Search"
+ returnKeyLabel={strings.search()}
returnKeyType="search"
autoCapitalize="none"
autoCorrect={false}
diff --git a/apps/mobile/app/screens/settings/2fa.tsx b/apps/mobile/app/screens/settings/2fa.tsx
index 3b4d755a1..328113c77 100644
--- a/apps/mobile/app/screens/settings/2fa.tsx
+++ b/apps/mobile/app/screens/settings/2fa.tsx
@@ -311,15 +311,23 @@ export const MFASetup = ({
phoneNumber.current = value;
}}
placeholder={
- method?.id === "email" ? "Enter email address" : "+1234567890"
+ method?.id === "email"
+ ? strings.enterEmailAddress()
+ : "+1234567890"
}
onSubmit={() => {
onSendCode();
}}
onErrorCheck={(e) => setError(e)}
- validationType="phonenumber"
- keyboardType="phone-pad"
- errorMessage="Please enter a valid phone number with country code"
+ validationType={method?.id === "email" ? "email" : "phonenumber"}
+ keyboardType={
+ method.id == "email" ? "email-address" : "phone-pad"
+ }
+ errorMessage={
+ method?.id === "email"
+ ? strings.enterValidEmail()
+ : strings.enterValidPhone()
+ }
buttons={
error ? null : (
<Button
@@ -378,7 +386,7 @@ export const MFASetup = ({
/>
<Button
- title="Change 2FA method"
+ title={strings.change2faMethod()}
type="plain"
height={25}
onPress={() => {
@@ -415,7 +423,7 @@ export const MFARecoveryCodes = ({
setLoading(false);
} catch (e) {
const error = e as Error;
- ToastManager.error(error, "Error getting codes", "local");
+ ToastManager.error(error, strings.errorGettingCodes(), "local");
setLoading(false);
}
})();
diff --git a/apps/mobile/app/screens/settings/editor/group.tsx b/apps/mobile/app/screens/settings/editor/group.tsx
index f497ade23..83f0dd2d1 100644
--- a/apps/mobile/app/screens/settings/editor/group.tsx
+++ b/apps/mobile/app/screens/settings/editor/group.tsx
@@ -132,9 +132,9 @@ export const Group = ({
}
presentDialog({
context: "global",
- title: "Delete group?",
- positiveText: "Delete",
- paragraph: "All tools in the collapsed section will also be removed.",
+ title: strings.deleteGroup(),
+ positiveText: strings.delete(),
+ paragraph: strings.deleteGroupDesc(),
positivePress: () => {
if (groupIndex === undefined) return;
const _data = useDragState.getState().data.slice();
diff --git a/apps/mobile/app/screens/settings/editor/tool.tsx b/apps/mobile/app/screens/settings/editor/tool.tsx
index 650a117f9..2384da1be 100644
--- a/apps/mobile/app/screens/settings/editor/tool.tsx
+++ b/apps/mobile/app/screens/settings/editor/tool.tsx
@@ -82,10 +82,9 @@ export const Tool = ({
}
presentDialog({
context: "global",
- title: "Delete collapsed section?",
- positiveText: "Delete",
- paragraph:
- "All tools in the collapsed section will also be removed.",
+ title: strings.deleteCollapsed(),
+ positiveText: strings.delete(),
+ paragraph: strings.deleteCollapsedDesc(),
positivePress: () => {
if (typeof groupIndex !== "number") return;
const _data = useDragState.getState().data.slice();
diff --git a/apps/mobile/app/screens/settings/home.tsx b/apps/mobile/app/screens/settings/home.tsx
index af0ab9e19..20b377f5d 100644
--- a/apps/mobile/app/screens/settings/home.tsx
+++ b/apps/mobile/app/screens/settings/home.tsx
@@ -55,7 +55,7 @@ const Home = ({
<>
<Header
renderedInRoute="Settings"
- title="Settings"
+ title={strings.routes.Settings()}
canGoBack={false}
id="Settings"
/>
diff --git a/apps/mobile/app/screens/settings/picker/pickers.jsx b/apps/mobile/app/screens/settings/picker/pickers.jsx
index 9ccd134dc..b772e39e1 100644
--- a/apps/mobile/app/screens/settings/picker/pickers.jsx
+++ b/apps/mobile/app/screens/settings/picker/pickers.jsx
@@ -28,6 +28,7 @@ import { useSettingStore } from "../../../stores/use-setting-store";
import { useUserStore } from "../../../stores/use-user-store";
import { MenuItemsList } from "../../../utils/menu-items";
import { verifyUserWithApplock } from "../functions";
+import { strings } from "@notesnook/intl";
export const FontPicker = createSettingsPicker({
getValue: () => useSettingStore.getState().settings.defaultFontFamily,
@@ -50,8 +51,8 @@ export const HomePicker = createSettingsPicker({
updateValue: (item) => {
SettingsService.set({ homepage: item.name });
ToastManager.show({
- heading: "Homepage set to " + item.name,
- message: "Restart the app for changes to take effect.",
+ heading: strings.homePageChangedTo(item.name),
+ message: strings.restartAppToApplyChanges(),
type: "success"
});
},
diff --git a/apps/mobile/app/screens/settings/settings-data.tsx b/apps/mobile/app/screens/settings/settings-data.tsx
index c2b14af76..a8d50f8fc 100644
--- a/apps/mobile/app/screens/settings/settings-data.tsx
+++ b/apps/mobile/app/screens/settings/settings-data.tsx
@@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { formatBytes } from "@notesnook/common";
+import { strings } from "@notesnook/intl";
import notifee from "@notifee/react-native";
import dayjs from "dayjs";
import React from "react";
@@ -67,7 +68,6 @@ import { SUBSCRIPTION_STATUS } from "../../utils/constants";
import {
eCloseSheet,
eCloseSimpleDialog,
- eOpenLoginDialog,
eOpenRecoveryKeyDialog
} from "../../utils/events";
import { NotesnookModule } from "../../utils/notesnook-module";
@@ -83,7 +83,7 @@ type User = any;
export const settingsGroups: SettingSection[] = [
{
id: "account",
- name: "account",
+ name: strings.account(),
useHook: () => useUserStore((state) => state.user),
hidden: (current) => !current,
sections: [
@@ -96,10 +96,10 @@ export const settingsGroups: SettingSection[] = [
const isBasic = user.subscription?.type === SUBSCRIPTION_STATUS.BASIC;
const isTrial = user.subscription?.type === SUBSCRIPTION_STATUS.TRIAL;
return isBasic || !user.subscription?.type
- ? "Subscribe to Pro"
+ ? strings.subscribeToPro()
: isTrial
- ? "Your free trial has started"
- : "Subscription details";
+ ? strings.trialStarted()
+ : strings.subDetails();
},
type: "component",
component: "subscription",
@@ -119,40 +119,39 @@ export const settingsGroups: SettingSection[] = [
);
return user.subscription?.type === 2
- ? "You signed up on " + startDate
+ ? strings.signedUpOn(startDate)
: user.subscription?.type === 1
- ? "Your free trial will end on " + expiryDate
+ ? strings.trialEndsOn(expiryDate)
: user.subscription?.type === 6
? subscriptionDaysLeft.time < -3
- ? "Your subscription has ended"
- : "Your account will be downgraded to Basic in 3 days"
+ ? strings.subEnded()
+ : strings.accountDowngradedIn(3)
: user.subscription?.type === 7
- ? `Your subscription will end on ${expiryDate}.`
+ ? strings.subEndsOn(expiryDate)
: user.subscription?.type === 5
- ? `Your subscription will renew on ${expiryDate}.`
- : "Never hesitate to choose privacy";
+ ? strings.subRenewOn(expiryDate)
+ : strings.neverHesitate();
}
},
{
id: "account-settings",
type: "screen",
- name: "Account Settings",
+ name: strings.manageAccount(),
icon: "account-cog",
- description: "Manage account",
+ description: strings.manageAccountDesc(),
sections: [
{
id: "remove-profile-picture",
- name: "Remove profile picture",
- description: "Remove your picture from profile",
+ name: strings.removeProfilePicture(),
+ description: strings.removeProfilePictureDesc(),
useHook: () =>
useUserStore((state) => state.profile?.profilePicture),
hidden: () => !useUserStore.getState().profile?.profilePicture,
modifer: () => {
presentDialog({
- title: "Remove profile picture",
- paragraph:
- "Are you sure you want to remove your profile picture?",
- positiveText: "Remove",
+ title: strings.removeProfilePicture(),
+ paragraph: strings.removeProfilePictureConfirmation(),
+ positiveText: strings.remove(),
positivePress: async () => {
db.settings
.setProfile({
@@ -169,15 +168,15 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "remove-name",
- name: "Remove full name",
- description: "Remove your name from profile",
+ name: strings.removeFullName(),
+ description: strings.removeFullNameDesc(),
useHook: () => useUserStore((state) => state.profile?.fullName),
hidden: () => !useUserStore.getState().profile?.fullName,
modifer: () => {
presentDialog({
- title: "Remove name",
- paragraph: "Are you sure you want to remove your name?",
- positiveText: "Remove",
+ title: strings.removeFullName(),
+ paragraph: strings.removeFullNameConfirmation(),
+ positiveText: strings.remove(),
positivePress: async () => {
db.settings
.setProfile({
@@ -194,63 +193,61 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "recovery-key",
- name: "Save data recovery key",
+ name: strings.saveDataRecoveryKey(),
modifer: async () => {
verifyUser(null, async () => {
await sleep(300);
eSendEvent(eOpenRecoveryKeyDialog);
});
},
- description:
- "Recover your data using the recovery key if your password is lost."
+ description: strings.saveDataRecoveryKeyDesc()
},
{
id: "manage-attachments",
- name: "Manage attachments",
+ name: strings.manageAttachments(),
icon: "attachment",
type: "screen",
component: "attachments-manager",
- description: "Manage all attachments in one place.",
+ description: strings.manageAttachmentsDesc(),
hideHeader: true
},
{
id: "change-password",
- name: "Change password",
+ name: strings.changePassword(),
modifer: async () => {
ChangePassword.present();
},
- description: "Setup a new password for your account."
+ description: strings.changePasswordDesc()
},
{
id: "change-email",
- name: "Change email",
+ name: strings.changeEmail(),
modifer: async () => {
ChangeEmail.present();
},
- description: "Setup a new email for your account."
+ description: strings.changeEmailDesc()
},
{
id: "2fa-settings",
type: "screen",
- name: "Two factor authentication",
- description: "Manage 2FA settings",
+ name: strings.twoFactorAuth(),
+ description: strings.twoFactorAuthDesc(),
icon: "two-factor-authentication",
sections: [
{
id: "enable-2fa",
- name: "Change primary two-factor authentication",
+ name: strings.change2faMethod(),
modifer: () => {
verifyUser("global", async () => {
MFASheet.present();
});
},
useHook: () => useUserStore((state) => state.user),
- description:
- "Change your current two-factor authentication method"
+ description: strings.change2faMethodDesc()
},
{
id: "2fa-fallback",
- name: "Add fallback 2FA method",
+ name: strings.addFallback2faMethod(),
useHook: () => useUserStore((state) => state.user),
hidden: (user) => {
return (
@@ -263,12 +260,11 @@ export const settingsGroups: SettingSection[] = [
MFASheet.present(true);
});
},
- description:
- "You can use fallback 2FA method incase you are unable to login via primary method"
+ description: strings.addFallback2faMethodDesc()
},
{
id: "change-2fa-method",
- name: "Reconfigure fallback 2FA method",
+ name: strings.change2faFallbackMethod(),
useHook: () => useUserStore((state) => state.user),
hidden: (user) => {
return (
@@ -281,12 +277,11 @@ export const settingsGroups: SettingSection[] = [
MFASheet.present(true);
});
},
- description:
- "You can use fallback 2FA method incase you are unable to login via primary method"
+ description: strings.change2faFallbackMethod()
},
{
id: "view-2fa-codes",
- name: "View recovery codes",
+ name: strings.viewRecoveryCodes(),
modifer: () => {
verifyUser("global", async () => {
MFARecoveryCodes.present("sms");
@@ -296,20 +291,19 @@ export const settingsGroups: SettingSection[] = [
hidden: (user) => {
return !(user as User)?.mfa?.isEnabled;
},
- description:
- "View and save recovery codes for to recover your account"
+ description: strings.viewRecoveryCodesDesc()
}
]
},
{
id: "subscription-not-active",
- name: "Subscription not activated?",
+ name: strings.subscriptionNotActivated(),
hidden: () => Platform.OS !== "ios",
modifer: async () => {
if (Platform.OS === "android") return;
presentSheet({
- title: "Loading subscriptions",
- paragraph: "Please wait while we fetch your subscriptions."
+ title: strings.loadingSubscription(),
+ paragraph: strings.loadingSubscriptionDesc()
});
const subscriptions = await RNIap.getPurchaseHistory();
subscriptions.sort(
@@ -317,14 +311,14 @@ export const settingsGroups: SettingSection[] = [
);
const currentSubscription = subscriptions[0];
presentSheet({
- title: "Notesnook Pro",
- paragraph: `You subscribed to Notesnook Pro on ${new Date(
- currentSubscription.transactionDate
- ).toLocaleString()}. Verify this subscription?`,
+ title: strings.notesnookPro(),
+ paragraph: strings.subscribedOnVerify(
+ new Date(currentSubscription.transactionDate).toLocaleString()
+ ),
action: async () => {
presentSheet({
- title: "Verifying subscription",
- paragraph: "Please wait while we verify your subscription."
+ title: strings.verifySubscription(),
+ paragraph: strings.subscriptionVerifyWait()
});
await PremiumService.subscriptions.verify(
currentSubscription
@@ -332,10 +326,10 @@ export const settingsGroups: SettingSection[] = [
eSendEvent(eCloseSheet);
},
icon: "information-outline",
- actionText: "Verify"
+ actionText: strings.verify()
});
},
- description: "Verify your subscription to Notesnook Pro"
+ description: strings.verifySubDesc()
},
{
id: "clear-cache",
@@ -378,24 +372,22 @@ export const settingsGroups: SettingSection[] = [
{
id: "logout",
- name: "Logout",
- description:
- "Logging out will clear all data stored on this device.",
+ name: strings.logout(),
+ description: strings.logoutWarnin(),
icon: "logout",
modifer: async () => {
const hasUnsyncedChanges = await db.hasUnsyncedChanges();
presentDialog({
- title: "Logout",
- paragraph:
- "Are you sure you want to logout and clear all data stored on this device?",
+ title: strings.logout(),
+ paragraph: strings.logoutConfirmation(),
positiveText: "Logout",
check: {
- info: "Take a backup before logging out",
+ info: strings.backupDataBeforeLogout(),
defaultValue: true
},
notice: hasUnsyncedChanges
? {
- text: "You have unsynced notes. Take a backup or sync your notes to avoid losing your critical data.",
+ text: strings.unsyncedChangesWarning(),
type: "alert"
}
: undefined,
@@ -405,17 +397,16 @@ export const settingsGroups: SettingSection[] = [
try {
startProgress({
fillBackground: true,
- title: "Logging out",
+ title: strings.loggingOut(),
canHideProgress: true,
- paragraph:
- "Please wait while we log out and clear app data."
+ paragraph: strings.loggingOutDesc()
});
Navigation.navigate("Notes");
if (takeBackup) {
updateProgress({
- progress: "Taking a backup of your notes"
+ progress: strings.backingUpData()
});
try {
@@ -431,10 +422,10 @@ export const settingsGroups: SettingSection[] = [
const canLogout = await new Promise((resolve) => {
presentDialog({
context: "local",
- title: "Backup failed",
+ title: strings.backupFailed(),
paragraph: `${
(error as Error).message
- }. Do you want to continue logging out?`,
+ }. ${strings.logout()}?`,
positiveText: "Continue",
positivePress: () => {
resolve(true);
@@ -452,7 +443,7 @@ export const settingsGroups: SettingSection[] = [
}
updateProgress({
- progress: "Logging out... please wait"
+ progress: `${strings.loggingOut()}... ${strings.pleaseWait()}`
});
await db.user?.logout();
@@ -471,7 +462,7 @@ export const settingsGroups: SettingSection[] = [
endProgress();
} catch (e) {
DatabaseLogger.error(e);
- ToastManager.error(e as Error, "Error logging out");
+ ToastManager.error(e as Error, strings.logoutError());
endProgress();
}
}, 300);
@@ -482,20 +473,18 @@ export const settingsGroups: SettingSection[] = [
{
id: "delete-account",
type: "danger",
- name: "Delete account",
+ name: strings.deleteAccount(),
icon: "alert",
- description:
- "All your data will be removed permanently. Make sure you have saved backup of your notes. This action is IRREVERSIBLE.",
+ description: strings.deleteAccountDesc(),
modifer: () => {
presentDialog({
- title: "Delete account",
+ title: strings.deleteAccount(),
paragraphColor: "red",
- paragraph:
- "All your data will be removed permanently. Make sure you have saved backup of your notes. This action is IRREVERSIBLE.",
+ paragraph: strings.deleteAccountDesc(),
positiveType: "errorShade",
input: true,
- inputPlaceholder: "Enter account password",
- positiveText: "Delete",
+ inputPlaceholder: strings.enterAccountPassword(),
+ positiveText: strings.delete(),
positivePress: async (value) => {
try {
const verified = await db.user?.verifyPassword(value);
@@ -514,9 +503,7 @@ export const settingsGroups: SettingSection[] = [
}, 300);
} else {
ToastManager.show({
- heading: "Incorrect password",
- message:
- "The account password you entered is incorrect",
+ heading: strings.passwordIncorrect(),
type: "error",
context: "global"
});
@@ -528,7 +515,7 @@ export const settingsGroups: SettingSection[] = [
console.log(e);
ToastManager.error(
e as Error,
- "Failed to delete account",
+ strings.failedToDeleteAccount(),
"global"
);
}
@@ -540,8 +527,8 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "sync-settings",
- name: "Sync settings",
- description: "Configure syncing for this device",
+ name: strings.syncSettings(),
+ description: strings.syncSettingsDesc(),
type: "screen",
icon: "autorenew",
component: "offline-mode-progress",
@@ -567,32 +554,29 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "auto-sync",
- name: "Disable auto sync",
- description:
- "Turn off automatic syncing. Changes from this client will be synced only when you run sync manually.",
+ name: strings.disableAutoSync(),
+ description: strings.disableAutoSyncDesc(),
type: "switch",
property: "disableAutoSync"
},
{
id: "disable-realtime-sync",
- name: "Disable realtime sync",
- description: "Turn off realtime sync in the editor.",
+ name: strings.disableRealtimeSync(),
+ description: strings.disableRealtimeSyncDesc(),
type: "switch",
property: "disableRealtimeSync"
},
{
id: "disable-sync",
- name: "Disable syncing",
- description:
- "Turns off syncing completely on this device. Any changes made will remain local only and new changes from your other devices won't sync to this device.",
+ name: strings.disableSync(),
+ description: strings.disableSyncDesc(),
type: "switch",
property: "disableSync"
},
{
id: "background-sync",
- name: "Background sync (experimental)",
- description:
- "Periodically wake up the app in background to run sync.",
+ name: strings.backgroundSync(),
+ description: strings.backgroundSyncDesc(),
type: "switch",
property: "backgroundSync",
onChange: (value) => {
@@ -605,15 +589,14 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "pull-sync",
- name: "Force pull changes",
- description: `Use this if changes from other devices are not appearing on this device. This will overwrite the data on this device with the latest data from the server.\n\nThis must only be used for troubleshooting. Using it regularly for sync is not recommended and will lead to unexpected data loss and other issues. If you are having persistent issues with sync, please report them to us at [email protected].`,
+ name: strings.forcePullChanges(),
+ description: strings.forcePullChangesDesc(),
modifer: () => {
presentDialog({
- title: "Force Pull changes",
- paragraph:
- "This must only be used for troubleshooting. Using this regularly for sync is not recommended and will lead to unexpected data loss and other issues. If you are having persistent issues with sync, please report them to us at [email protected].",
- negativeText: "Cancel",
- positiveText: "Start",
+ title: strings.forcePullChanges(),
+ paragraph: strings.forceSyncNotice(),
+ negativeText: strings.cancel(),
+ positiveText: strings.start(),
positivePress: async () => {
eSendEvent(eCloseSheet);
await sleep(300);
@@ -627,15 +610,14 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "push-sync",
- name: "Force push changes",
- description: `Use this if changes made on this device are not appearing on other devices. This will overwrite the data on the server with the data from this device.\n\nThis must only be used for troubleshooting. Using it regularly for sync is not recommended and will lead to unexpected data loss and other issues. If you are having persistent issues with sync, please report them to us at [email protected].`,
+ name: strings.forcePushChanges(),
+ description: strings.forcePushChangesDesc(),
modifer: () => {
presentDialog({
- title: "Force Push changes",
- paragraph:
- "This must only be used for troubleshooting. Using this regularly for sync is not recommended and will lead to unexpected data loss and other issues. If you are having persistent issues with sync, please report them to us at [email protected].",
- negativeText: "Cancel",
- positiveText: "Start",
+ title: strings.forcePushChanges(),
+ paragraph: strings.forceSyncNotice(),
+ negativeText: strings.cancel(),
+ positiveText: strings.start(),
positivePress: async () => {
eSendEvent(eCloseSheet);
await sleep(300);
@@ -653,28 +635,27 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "customize",
- name: "Customization",
+ name: strings.customization(),
sections: [
{
id: "personalization",
type: "screen",
- name: "Appearance",
- description: "Change app look and feel with color themes",
+ name: strings.appearance(),
+ description: strings.appearanceDesc(),
icon: "shape",
sections: [
{
id: "theme-picker",
type: "screen",
- name: "Themes",
- description: "Customize Notesnook to absolute infinity.",
+ name: strings.themes(),
+ description: strings.themesDesc(),
component: "theme-selector"
},
{
id: "use-system-theme",
type: "switch",
- name: "Use system theme",
- description:
- "Automatically switch to dark mode when system theme changes",
+ name: strings.useSystemTheme(),
+ description: strings.useSystemThemeDesc(),
property: "useSystemTheme",
icon: "circle-half",
modifer: () => {
@@ -692,8 +673,8 @@ export const settingsGroups: SettingSection[] = [
{
id: "enable-dark-mode",
type: "switch",
- name: "Dark mode",
- description: "Strain your eyes no more at night",
+ name: strings.darkMode(),
+ description: strings.darkModeDesc(),
property: "colorScheme",
icon: "brightness-6",
modifer: () => {
@@ -706,42 +687,41 @@ export const settingsGroups: SettingSection[] = [
{
id: "behaviour",
type: "screen",
- name: "Behaviour",
- description: "Change how the app behaves in different situations",
+ name: strings.behavior(),
+ description: strings.behaviorDesc(),
sections: [
{
id: "default-home",
type: "component",
- name: "Homepage",
- description: "Default screen to open on app startup",
+ name: strings.homepage(),
+ description: strings.homepageDesc(),
component: "homeselector"
},
{
id: "date-format",
- name: "Date format",
- description: "Set the format for date used across the app",
+ name: strings.dateFormat(),
+ description: strings.dateFormatDesc(),
type: "component",
component: "date-format-selector"
},
{
id: "time-format",
- name: "Time format",
- description: "Set the format for time used across the app",
+ name: strings.timeFormat(),
+ description: strings.timeFormatDesc(),
type: "component",
component: "time-format-selector"
},
{
id: "clear-trash-interval",
type: "component",
- name: "Clear trash interval",
- description:
- "Select the duration after which trash items will be cleared",
+ name: strings.clearTrashInterval(),
+ description: strings.clearTrashIntervalDesc(),
component: "trash-interval-selector"
},
{
id: "default-notebook",
- name: "Clear default notebook",
- description: "Clear the default notebook for new notes",
+ name: strings.clearDefaultNotebook(),
+ description: strings.clearDefaultNotebookDesc(),
modifer: () => {
db.settings.setDefaultNotebook(undefined);
},
@@ -751,45 +731,44 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "editor",
- name: "Editor",
+ name: strings.editor(),
type: "screen",
icon: "note-edit-outline",
- description: "Customize the editor to fit your needs",
+ description: strings.editorDesc(),
sections: [
{
id: "configure-toolbar",
type: "screen",
- name: "Configure toolbar",
- description: "Make the toolbar adaptable to your needs.",
+ name: strings.customizeToolbar(),
+ description: strings.customizeToolbarDesc(),
component: "configuretoolbar"
},
{
id: "reset-toolbar",
- name: "Reset toolbar",
- description: "Reset toolbar configuration to default",
+ name: strings.resetToolbar(),
+ description: strings.resetToolbarDesc(),
modifer: () => {
useDragState.getState().setPreset("default");
}
},
{
id: "double-spaced-lines",
- name: "Use double spaced lines",
- description:
- "New lines will be double spaced (old ones won't be affected).",
+ name: strings.doubleSpacedLines(),
+ description: strings.doubleSpacedLinesDesc(),
type: "switch",
property: "doubleSpacedLines",
icon: "format-line-spacing",
onChange: () => {
ToastManager.show({
- heading: "Line spacing changed",
+ heading: strings.lineSpacingChanged(),
type: "success"
});
}
},
{
id: "default-font-size",
- name: "Default font size",
- description: "Set the default font size in editor",
+ name: strings.defaultFontSize(),
+ description: strings.defaultFontSizeDesc(),
type: "input-selector",
minInputValue: 8,
maxInputValue: 120,
@@ -798,8 +777,8 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "default-font-family",
- name: "Default font family",
- description: "Set the default font family in editor",
+ name: strings.defaultFontFamily(),
+ description: strings.defaultFontFamilyDesc(),
type: "component",
icon: "format-font",
property: "defaultFontFamily",
@@ -807,16 +786,16 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "title-format",
- name: "Title format",
+ name: strings.titleFormat(),
component: "title-format",
- description: "Customize the formatting for new note title",
+ description: strings.titleFormatDesc(),
type: "component"
},
{
id: "toggle-markdown",
- name: "Markdown shortcuts",
+ name: strings.mardownShortcuts(),
property: "markdownShortcuts",
- description: "Toggle markdown in the editor",
+ description: strings.mardownShortcutsDesc(),
type: "switch"
}
]
@@ -838,9 +817,8 @@ export const settingsGroups: SettingSection[] = [
{
id: "marketing-emails",
type: "switch",
- name: "Marketing emails",
- description:
- "We will send you occasional promotional offers & product updates on your email (sent once every month).",
+ name: strings.marketingEmails(),
+ description: strings.marketingEmailsDesc(),
modifer: async () => {
try {
await db.user?.changeMarketingConsent(
@@ -858,8 +836,8 @@ export const settingsGroups: SettingSection[] = [
{
id: "cors-bypass",
type: "input",
- name: "CORS bypass proxy",
- description: "You can set a custom proxy URL to increase your privacy.",
+ name: strings.corsBypass(),
+ description: strings.corsBypassDesc(),
inputProperties: {
defaultValue: "https://cors.notesnook.com",
autoCorrect: false,
@@ -872,14 +850,14 @@ export const settingsGroups: SettingSection[] = [
{
id: "vault",
type: "screen",
- name: "Vault",
- description: "Multi-layer encryption to most important notes",
+ name: strings.vault(),
+ description: strings.vaultDesc(),
icon: "key",
sections: [
{
id: "create-vault",
- name: "Create vault",
- description: "Set a password to create vault and lock notes.",
+ name: strings.createVault(),
+ description: strings.createVaultDesc(),
icon: "key",
useHook: useVaultStatus,
hidden: (current) => (current as VaultStatusType)?.exists,
@@ -888,8 +866,7 @@ export const settingsGroups: SettingSection[] = [
openVault({
item: {},
novault: false,
- title: "Create vault",
- description: "Set a password to create vault and lock notes."
+ title: strings.createVault()
});
});
}
@@ -897,39 +874,36 @@ export const settingsGroups: SettingSection[] = [
{
id: "change-vault-password",
useHook: useVaultStatus,
- name: "Change vault password",
- description: "Setup a new password for your vault.",
+ name: strings.changeVaultPassword(),
+ description: strings.changeVaultPasswordDesc(),
hidden: (current) => !(current as VaultStatusType)?.exists,
modifer: () =>
openVault({
item: {},
changePassword: true,
novault: true,
- title: "Change vault password",
- description: "Set a new password for your vault."
+ title: strings.changeVaultPassword()
})
},
{
id: "clear-vault",
useHook: useVaultStatus,
- name: "Clear vault",
- description: "Unlock all locked notes",
+ description: strings.clearVaultDesc(),
+ name: strings.clearVault(),
hidden: (current) => !(current as VaultStatusType)?.exists,
modifer: () => {
openVault({
item: {},
clearVault: true,
novault: true,
- title: "Clear vault",
- description:
- "Enter vault password to unlock and remove all notes from the vault."
+ title: strings.clearVault()
});
}
},
{
id: "delete-vault",
- name: "Delete vault",
- description: "Delete vault (and optionally remove all notes).",
+ name: strings.deleteVault(),
+ description: strings.deleteVaultDesc(),
useHook: useVaultStatus,
hidden: (current) => !(current as VaultStatusType)?.exists,
modifer: () => {
@@ -937,18 +911,17 @@ export const settingsGroups: SettingSection[] = [
item: {},
deleteVault: true,
novault: true,
- title: "Delete vault",
- description: "Enter your account password to delete your vault."
+ title: strings.deleteVault()
});
}
},
{
id: "biometric-unlock",
type: "switch",
- name: "Biometric unlocking",
+ name: strings.biometricUnlock(),
icon: "fingerprint",
useHook: useVaultStatus,
- description: "Access notes in vault using biometrics",
+ description: strings.biometricUnlockDesc(),
hidden: (current) => {
const _current = current as VaultStatusType;
return !_current?.exists || !_current?.isBiometryAvailable;
@@ -962,11 +935,8 @@ export const settingsGroups: SettingSection[] = [
revokeFingerprintAccess: _current.biometryEnrolled,
novault: true,
title: _current.biometryEnrolled
- ? "Revoke biometric unlocking"
- : "Enable biometery unlock",
- description: _current.biometryEnrolled
- ? "Disable biometric unlocking for notes in vault"
- : "Enable biometric unlocking for notes in vault"
+ ? strings.revokeBiometricUnlock()
+ : strings.vaultEnableBiometrics()
});
}
}
@@ -976,9 +946,8 @@ export const settingsGroups: SettingSection[] = [
id: "privacy-mode",
type: "switch",
icon: "eye-off-outline",
- name: "Privacy mode",
- description:
- "Hide app contents when you switch to other apps. This will also disable screenshot taking in the app.",
+ name: strings.privacyMode(),
+ description: strings.privacyModeDesc(),
modifer: () => {
const settings = SettingsService.get();
if (Platform.OS === "ios") {
@@ -1000,15 +969,15 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "app-lock",
- name: "App lock",
+ name: strings.appLock(),
type: "screen",
- description: "Enhanced at rest encryption with app lock",
+ description: strings.appLockDesc(),
icon: "lock",
sections: [
{
id: "app-lock-mode",
- name: "App lock",
- description: "Keep intruders away with app lock security.",
+ name: strings.enableAppLock(),
+ description: strings.appLockDesc(),
icon: "lock",
type: "switch",
property: "appLockEnabled",
@@ -1035,10 +1004,9 @@ export const settingsGroups: SettingSection[] = [
!SettingsService.getProperty("appLockHasPasswordSecurity")
) {
ToastManager.show({
- heading: "Biometrics not enrolled",
+ heading: strings.biometricsNotEnrolled(),
type: "error",
- message:
- "To use app lock, you must enable biometrics such as Fingerprint lock or Face ID on your phone."
+ message: strings.biometricsNotEnrolledDesc()
});
return false;
}
@@ -1049,26 +1017,22 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "app-lock-timer",
- name: "App lock timeout",
- description:
- "Set the time after which the app should lock when in background",
+ name: strings.appLockTimeout(),
+ description: strings.appLockTimeoutDesc(),
type: "component",
component: "applock-timer"
},
{
id: "app-lock-pin",
name: () =>
- `Setup app lock ${
- SettingsService.getProperty("applockKeyboardType") === "numeric"
- ? "pin"
- : "password"
- }`,
+ SettingsService.getProperty("applockKeyboardType") === "numeric"
+ ? strings.setupAppLockPin()
+ : strings.setupAppLockPassword(),
+
description: () =>
- `Set up a ${
- SettingsService.getProperty("applockKeyboardType") === "numeric"
- ? "pin"
- : "password"
- } for app lock`,
+ SettingsService.getProperty("applockKeyboardType") === "numeric"
+ ? strings.setupAppLockPinDesc()
+ : strings.setupAppLockPasswordDesc(),
hidden: () => {
return !!SettingsService.getProperty(
"appLockHasPasswordSecurity"
@@ -1079,24 +1043,19 @@ export const settingsGroups: SettingSection[] = [
},
property: "appLockHasPasswordSecurity",
modifer: () => {
- console.log("called modifier..");
AppLockPassword.present("create");
}
},
{
id: "app-lock-pin-change",
name: () =>
- `Change app lock ${
- SettingsService.getProperty("applockKeyboardType") === "numeric"
- ? "pin"
- : "password"
- }`,
+ SettingsService.getProperty("applockKeyboardType") === "numeric"
+ ? strings.changeAppLockPin()
+ : strings.changeAppLockPassword(),
description: () =>
- `Set up a ${
- SettingsService.getProperty("applockKeyboardType") === "numeric"
- ? "pin"
- : "password"
- } for app lock`,
+ SettingsService.getProperty("applockKeyboardType") === "numeric"
+ ? strings.changeAppLockPinDesc()
+ : strings.changeAppLockPasswordDesc(),
hidden: () => {
return !SettingsService.getProperty("appLockHasPasswordSecurity");
},
@@ -1108,17 +1067,13 @@ export const settingsGroups: SettingSection[] = [
{
id: "app-lock-pin-remove",
name: () =>
- `Remove app lock ${
- SettingsService.getProperty("applockKeyboardType") === "numeric"
- ? "pin"
- : "password"
- }`,
+ SettingsService.getProperty("applockKeyboardType") === "numeric"
+ ? strings.removeAppLockPin()
+ : strings.removeAppLockPassword(),
description: () =>
- `Remove app lock ${
- SettingsService.getProperty("applockKeyboardType") === "numeric"
- ? "pin"
- : "password"
- }, app lock will be disabled if no other security method is enabled.`,
+ SettingsService.getProperty("applockKeyboardType") === "numeric"
+ ? strings.removeAppLockPinDesc()
+ : strings.removeAppLockPasswordDesc(),
hidden: () => {
return !SettingsService.getProperty("appLockHasPasswordSecurity");
},
@@ -1129,8 +1084,8 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "app-lock-fingerprint",
- name: "Unlock with biometrics",
- description: "Allow biometric authentication to unlock the app",
+ name: strings.unlockWithBiometrics(),
+ description: strings.unlockWithBiometricsDesc(),
type: "switch",
property: "biometricsAuthEnabled",
onVerify: async () => {
@@ -1143,7 +1098,7 @@ export const settingsGroups: SettingSection[] = [
) {
SettingsService.setProperty("appLockEnabled", false);
ToastManager.show({
- heading: "App lock disabled",
+ heading: strings.appLockDisabled(),
type: "success"
});
}
@@ -1159,20 +1114,19 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "back-restore",
- name: "Backup and restore",
+ name: strings.backupRestore(),
sections: [
{
id: "backups",
type: "screen",
- name: "Backups",
+ name: strings.backups(),
icon: "backup-restore",
- description: "Create a backup or change backup settings",
+ description: strings.backupsDesc(),
sections: [
{
id: "backup-now",
- name: "Backup now",
- description:
- "Take a partial backup of your data that does not include attachments",
+ name: strings.backupNow(),
+ description: strings.backupNowDesc(),
modifer: async () => {
const user = useUserStore.getState().user;
if (!user || SettingsService.getProperty("encryptedBackup")) {
@@ -1185,9 +1139,9 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "backup-now",
- name: "Backup now with attachments",
+ name: strings.backupNowWithAttachments(),
+ description: strings.backupNowWithAttachmentsDesc(),
hidden: () => !useUserStore.getState().user,
- description: "Take a full backup of your data with all attachments",
modifer: async () => {
const user = useUserStore.getState().user;
if (!user || SettingsService.getProperty("encryptedBackup")) {
@@ -1203,25 +1157,22 @@ export const settingsGroups: SettingSection[] = [
{
id: "auto-backups",
type: "component",
- name: "Automatic backups",
- description:
- "Set the interval to create a partial backup (without attachments) automatically.",
+ name: strings.automaticBackups(),
+ description: strings.automaticBackupsDesc(),
component: "autobackups"
},
{
id: "auto-backups-with-attachments",
type: "component",
hidden: () => !useUserStore.getState().user,
- name: "Automatic backups with attachments",
- description: `Set the interval to create a backup (with attachments) automatically.
-
-NOTE: Creating a backup with attachments can take a while, and also fail completely. The app will try to resume/restart the backup in case of interruptions.`,
+ name: strings.automaticBackupsWithAttachments(),
+ description: strings.automaticBackupsWithAttachmentsDesc(),
component: "autobackupsattachments"
},
{
id: "select-backup-dir",
- name: "Select backup directory",
- description: "Select directory to store backups",
+ name: strings.selectBackupDir(),
+ description: strings.selectBackupDirDesc(),
icon: "folder",
hidden: () =>
!!SettingsService.get().backupDirectoryAndroid ||
@@ -1236,7 +1187,7 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
} finally {
if (!dir) {
ToastManager.show({
- heading: "No directory selected",
+ heading: strings.noDirectorySelected(),
type: "error"
});
}
@@ -1245,7 +1196,7 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
},
{
id: "change-backup-dir",
- name: "Change backup directory",
+ name: strings.changeBackupDir(),
description: () =>
SettingsService.get().backupDirectoryAndroid?.name || "",
icon: "folder",
@@ -1262,7 +1213,7 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
} finally {
if (!dir) {
ToastManager.show({
- heading: "No directory selected",
+ heading: strings.noDirectorySelected(),
type: "error"
});
}
@@ -1272,8 +1223,8 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
{
id: "enable-backup-encryption",
type: "switch",
- name: "Backup encryption",
- description: "Encrypt all your backups.",
+ name: strings.backupEncryption(),
+ description: strings.backupEncryptionDesc(),
icon: "lock",
property: "encryptedBackup",
modifer: async () => {
@@ -1281,12 +1232,8 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
const settings = SettingsService.get();
if (!user) {
ToastManager.show({
- heading: "Login required to enable encryption",
- type: "error",
- func: () => {
- eSendEvent(eOpenLoginDialog);
- },
- actionText: "Login"
+ heading: strings.loginRequired(),
+ type: "error"
});
return;
}
@@ -1307,17 +1254,16 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
},
{
id: "restore-backup",
- name: "Restore backup",
- description: "Restore backup from phone storage.",
+ name: strings.restoreBackup(),
+ description: strings.restoreBackupDesc(),
type: "screen",
component: "backuprestore"
},
{
id: "export-notes",
- name: "Export all notes",
+ name: strings.exportAllNotes(),
icon: "export",
- description:
- "Export all notes as pdf, markdown, html or text in a single zip file",
+ description: strings.exportAllNotesDesc(),
modifer: () => {
verifyUser(null, () => {
ExportNotesSheet.present(undefined, true);
@@ -1328,14 +1274,13 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
},
{
id: "productivity",
- name: "Productivity",
+ name: strings.productivity(),
sections: [
{
id: "notification-notes",
type: "switch",
- name: "Notes in notifications",
- description:
- "Add quick notes from notifications without opening the app.",
+ name: strings.quickNoteNotification(),
+ description: strings.quickNoteNotificationDesc(),
property: "notifNotes",
icon: "form-textbox",
modifer: () => {
@@ -1354,15 +1299,15 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
{
id: "reminders",
type: "screen",
- name: "Reminders",
+ name: strings.reminders(),
icon: "bell",
- description: "Manage and configure reminders in app",
+ description: strings.remindersDesc(),
sections: [
{
id: "enable-reminders",
property: "reminderNotifications",
type: "switch",
- name: "Reminder notifications",
+ name: strings.reminderNotification(),
icon: "bell-outline",
onChange: (property) => {
if (property) {
@@ -1371,20 +1316,18 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
Notifications.clearAllTriggers();
}
},
- description:
- "Controls whether this device should receive reminder notifications."
+ description: strings.reminderNotificationDesc()
},
{
id: "snooze-time",
property: "defaultSnoozeTime",
type: "input",
- name: "Default snooze time",
- description:
- "Set the default time to snooze a reminder to when you press the snooze button on a notification.",
+ name: strings.defaultSnoozeTime(),
+ description: strings.defaultSnoozeTimeDesc(),
inputProperties: {
keyboardType: "decimal-pad",
defaultValue: 5 + "",
- placeholder: "Set snooze time in minutes",
+ placeholder: strings.setSnoozeTimePlaceholder(),
onSubmitEditing: () => {
Notifications.setupReminders();
}
@@ -1393,9 +1336,8 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
{
id: "reminder-sound-ios",
type: "screen",
- name: "Change notification sound",
- description:
- "Set the notification sound for reminder notifications",
+ name: strings.changeNotificationSound(),
+ description: strings.changeNotificationSoundDesc(),
component: "sound-picker",
icon: "bell-ring",
hidden: () =>
@@ -1404,9 +1346,8 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
},
{
id: "reminder-sound-android",
- name: "Change notification sound",
- description:
- "Set the notification sound for reminder notifications",
+ name: strings.changeNotificationSound(),
+ description: strings.changeNotificationSoundDesc(),
icon: "bell-ring",
hidden: () =>
Platform.OS === "ios" ||
@@ -1424,7 +1365,7 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
},
{
id: "help-support",
- name: "Help and support",
+ name: strings.helpAndSupport(),
sections: [
{
id: "report-issue",
@@ -1436,41 +1377,38 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
component: <Issue />
});
},
- description:
- "Faced an issue or have a suggestion? Click here to create a bug report"
+ description: strings.reportAnIssueDesc()
},
{
id: "email-support",
- name: "Email support",
+ name: strings.emailSupport(),
icon: "mail",
modifer: () => {
Linking.openURL("mailto:[email protected]");
},
- description:
- "Reach out to us via email and let us resolve your issue directly."
+ description: strings.emailSupportDesc()
},
{
id: "docs-link",
- name: "Documentation",
+ name: strings.documentation(),
modifer: async () => {
Linking.openURL("https://docs.notesnook.com");
},
- description: "Learn about every feature and how it works.",
+ description: strings.documentationDesc(),
icon: "file-document"
},
{
id: "debugging",
- name: "Debugging",
- description:
- "Get helpful debug info about the app to help us find bugs.",
+ name: strings.debugging(),
+ description: strings.debuggingDesc(),
type: "screen",
icon: "bug",
sections: [
{
id: "debug-logs",
type: "screen",
- name: "Debug logs",
- description: "View debug logs from the app",
+ name: strings.debugLogs(),
+ description: strings.debugLogsDesc(),
component: "debug-logs"
}
]
@@ -1479,20 +1417,20 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
},
{
id: "community",
- name: "community",
+ name: strings.community(),
sections: [
{
id: "join-telegram",
- name: "Join our Telegram group",
- description: "We are on telegram, let's talk",
+ name: strings.joinTelegram(),
+ description: strings.joinTelegramDesc(),
modifer: () => {
Linking.openURL("https://t.me/notesnook").catch(console.log);
}
},
{
id: "join-mastodon",
- name: "Follow us on Mastodon",
- description: "We are on mastodon",
+ name: strings.joinMastodon(),
+ description: strings.joinMastodonDesc(),
icon: "mastodon",
modifer: () => {
Linking.openURL("https://fosstodon.org/@notesnook").catch(
@@ -1502,8 +1440,8 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
},
{
id: "join-twitter",
- name: "Follow us on twitter",
- description: "Stay updated with the latest news about Notesnook",
+ name: strings.followOnX(),
+ description: strings.followOnXDesc(),
icon: "twitter",
modifer: () => {
Linking.openURL("https://twitter.com/notesnook").catch(console.log);
@@ -1511,36 +1449,12 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
},
{
id: "join-discord",
- name: "Join our Discord community",
+ name: strings.joinDiscord(),
icon: "discord",
modifer: async () => {
- presentSheet({
- title: "Join our Discord Community",
- iconColor: "discord",
- paragraph:
- "We are not ghosts, chat with us and share your experience.",
- valueArray: [
- "Talk with us anytime.",
- "Follow the development process",
- "Give suggestions and report issues.",
- "Get early access to new features",
- "Meet other people using Notesnook"
- ],
- icon: "discord",
- action: async () => {
- try {
- Linking.openURL("https://discord.gg/zQBK97EE22").catch(
- console.log
- );
- } catch (e) {
- console.error(e);
- }
- },
- actionText: "Join Now"
- });
+ Linking.openURL("https://discord.gg/zQBK97EE22").catch(console.log);
},
- description:
- "We are not ghosts, chat with us and share your experience."
+ description: strings.joinDiscordDesc()
}
]
},
@@ -1550,7 +1464,7 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
sections: [
{
id: "tos",
- name: "Terms of service",
+ name: strings.tos(),
modifer: async () => {
try {
await Linking.openURL("https://notesnook.com/tos");
@@ -1558,11 +1472,11 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
console.error(e);
}
},
- description: "Read our terms of service"
+ description: strings.tosDesc()
},
{
id: "privacy-policy",
- name: "Privacy policy",
+ name: strings.privacyPolicy(),
modifer: async () => {
try {
await Linking.openURL("https://notesnook.com/privacy");
@@ -1570,25 +1484,25 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
console.error(e);
}
},
- description: "Read our privacy policy"
+ description: strings.privacyPolicyDesc()
},
{
id: "licenses",
- name: "Open source Licenses",
+ name: strings.licenses(),
type: "screen",
component: "licenses",
- description: "Open source libraries used in Notesnook",
+ description: strings.ossLibs(),
icon: "open-source-initiative"
}
]
},
{
id: "about",
- name: "about",
+ name: strings.about(),
sections: [
{
id: "download",
- name: "Download on desktop",
+ name: strings.downloadOnDesktop(),
icon: "monitor",
modifer: async () => {
try {
@@ -1597,11 +1511,11 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
console.error(e);
}
},
- description: "Get Notesnook app on your desktop and access all notes"
+ description: strings.downloadOnDesktopDesc()
},
{
id: "roadmap",
- name: "Roadmap",
+ name: strings.roadmap(),
icon: "chart-timeline",
modifer: async () => {
try {
@@ -1610,13 +1524,13 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
console.error(e);
}
},
- description: "See what the future of Notesnook is going to be like."
+ description: strings.roadmapDesc()
},
{
id: "check-for-updates",
- name: "Check for updates",
+ name: strings.checkForUpdates(),
icon: "cellphone-arrow-down",
- description: "Check for new version of Notesnook",
+ description: strings.checkForUpdatesDesc(),
modifer: async () => {
presentSheet({
//@ts-ignore // Migrate to ts
@@ -1626,7 +1540,7 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet
},
{
id: "app-version",
- name: "App version",
+ name: strings.appVersion(),
icon: "alpha-v",
modifer: async () => {
try {
diff --git a/apps/mobile/app/screens/settings/sound-picker.tsx b/apps/mobile/app/screens/settings/sound-picker.tsx
index 75ee3c8e1..5cc62a325 100644
--- a/apps/mobile/app/screens/settings/sound-picker.tsx
+++ b/apps/mobile/app/screens/settings/sound-picker.tsx
@@ -32,6 +32,7 @@ import SettingsService from "../../services/settings";
import { useSettingStore } from "../../stores/use-setting-store";
import { useThemeColors } from "@notesnook/theme";
import { SIZE } from "../../utils/size";
+import { strings } from "@notesnook/intl";
const SoundItem = ({
playingSoundId,
@@ -131,7 +132,7 @@ export default function SoundPicker() {
setRingtones([
{
soundID: "defaultSound",
- title: "Default sound",
+ title: strings.defaultSound(),
url: ""
},
...results
diff --git a/apps/mobile/app/screens/settings/subscription.js b/apps/mobile/app/screens/settings/subscription.js
index d86478b62..0e0ddf604 100644
--- a/apps/mobile/app/screens/settings/subscription.js
+++ b/apps/mobile/app/screens/settings/subscription.js
@@ -57,12 +57,11 @@ export const Subscription = () => {
if (Config.GITHUB_RELEASE === "true") {
presentSheet({
- paragraph:
- "This version of Notesnook app does not support in-app purchases. Kindly login on the Notesnook web app to make the purchase.",
+ paragraph: strings.subNotSupported(),
action: () => {
Linking.openURL("https://app.notesnook.com");
},
- actionText: "Go to web app"
+ actionText: strings.goToWebApp()
});
return;
}
@@ -70,8 +69,8 @@ export const Subscription = () => {
if (hasCancelledPremium && Platform.OS === "android") {
if (user.subscription?.provider === 3) {
ToastManager.show({
- heading: "Subscribed on web",
- message: "Open your web browser to manage your subscription.",
+ heading: strings.subOnWeb(),
+ message: strings.openInBrowserToManageSub(),
type: "success"
});
return;
diff --git a/apps/mobile/app/screens/settings/user-section.js b/apps/mobile/app/screens/settings/user-section.js
index 19057ff4f..1433623cd 100644
--- a/apps/mobile/app/screens/settings/user-section.js
+++ b/apps/mobile/app/screens/settings/user-section.js
@@ -89,7 +89,7 @@ const onChangePicture = () => {
includeBase64: true,
writeTempFile: false,
cropperToolbarColor: theme.scopes.base.primary.background,
- cropperToolbarTitle: "Edit profile picture",
+ cropperToolbarTitle: strings.editProfilePicture(),
cropperActiveWidgetColor: theme.scopes.base.primary.accent,
cropperToolbarWidgetColor: theme.scopes.base.primary.icon
}).then(async (image) => {
@@ -184,12 +184,11 @@ const SettingsUserSection = ({ item }) => {
<Paragraph
onPress={() => {
presentDialog({
- title: "Set your full name",
- paragraph:
- "Your name is end-to-end encrypted and only visible to you.",
- positiveText: "Save",
+ title: strings.setFullName(),
+ paragraph: strings.setFullNameDesc(),
+ positiveText: strings.save(),
input: true,
- inputPlaceholder: "Enter your full name",
+ inputPlaceholder: strings.enterFullName(),
defaultValue: userProfile?.fullName,
positivePress: async (value) => {
db.settings
diff --git a/apps/mobile/app/screens/tags/index.tsx b/apps/mobile/app/screens/tags/index.tsx
index 8632d044b..ecd457a95 100644
--- a/apps/mobile/app/screens/tags/index.tsx
+++ b/apps/mobile/app/screens/tags/index.tsx
@@ -27,6 +27,7 @@ import Navigation, { NavigationProps } from "../../services/navigation";
import SettingsService from "../../services/settings";
import useNavigationStore from "../../stores/use-navigation-store";
import { useTags } from "../../stores/use-tag-store";
+import { strings } from "@notesnook/intl";
export const Tags = ({ navigation, route }: NavigationProps<"Tags">) => {
const [tags, loading] = useTags();
@@ -74,9 +75,9 @@ export const Tags = ({ navigation, route }: NavigationProps<"Tags">) => {
loading={!isFocused}
renderedInRoute="Tags"
placeholder={{
- title: "Your tags",
- paragraph: "You have not created any tags for your notes yet.",
- loading: "Loading your tags."
+ title: strings.yourTags(),
+ paragraph: strings.tagsEmpty(),
+ loading: strings.loadingTags()
}}
/>
</DelayLayout>
diff --git a/apps/mobile/app/screens/trash/index.tsx b/apps/mobile/app/screens/trash/index.tsx
index 8baf55096..4291df60d 100644
--- a/apps/mobile/app/screens/trash/index.tsx
+++ b/apps/mobile/app/screens/trash/index.tsx
@@ -31,21 +31,20 @@ import useNavigationStore from "../../stores/use-navigation-store";
import { useSelectionStore } from "../../stores/use-selection-store";
import { useTrash, useTrashStore } from "../../stores/use-trash-store";
import SelectionHeader from "../../components/selection-header";
+import { strings } from "@notesnook/intl";
const onPressFloatingButton = () => {
presentDialog({
- title: "Clear trash",
- paragraph: "Are you sure you want to clear the trash?",
- positiveText: "Clear",
- negativeText: "Cancel",
+ title: strings.clearTrash(),
+ paragraph: strings.clearTrashConfirm(),
+ positiveText: strings.clear(),
+ negativeText: strings.cancel(),
positivePress: async () => {
await db.trash?.clear();
useTrashStore.getState().refresh();
useSelectionStore.getState().clearSelection();
ToastManager.show({
- heading: "Trash cleared",
- message:
- "All notes and notebooks in the trash have been removed permanently.",
+ heading: strings.trashCleared(),
type: "success",
context: "local"
});
@@ -54,16 +53,14 @@ const onPressFloatingButton = () => {
});
};
const PLACEHOLDER_DATA = (trashCleanupInterval = 7) => ({
- title: "Trash",
+ title: strings.trash(),
paragraph:
trashCleanupInterval === -1
- ? "Set automatic trash cleanup interval from Settings > Behaviour > Clean trash interval."
- : `Trash gets automatically cleaned up ${
- trashCleanupInterval === 1
- ? "daily."
- : `after ${trashCleanupInterval} days.`
- }`,
- loading: "Loading trash items"
+ ? strings.noTrashCleanupInterval()
+ : trashCleanupInterval === 1
+ ? strings.trashCleanupIntervalTextDaily()
+ : strings.trashCleanupIntervalTextDays(trashCleanupInterval),
+ loading: strings.loadingTrash()
});
export const Trash = ({ navigation, route }: NavigationProps<"Trash">) => {
@@ -115,7 +112,6 @@ export const Trash = ({ navigation, route }: NavigationProps<"Trash">) => {
{trash && trash?.placeholders?.length !== 0 ? (
<FloatingButton
- title="Clear all trash"
onPress={onPressFloatingButton}
alwaysVisible={true}
/>
diff --git a/apps/mobile/app/services/backup.ts b/apps/mobile/app/services/backup.ts
index fd41be667..d1b8506d1 100644
--- a/apps/mobile/app/services/backup.ts
+++ b/apps/mobile/app/services/backup.ts
@@ -39,6 +39,7 @@ import { eCloseSheet } from "../utils/events";
import { sleep } from "../utils/time";
import { ToastManager, eSendEvent, presentSheet } from "./event-manager";
import SettingsService from "./settings";
+import { strings } from "@notesnook/intl";
const MS_DAY = 86400000;
const MS_WEEK = MS_DAY * 7;
@@ -90,16 +91,15 @@ async function checkBackupDirExists(reset = false, context = "global") {
return;
}
presentDialog({
- title: "Select backup folder",
- paragraph:
- "Please select a folder where you would like to store backup files.",
+ title: strings.selectBackupDir(),
+ paragraph: strings.selectBackupDirDesc(),
positivePress: async () => {
resolve(await getDirectoryAndroid());
},
onClose: () => {
resolve(null);
},
- positiveText: "Select",
+ positiveText: strings.select(),
context: context
});
});
@@ -110,14 +110,10 @@ async function checkBackupDirExists(reset = false, context = "global") {
async function presentBackupCompleteSheet(backupFilePath: string) {
presentSheet({
- title: "Backup complete",
+ title: strings.backupComplete(),
icon: "cloud-upload",
- paragraph: `${
- Platform.OS === "android"
- ? 'Backup file saved in "Notesnook backups" folder on your phone'
- : "Backup file is saved in File Manager/Notesnook folder"
- }. Share your backup to your cloud so you do not lose it.`,
- actionText: "Share backup",
+ paragraph: strings.backupSaved(Platform.OS),
+ actionText: strings.shareBackup(),
actionsArray: [
{
action: () => {
@@ -134,7 +130,7 @@ async function presentBackupCompleteSheet(backupFilePath: string) {
} as any).catch(console.log);
}
},
- actionText: "Share"
+ actionText: strings.share()
},
{
action: async () => {
@@ -143,7 +139,7 @@ async function presentBackupCompleteSheet(backupFilePath: string) {
showBackupCompleteSheet: false
});
},
- actionText: "Never ask again",
+ actionText: strings.neverAskAgain(),
type: "secondary"
}
]
@@ -195,10 +191,10 @@ async function run(
);
if (progress) {
- startProgress({
- title: `Creating ${backupType === "full" ? "a full " : ""}backup`,
- paragraph: `Please wait while we create a backup of your data. This may take a few minutes.`,
- progress: undefined
+ presentSheet({
+ title: strings.backingUpData(backupType),
+ paragraph: strings.backupDataDesc(),
+ progress: true
});
}
@@ -294,7 +290,7 @@ async function run(
}
ToastManager.show({
- heading: "Backup successful",
+ heading: strings.backupSuccess(),
type: "success",
context: "global"
});
@@ -303,7 +299,7 @@ async function run(
path: path
};
} catch (e) {
- ToastManager.error(e as Error, "Backup failed", context || "global");
+ ToastManager.error(e, strings.backupFailed(), context || "global");
if (
(e as Error)?.message?.includes("android.net.Uri") &&
diff --git a/apps/mobile/app/services/biometrics.ts b/apps/mobile/app/services/biometrics.ts
index bda205fd9..3a7805abd 100644
--- a/apps/mobile/app/services/biometrics.ts
+++ b/apps/mobile/app/services/biometrics.ts
@@ -27,6 +27,7 @@ import Storage from "../common/database/storage";
import { useSettingStore } from "../stores/use-setting-store";
import { ToastOptions, ToastManager } from "./event-manager";
import { useUserStore } from "../stores/use-user-store";
+import { strings } from "@notesnook/intl";
const KeychainConfig = Platform.select({
ios: {
@@ -98,22 +99,19 @@ async function getCredentials(title?: string, description?: string) {
}, 500);
FingerprintScanner.release();
let message: ToastOptions = {
- heading: "Authentication with biometrics failed.",
- message: 'Tap "Biometric Unlock" to try again.',
+ heading: strings.biometricsAuthFailed(),
type: "error",
context: "local"
};
if (e.name === "DeviceLocked") {
message = {
- heading: "Biometrics authentication failed.",
- message: "Wait 30 seconds to try again.",
+ heading: strings.biometricsAuthFailed(),
type: "error",
context: "local"
};
} else if (e.name === "UserFallback") {
message = {
- heading: "Authentication cancelled by user.",
- message: 'Tap "Biometric Unlock" to try again.',
+ heading: strings.biometricsAuthCancelled(),
type: "error",
context: "local"
};
@@ -162,14 +160,13 @@ async function validateUser(title: string, description?: string) {
FingerprintScanner.release();
if (e.name === "DeviceLocked") {
ToastManager.show({
- heading: "Biometrics authentication failed.",
- message: "Wait 30 seconds to try again.",
+ heading: strings.biometricsAuthFailed(),
type: "error",
context: "local"
});
} else {
ToastManager.show({
- heading: "Authentication failed.",
+ heading: strings.biometricsAuthFailed(),
message: "Tap to try again.",
type: "error",
context: "local"
diff --git a/apps/mobile/app/services/message.js b/apps/mobile/app/services/message.js
index dc9a7a465..c6950621f 100644
--- a/apps/mobile/app/services/message.js
+++ b/apps/mobile/app/services/message.js
@@ -30,13 +30,12 @@ import { eSendEvent, presentSheet } from "./event-manager";
import PremiumService from "./premium";
import SettingsService from "./settings";
import { Update } from "../components/sheets/update";
+import { strings } from "@notesnook/intl";
const rateAppMessage = {
visible: true,
- message: "We would love to know what you think",
- actionText:
- "Rate Notesnook on " +
- `${Platform.OS === "ios" ? "App store" : "Play store"}`,
+ message: strings.rateAppMessage(),
+ actionText: strings.rateAppActionText(Platform.OS),
onPress: () => {
eSendEvent(eOpenRateDialog);
},
@@ -51,8 +50,8 @@ export function setRateAppMessage() {
const recoveryKeyMessage = {
visible: true,
- message: "Keep your data safe",
- actionText: "Save your account recovery key",
+ message: strings.recoveryKeyMessage(),
+ actionText: strings.recoveryKeyMessageActionText(),
onPress: () => {
verifyUser(
null,
@@ -80,8 +79,8 @@ export function setRecoveryKeyMessage() {
const loginMessage = {
visible: true,
- message: "You are not logged in",
- actionText: "Login to encrypt and sync notes",
+ message: strings.loginMessage(),
+ actionText: strings.loginMessageActionText(),
onPress: () => {
eSendEvent(eOpenLoginDialog);
},
@@ -96,8 +95,8 @@ export function setLoginMessage() {
const emailMessage = {
visible: true,
- message: "Email not confirmed",
- actionText: "Please confirm your email to sync notes.",
+ message: strings.syncDisabled(),
+ actionText: strings.syncDisabledActionText(),
onPress: () => {
PremiumService.showVerifyEmailDialog();
},
@@ -125,8 +124,8 @@ export function clearMessage() {
const autoBackupsOff = {
visible: true,
- message: "Automatic backups turned off",
- actionText: "Get Notesnook Pro to enable automatic backups",
+ message: strings.autoBackupsOffMessage(),
+ actionText: strings.autoBackupsOffActionText(),
onPress: () => {
clearMessage();
},
@@ -141,8 +140,8 @@ export function setAutobackOffMessage() {
const updateAvailableMessage = (version) => ({
visible: true,
- message: "New update available",
- actionText: "Tap here to update to the latest version",
+ message: strings.newUpdateMessage(),
+ actionText: strings.newUpdateActionText(),
onPress: () => {
presentSheet({
component: (ref) => <Update version={version} fwdRef={ref} />
diff --git a/apps/mobile/app/services/notifications.ts b/apps/mobile/app/services/notifications.ts
index c77c1b04a..ac98c6335 100644
--- a/apps/mobile/app/services/notifications.ts
+++ b/apps/mobile/app/services/notifications.ts
@@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { Reminder } from "@notesnook/core";
+import { strings } from "@notesnook/intl";
import notifee, {
AndroidStyle,
AuthorizationStatus,
@@ -185,7 +186,7 @@ const onEvent = async ({ type, detail }: Event) => {
useReminderStore.getState().refresh();
break;
}
- case "UNPIN": {
+ case strings.unpin(): {
if (!notification?.id) break;
remove(notification?.id as string);
const reminder = await db.reminders?.reminder(
@@ -202,18 +203,18 @@ const onEvent = async ({ type, detail }: Event) => {
break;
}
- case "Hide":
+ case strings.hide():
unpinQuickNote();
break;
case "ReplyInput": {
displayNotification({
- title: "Quick note",
- message: 'Tap on "Take note" to add a note.',
+ title: strings.quickNoteTitle(),
+ message: strings.quickNoteContent(),
ongoing: true,
- actions: ["ReplyInput", "Hide"],
+ actions: ["ReplyInput", strings.hide()],
id: "notesnook_note_input",
- reply_button_text: "Take note",
- reply_placeholder_text: "Write something..."
+ reply_button_text: strings.takeNote(),
+ reply_placeholder_text: strings.quickNotePlaceholder()
});
const id = await db.notes?.add({
@@ -261,7 +262,7 @@ async function setupIOSCategories() {
{
id: "REMINDER_SNOOZE",
foreground: false,
- title: `Remind in ${reminderTime} min`,
+ title: strings.remindMeIn() + ` ${reminderTime} min`,
authenticationRequired: false
}
]
@@ -272,13 +273,13 @@ async function setupIOSCategories() {
{
id: "REMINDER_SNOOZE",
foreground: false,
- title: `Remind in ${reminderTime} min`,
+ title: strings.remindMeIn() + ` ${reminderTime} min`,
authenticationRequired: false
},
{
id: "REMINDER_DISABLE",
foreground: false,
- title: "Disable",
+ title: strings.disable(),
authenticationRequired: false
}
]
@@ -316,7 +317,7 @@ async function scheduleNotification(
message: description || "",
ongoing: true,
subtitle: description || "",
- actions: ["UNPIN"]
+ actions: [strings.unpin()]
});
}
return;
@@ -346,7 +347,7 @@ async function scheduleNotification(
];
if (reminder.mode === "repeat") {
androidActions.push({
- title: "Disable",
+ title: strings.disable(),
pressAction: {
id: "REMINDER_DISABLE"
}
@@ -548,10 +549,10 @@ async function displayNotification({
function openSettingsDialog(context: string) {
return new Promise((resolve) => {
presentDialog({
- title: "Notifications disabled",
- paragraph: `Reminders cannot be set because notifications have been disabled from app settings. If you want to keep receiving reminder notifications, enable notifications for Notesnook from app settings.`,
- positiveText: Platform.OS === "ios" ? undefined : "Open settings",
- negativeText: Platform.OS === "ios" ? "Close" : "Cancel",
+ title: strings.notificationsDisabled(),
+ paragraph: strings.notificationsDisabledDesc(),
+ positiveText: Platform.OS === "ios" ? undefined : strings.openSettings(),
+ negativeText: Platform.OS === "ios" ? strings.close() : strings.cancel(),
positivePress:
Platform.OS === "ios"
? undefined
@@ -883,12 +884,12 @@ async function pinQuickNote(launch: boolean) {
return;
}
displayNotification({
- title: "Quick note",
- message: 'Tap on "Take note" to add a note.',
+ title: strings.quickNoteTitle(),
+ message: strings.quickNoteContent(),
ongoing: true,
- actions: ["ReplyInput", "Hide"],
- reply_button_text: "Take note",
- reply_placeholder_text: "Write something...",
+ actions: ["ReplyInput", strings.hide()],
+ reply_button_text: strings.takeNote(),
+ reply_placeholder_text: strings.quickNotePlaceholder(),
id: "notesnook_note_input"
});
});
@@ -958,7 +959,7 @@ async function pinNote(id: string) {
subtitle: "",
bigText: html,
ongoing: true,
- actions: ["UNPIN"],
+ actions: [strings.unpin()],
id: note.id
});
} catch (e) {
diff --git a/apps/mobile/app/services/premium.js b/apps/mobile/app/services/premium.js
index 4f496b64b..619a020bf 100644
--- a/apps/mobile/app/services/premium.js
+++ b/apps/mobile/app/services/premium.js
@@ -38,6 +38,7 @@ import {
import { eSendEvent, presentSheet, ToastManager } from "./event-manager";
import SettingsService from "./settings";
+import { strings } from "@notesnook/intl";
let premiumStatus = 0;
/**
@@ -141,36 +142,36 @@ const onUserStatusCheck = async (type) => {
case CHECK_IDS.noteColor:
message = {
context: "sheet",
- title: "Get Notesnook Pro",
- desc: "To assign colors to a note get Notesnook Pro today."
+ title: strings.getNotesnookPro(),
+ desc: strings.colorsProMessage()
};
break;
case CHECK_IDS.noteExport:
message = {
context: "export",
- title: "Export in PDF, MD & HTML",
- desc: "Get Notesnook Pro to export your notes in PDF, Markdown and HTML formats!"
+ title: strings.getNotesnookPro(),
+ desc: strings.exportProMessage()
};
break;
case CHECK_IDS.noteTag:
message = {
context: "sheet",
- title: "Get Notesnook Pro",
- desc: "To create more tags for your notes become a Pro user today."
+ title: strings.getNotesnookPro(),
+ desc: strings.tagsProMessage()
};
break;
case CHECK_IDS.notebookAdd:
message = {
context: "sheet",
- title: "Get Notesnook Pro",
- desc: "With Notesnook Pro you can create unlimited notebooks and do so much more! Get it now."
+ title: strings.getNotesnookPro(),
+ desc: strings.notebookProMessage()
};
break;
case CHECK_IDS.vaultAdd:
message = {
context: "sheet",
- title: "Add Notes to Vault",
- desc: "With Notesnook Pro you can add notes to your vault and do so much more! Get it now."
+ title: strings.getNotesnookPro(),
+ desc: strings.vaultProMessage()
};
break;
}
@@ -184,9 +185,8 @@ const onUserStatusCheck = async (type) => {
const showVerifyEmailDialog = () => {
presentSheet({
- title: "Confirm your email",
- paragraph:
- "We have sent you an email confirmation link. Please check your email inbox. If you cannot find the email, check your spam folder.",
+ title: strings.confirmEmail(),
+ paragraph: strings.emailConfirmationLinkSent(),
action: async () => {
try {
let lastVerificationEmailTime =
@@ -196,7 +196,7 @@ const showVerifyEmailDialog = () => {
Date.now() - lastVerificationEmailTime < 60000 * 2
) {
ToastManager.show({
- heading: "Please wait before requesting another email",
+ heading: strings.waitBeforeResendEmail(),
type: "error",
context: "local"
});
@@ -209,22 +209,21 @@ const showVerifyEmailDialog = () => {
});
ToastManager.show({
- heading: "Verification email sent!",
- message:
- "We have sent you an email confirmation link. Please check your email inbox to verify your account. If you cannot find the email, check your spam folder.",
+ heading: strings.verificationEmailSent(),
+ message: strings.emailConfirmationLinkSent(),
type: "success",
context: "local"
});
} catch (e) {
ToastManager.show({
- heading: "Could not send email",
+ heading: strings.failedToSendVerificationEmail(),
message: e.message,
type: "error",
context: "local"
});
}
},
- actionText: "Resend Confirmation Link"
+ actionText: strings.resendEmail()
});
};
@@ -359,7 +358,7 @@ async function getRemainingTrialDaysStatus() {
if (current > 75 && isTrial && lastTrialDialogShownAt !== "ending") {
eSendEvent(eOpenTrialEndingDialog, {
- title: "Your trial is ending soon",
+ title: strings.trialEndingSoon(),
offer: null,
extend: false
});
@@ -369,7 +368,7 @@ async function getRemainingTrialDaysStatus() {
if (!premium && lastTrialDialogShownAt !== "expired") {
eSendEvent(eOpenTrialEndingDialog, {
- title: "Your trial has expired",
+ title: strings.trialExpired(),
offer: 30,
extend: false
});
diff --git a/apps/mobile/app/services/tip-manager.ts b/apps/mobile/app/services/tip-manager.ts
index 11cc39d6f..65b49c79f 100644
--- a/apps/mobile/app/services/tip-manager.ts
+++ b/apps/mobile/app/services/tip-manager.ts
@@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import { useEffect, useRef, useState } from "react";
import { MMKV } from "../common/database/mmkv";
+import { strings } from "@notesnook/intl";
declare global {
interface Array<T> {
@@ -53,7 +54,7 @@ type Context =
| "topics";
export type TTip = {
- text: string;
+ text: () => string;
contexts: Context[];
image?: string;
button?: TipButton;
@@ -61,7 +62,7 @@ export type TTip = {
export type Popup = {
id: string;
- text: string;
+ text: () => string;
};
const destructiveContexts = ["first-note"];
@@ -143,71 +144,9 @@ export const useTip = (
return tip;
};
-const tips: TTip[] = [
- {
- text: "You can swipe left anywhere in the app to start a new note.",
- contexts: ["notes", "first-note"]
- },
- {
- text: "Long press on any item in list to enter multi-select mode.",
- contexts: ["notes", "notebook", "notebook", "tags", "topics"]
- },
- {
- text: "Monographs enable you to share your notes in a secure and private way.",
- contexts: ["monographs"]
- },
- {
- text: "Monographs can be encrypted with a secret key and shared with anyone.",
- contexts: ["monographs"]
- },
- {
- text: "You can pin frequently used Notebooks to the Side Menu to quickly access them.",
- contexts: ["notebook", "notebooks"]
- },
- {
- text: "A notebook can have unlimited topics with unlimited notes.",
- contexts: ["notebook", "topics"]
- },
- {
- text: "You can multi-select notes and move them to a notebook at once",
- contexts: ["notebook", "topics"]
- },
- {
- text: "Mark important notes by adding them to favorites.",
- contexts: ["notes"]
- },
- {
- text: "Are you scrolling a lot to find a specific note? Pin it to the top from Note properties.",
- contexts: ["notes"]
- },
- {
- text: "You can view & restore older versions of any note by going to its properties -> History.",
- contexts: ["notes"]
- }
-];
+const tips: TTip[] = strings.tips as TTip[];
-const popups: Popup[] = [
- {
- id: "sortmenu",
- text: "Tap here to change sorting"
- },
- {
- id: "jumpto",
- text: "Tap here to jump to a section"
- },
- {
- id: "compactmode",
- text: "Try compact mode to fit more items on screen"
- },
- {
- id: "searchreplace",
- text: "Switch to search/replace mode"
- },
- {
- id: "notebookshortcut",
- text: "Create shortcut of this notebook in side menu"
- }
-];
+const popups: Popup[] = strings.popups;
const placeholderTips = [
"Want to remember something? Pin an important note in notifications.",
diff --git a/apps/mobile/app/utils/functions.js b/apps/mobile/app/utils/functions.js
index 77997f291..3ea345b8c 100644
--- a/apps/mobile/app/utils/functions.js
+++ b/apps/mobile/app/utils/functions.js
@@ -28,6 +28,7 @@ import { useSelectionStore } from "../stores/use-selection-store";
import { eOnNotebookUpdated, eUpdateNoteInEditor } from "./events";
import { getParentNotebookId } from "./notebooks";
import { useTagStore } from "../stores/use-tag-store";
+import { strings } from "@notesnook/intl";
function confirmDeleteAllNotes(items, type, context) {
return new Promise((resolve) => {
@@ -85,8 +86,8 @@ export const deleteItems = async (items, type, context) => {
for (const id of ids) {
if (db.monographs.isPublished(id)) {
ToastManager.show({
- heading: "Some notes are published",
- message: "Unpublish published notes to delete them",
+ heading: strings.someNotesPublished(),
+ message: strings.unpublishToDelete(),
type: "error",
context: "global"
});
@@ -113,10 +114,10 @@ export const deleteItems = async (items, type, context) => {
}
} else if (type === "tag") {
presentDialog({
- title: `Delete ${ids.length} ${ids.length > 1 ? "tags" : "tag"}?`,
- positiveText: "Delete",
- negativeText: "Cancel",
- paragraph: "Are you sure you want to delete these tags?",
+ title: strings.deleteTags(ids.length),
+ positiveText: strings.delete(),
+ negativeText: strings.cancel(),
+ paragraph: strings.deleteTagsConfirm(),
positivePress: async () => {
await db.tags.remove(...ids);
useTagStore.getState().refresh();
diff --git a/apps/mobile/app/utils/unlock-vault.ts b/apps/mobile/app/utils/unlock-vault.ts
index d559dba8d..48f4a9c27 100644
--- a/apps/mobile/app/utils/unlock-vault.ts
+++ b/apps/mobile/app/utils/unlock-vault.ts
@@ -16,6 +16,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+import { strings } from "@notesnook/intl";
import { db } from "../common/database";
import { presentDialog } from "../components/dialog/functions";
import BiometricService from "../services/biometrics";
@@ -65,8 +66,7 @@ export async function unlockVault({
const unlocked = await db.vault.unlock(value);
if (!unlocked) {
ToastManager.show({
- heading: "Invalid password",
- message: "Please enter a valid password",
+ heading: strings.passwordIncorrect(),
type: "error",
context: "local"
});
diff --git a/apps/mobile/package-lock.json b/apps/mobile/package-lock.json
index 0d249eedf..7f885dfb2 100644
--- a/apps/mobile/package-lock.json
+++ b/apps/mobile/package-lock.json
@@ -8105,7 +8105,7 @@
},
"../../packages/editor-mobile/node_modules/@types/prop-types": {
"version": "15.7.11",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"../../packages/editor-mobile/node_modules/@types/q": {
@@ -8125,7 +8125,7 @@
},
"../../packages/editor-mobile/node_modules/@types/react": {
"version": "18.2.39",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"@types/prop-types": "*",
@@ -8156,7 +8156,7 @@
},
"../../packages/editor-mobile/node_modules/@types/scheduler": {
"version": "0.16.8",
- "dev": true,
+ "devOptional": true,
"license": "MIT"
},
"../../packages/editor-mobile/node_modules/@types/semver": {
@@ -13003,7 +13003,7 @@
},
"../../packages/editor-mobile/node_modules/immer": {
"version": "9.0.21",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"funding": {
"type": "opencollective",
@@ -23515,7 +23515,6 @@
},
"../../packages/editor/node_modules/js-tokens": {
"version": "4.0.0",
- "dev": true,
"license": "MIT"
},
"../../packages/editor/node_modules/jsesc": {
@@ -23566,7 +23565,6 @@
},
"../../packages/editor/node_modules/loose-envify": {
"version": "1.4.0",
- "dev": true,
"license": "MIT",
"dependencies": {
"js-tokens": "^3.0.0 || ^4.0.0"
@@ -30130,7 +30128,6 @@
},
"node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
@@ -30144,7 +30141,6 @@
},
"node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5",
@@ -30292,7 +30288,6 @@
},
"node_modules/@babel/plugin-proposal-private-property-in-object": {
"version": "7.21.0-placeholder-for-preset-env.2",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=6.9.0"
@@ -30303,7 +30298,6 @@
},
"node_modules/@babel/plugin-proposal-unicode-property-regex": {
"version": "7.18.6",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-regexp-features-plugin": "^7.18.6",
@@ -30350,7 +30344,6 @@
},
"node_modules/@babel/plugin-syntax-class-static-block": {
"version": "7.14.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.14.5"
@@ -30387,7 +30380,6 @@
},
"node_modules/@babel/plugin-syntax-export-namespace-from": {
"version": "7.8.3",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.8.3"
@@ -30411,7 +30403,6 @@
},
"node_modules/@babel/plugin-syntax-import-assertions": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
@@ -30425,7 +30416,6 @@
},
"node_modules/@babel/plugin-syntax-import-attributes": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
@@ -30439,7 +30429,6 @@
},
"node_modules/@babel/plugin-syntax-import-meta": {
"version": "7.10.4",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.10.4"
@@ -30450,7 +30439,6 @@
},
"node_modules/@babel/plugin-syntax-json-strings": {
"version": "7.8.3",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.8.0"
@@ -30547,7 +30535,6 @@
},
"node_modules/@babel/plugin-syntax-top-level-await": {
"version": "7.14.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.14.5"
@@ -30574,7 +30561,6 @@
},
"node_modules/@babel/plugin-syntax-unicode-sets-regex": {
"version": "7.18.6",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-regexp-features-plugin": "^7.18.6",
@@ -30602,7 +30588,6 @@
},
"node_modules/@babel/plugin-transform-async-generator-functions": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-environment-visitor": "^7.22.5",
@@ -30661,7 +30646,6 @@
},
"node_modules/@babel/plugin-transform-class-properties": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-class-features-plugin": "^7.22.5",
@@ -30676,7 +30660,6 @@
},
"node_modules/@babel/plugin-transform-class-static-block": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-class-features-plugin": "^7.22.5",
@@ -30740,7 +30723,6 @@
},
"node_modules/@babel/plugin-transform-dotall-regex": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-regexp-features-plugin": "^7.22.5",
@@ -30755,7 +30737,6 @@
},
"node_modules/@babel/plugin-transform-duplicate-keys": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
@@ -30769,7 +30750,6 @@
},
"node_modules/@babel/plugin-transform-dynamic-import": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5",
@@ -30799,7 +30779,6 @@
},
"node_modules/@babel/plugin-transform-export-namespace-from": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5",
@@ -30857,7 +30836,6 @@
},
"node_modules/@babel/plugin-transform-json-strings": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5",
@@ -30885,7 +30863,6 @@
},
"node_modules/@babel/plugin-transform-logical-assignment-operators": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5",
@@ -30914,7 +30891,6 @@
},
"node_modules/@babel/plugin-transform-modules-amd": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-module-transforms": "^7.22.5",
@@ -30944,7 +30920,6 @@
},
"node_modules/@babel/plugin-transform-modules-systemjs": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-hoist-variables": "^7.22.5",
@@ -30961,7 +30936,6 @@
},
"node_modules/@babel/plugin-transform-modules-umd": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-module-transforms": "^7.22.5",
@@ -30990,7 +30964,6 @@
},
"node_modules/@babel/plugin-transform-new-target": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
@@ -31018,7 +30991,6 @@
},
"node_modules/@babel/plugin-transform-numeric-separator": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5",
@@ -31033,7 +31005,6 @@
},
"node_modules/@babel/plugin-transform-object-rest-spread": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/compat-data": "^7.22.5",
@@ -31066,7 +31037,6 @@
},
"node_modules/@babel/plugin-transform-optional-catch-binding": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5",
@@ -31224,7 +31194,6 @@
},
"node_modules/@babel/plugin-transform-reserved-words": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
@@ -31316,7 +31285,6 @@
},
"node_modules/@babel/plugin-transform-typeof-symbol": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
@@ -31346,7 +31314,6 @@
},
"node_modules/@babel/plugin-transform-unicode-escapes": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
@@ -31360,7 +31327,6 @@
},
"node_modules/@babel/plugin-transform-unicode-property-regex": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-regexp-features-plugin": "^7.22.5",
@@ -31389,7 +31355,6 @@
},
"node_modules/@babel/plugin-transform-unicode-sets-regex": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-create-regexp-features-plugin": "^7.22.5",
@@ -31404,7 +31369,6 @@
},
"node_modules/@babel/preset-env": {
"version": "7.22.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/compat-data": "^7.22.5",
@@ -31497,7 +31461,6 @@
},
"node_modules/@babel/preset-env/node_modules/semver": {
"version": "6.3.0",
- "dev": true,
"license": "ISC",
"bin": {
"semver": "bin/semver.js"
@@ -31520,7 +31483,6 @@
},
"node_modules/@babel/preset-modules": {
"version": "0.1.5",
- "dev": true,
"license": "MIT",
"dependencies": {
"@babel/helper-plugin-utils": "^7.0.0",
@@ -34704,7 +34666,6 @@
},
"node_modules/@types/eslint": {
"version": "8.40.2",
- "dev": true,
"license": "MIT",
"dependencies": {
"@types/estree": "*",
@@ -34713,7 +34674,6 @@
},
"node_modules/@types/eslint-scope": {
"version": "3.7.4",
- "dev": true,
"license": "MIT",
"dependencies": {
"@types/eslint": "*",
@@ -34722,7 +34682,6 @@
},
"node_modules/@types/estree": {
"version": "1.0.1",
- "dev": true,
"license": "MIT"
},
"node_modules/@types/graceful-fs": {
@@ -35183,7 +35142,6 @@
},
"node_modules/@webassemblyjs/ast": {
"version": "1.11.6",
- "dev": true,
"license": "MIT",
"dependencies": {
"@webassemblyjs/helper-numbers": "1.11.6",
@@ -35192,22 +35150,18 @@
},
"node_modules/@webassemblyjs/floating-point-hex-parser": {
"version": "1.11.6",
- "dev": true,
"license": "MIT"
},
"node_modules/@webassemblyjs/helper-api-error": {
"version": "1.11.6",
- "dev": true,
"license": "MIT"
},
"node_modules/@webassemblyjs/helper-buffer": {
"version": "1.11.6",
- "dev": true,
"license": "MIT"
},
"node_modules/@webassemblyjs/helper-numbers": {
"version": "1.11.6",
- "dev": true,
"license": "MIT",
"dependencies": {
"@webassemblyjs/floating-point-hex-parser": "1.11.6",
@@ -35217,12 +35171,10 @@
},
"node_modules/@webassemblyjs/helper-wasm-bytecode": {
"version": "1.11.6",
- "dev": true,
"license": "MIT"
},
"node_modules/@webassemblyjs/helper-wasm-section": {
"version": "1.11.6",
- "dev": true,
"license": "MIT",
"dependencies": {
"@webassemblyjs/ast": "1.11.6",
@@ -35233,7 +35185,6 @@
},
"node_modules/@webassemblyjs/ieee754": {
"version": "1.11.6",
- "dev": true,
"license": "MIT",
"dependencies": {
"@xtuc/ieee754": "^1.2.0"
@@ -35241,7 +35192,6 @@
},
"node_modules/@webassemblyjs/leb128": {
"version": "1.11.6",
- "dev": true,
"license": "Apache-2.0",
"dependencies": {
"@xtuc/long": "4.2.2"
@@ -35249,12 +35199,10 @@
},
"node_modules/@webassemblyjs/utf8": {
"version": "1.11.6",
- "dev": true,
"license": "MIT"
},
"node_modules/@webassemblyjs/wasm-edit": {
"version": "1.11.6",
- "dev": true,
"license": "MIT",
"dependencies": {
"@webassemblyjs/ast": "1.11.6",
@@ -35269,7 +35217,6 @@
},
"node_modules/@webassemblyjs/wasm-gen": {
"version": "1.11.6",
- "dev": true,
"license": "MIT",
"dependencies": {
"@webassemblyjs/ast": "1.11.6",
@@ -35281,7 +35228,6 @@
},
"node_modules/@webassemblyjs/wasm-opt": {
"version": "1.11.6",
- "dev": true,
"license": "MIT",
"dependencies": {
"@webassemblyjs/ast": "1.11.6",
@@ -35292,7 +35238,6 @@
},
"node_modules/@webassemblyjs/wasm-parser": {
"version": "1.11.6",
- "dev": true,
"license": "MIT",
"dependencies": {
"@webassemblyjs/ast": "1.11.6",
@@ -35305,7 +35250,6 @@
},
"node_modules/@webassemblyjs/wast-printer": {
"version": "1.11.6",
- "dev": true,
"license": "MIT",
"dependencies": {
"@webassemblyjs/ast": "1.11.6",
@@ -35363,12 +35307,10 @@
},
"node_modules/@xtuc/ieee754": {
"version": "1.2.0",
- "dev": true,
"license": "BSD-3-Clause"
},
"node_modules/@xtuc/long": {
"version": "4.2.2",
- "dev": true,
"license": "Apache-2.0"
},
"node_modules/@yarnpkg/lockfile": {
@@ -35420,7 +35362,6 @@
},
"node_modules/acorn-import-assertions": {
"version": "1.9.0",
- "dev": true,
"license": "MIT",
"peerDependencies": {
"acorn": "^8"
@@ -36311,7 +36252,6 @@
},
"node_modules/chrome-trace-event": {
"version": "1.0.3",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=6.0"
@@ -37275,6 +37215,15 @@
"node": ">=0.10.0"
}
},
+ "node_modules/elegant-spinner": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/elegant-spinner/-/elegant-spinner-1.0.1.tgz",
+ "integrity": "sha512-B+ZM+RXvRqQaAmkMlO/oSe5nMUOaUnyfGYCEHoR8wrXsZR2mA0XVibsxV1bvTwxdRWah1PkQqso2EzhILGHtEQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/emittery": {
"version": "0.13.1",
"dev": true,
@@ -37310,7 +37259,6 @@
},
"node_modules/enhanced-resolve": {
"version": "5.15.0",
- "dev": true,
"license": "MIT",
"dependencies": {
"graceful-fs": "^4.2.4",
@@ -37414,7 +37362,6 @@
},
"node_modules/es-module-lexer": {
"version": "1.3.0",
- "dev": true,
"license": "MIT"
},
"node_modules/es-set-tostringtag": {
@@ -37747,7 +37694,6 @@
},
"node_modules/eslint-scope": {
"version": "5.1.1",
- "dev": true,
"license": "BSD-2-Clause",
"dependencies": {
"esrecurse": "^4.3.0",
@@ -37759,7 +37705,6 @@
},
"node_modules/eslint-scope/node_modules/estraverse": {
"version": "4.3.0",
- "dev": true,
"license": "BSD-2-Clause",
"engines": {
"node": ">=4.0"
@@ -37922,7 +37867,6 @@
},
"node_modules/esrecurse": {
"version": "4.3.0",
- "dev": true,
"license": "BSD-2-Clause",
"dependencies": {
"estraverse": "^5.2.0"
@@ -37933,7 +37877,6 @@
},
"node_modules/estraverse": {
"version": "5.3.0",
- "dev": true,
"license": "BSD-2-Clause",
"engines": {
"node": ">=4.0"
@@ -37941,7 +37884,6 @@
},
"node_modules/esutils": {
"version": "2.0.3",
- "dev": true,
"license": "BSD-2-Clause",
"engines": {
"node": ">=0.10.0"
@@ -38677,7 +38619,6 @@
},
"node_modules/glob-to-regexp": {
"version": "0.4.1",
- "dev": true,
"license": "BSD-2-Clause"
},
"node_modules/global": {
@@ -40649,7 +40590,6 @@
},
"node_modules/json-parse-even-better-errors": {
"version": "2.3.1",
- "dev": true,
"license": "MIT"
},
"node_modules/json-schema-ref-resolver": {
@@ -41143,7 +41083,6 @@
},
"node_modules/loader-runner": {
"version": "4.3.0",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=6.11.5"
@@ -42229,6 +42168,15 @@
"node": ">=0.10.0"
}
},
+ "node_modules/number-is-nan": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
+ "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/ob1": {
"version": "0.80.9",
"license": "MIT",
@@ -43295,7 +43243,6 @@
},
"node_modules/randombytes": {
"version": "2.1.0",
- "dev": true,
"license": "MIT",
"dependencies": {
"safe-buffer": "^5.1.0"
@@ -44108,7 +44055,6 @@
},
"node_modules/react-test-renderer": {
"version": "18.2.0",
- "dev": true,
"license": "MIT",
"dependencies": {
"react-is": "^18.2.0",
@@ -44121,12 +44067,10 @@
},
"node_modules/react-test-renderer/node_modules/react-is": {
"version": "18.2.0",
- "dev": true,
"license": "MIT"
},
"node_modules/react-test-renderer/node_modules/scheduler": {
"version": "0.23.0",
- "dev": true,
"license": "MIT",
"dependencies": {
"loose-envify": "^1.1.0"
@@ -44421,6 +44365,15 @@
"queue-microtask": "^1.2.2"
}
},
+ "node_modules/rx-lite": {
+ "version": "4.0.8"
+ },
+ "node_modules/rx-lite-aggregates": {
+ "version": "4.0.8",
+ "dependencies": {
+ "rx-lite": "*"
+ }
+ },
"node_modules/rxjs": {
"version": "6.6.7",
"dev": true,
@@ -44586,7 +44539,6 @@
},
"node_modules/serialize-javascript": {
"version": "6.0.1",
- "dev": true,
"license": "BSD-3-Clause",
"dependencies": {
"randombytes": "^2.1.0"
@@ -45304,7 +45256,6 @@
},
"node_modules/terser-webpack-plugin": {
"version": "5.3.9",
- "dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/trace-mapping": "^0.3.17",
@@ -45337,7 +45288,6 @@
},
"node_modules/terser-webpack-plugin/node_modules/jest-worker": {
"version": "27.5.1",
- "dev": true,
"license": "MIT",
"dependencies": {
"@types/node": "*",
@@ -45350,7 +45300,6 @@
},
"node_modules/terser-webpack-plugin/node_modules/supports-color": {
"version": "8.1.1",
- "dev": true,
"license": "MIT",
"dependencies": {
"has-flag": "^4.0.0"
@@ -45935,7 +45884,6 @@
},
"node_modules/watchpack": {
"version": "2.4.0",
- "dev": true,
"license": "MIT",
"dependencies": {
"glob-to-regexp": "^0.4.1",
@@ -45958,7 +45906,6 @@
},
"node_modules/webpack": {
"version": "5.88.2",
- "dev": true,
"license": "MIT",
"dependencies": {
"@types/eslint-scope": "^3.7.3",
@@ -46073,7 +46020,6 @@
},
"node_modules/webpack-sources": {
"version": "3.2.3",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=10.13.0"
diff --git a/apps/mobile/package.json b/apps/mobile/package.json
index 3438948d8..c9b7717fa 100644
--- a/apps/mobile/package.json
+++ b/apps/mobile/package.json
@@ -39,10 +39,10 @@
"@notesnook/core": "file:../../packages/core",
"@notesnook/editor": "file:../../packages/editor",
"@notesnook/editor-mobile": "file:../../packages/editor-mobile",
+ "@notesnook/intl": "file:../../packages/intl",
"@notesnook/logger": "file:../../packages/logger",
"@notesnook/theme": "file:../../packages/theme",
"@notesnook/themes-server": "file:../../servers/themes",
- "@notesnook/intl": "file:../../packages/intl",
"diffblazer": "^1.0.1",
"react": "18.2.0",
"react-native": "0.74.5",
diff --git a/packages/intl/locale/en.po b/packages/intl/locale/en.po
index 6a57d8678..34c1297bb 100644
--- a/packages/intl/locale/en.po
+++ b/packages/intl/locale/en.po
@@ -13,11 +13,11 @@ msgstr ""
"Language-Team: \n"
"Plural-Forms: \n"
-#: src/strings.tsx:688
+#: src/strings.tsx:690
msgid "— not just the"
msgstr "— not just the"
-#: src/strings.tsx:461
+#: src/strings.tsx:463
msgid "\"I understand, change my password\""
msgstr "\"I understand, change my password\""
@@ -29,7 +29,7 @@ msgstr "\"I understand, change my password\""
msgid "(Empty block)"
msgstr "(Empty block)"
-#: src/strings.tsx:435
+#: src/strings.tsx:437
msgid "{0} downloaded"
msgstr "{0} downloaded"
@@ -41,11 +41,11 @@ msgstr "{0}... Please wait"
msgid "{count, plural, one {# note} other {# notes} _0 {No notes}}"
msgstr "{count, plural, one {# note} other {# notes} _0 {No notes}}"
-#: src/strings.tsx:769
+#: src/strings.tsx:771
msgid "{count, plural, one {1 {0} deleted} other {# {1} deleted}}"
msgstr "{count, plural, one {1 {0} deleted} other {# {1} deleted}}"
-#: src/strings.tsx:721
+#: src/strings.tsx:723
msgid "{count, plural, one {Are you sure you want to delete this {0} permanently?} other {Are you sure you want to delete these {1} permanently?}}"
msgstr "{count, plural, one {Are you sure you want to delete this {0} permanently?} other {Are you sure you want to delete these {1} permanently?}}"
@@ -53,7 +53,7 @@ msgstr "{count, plural, one {Are you sure you want to delete this {0} permanentl
msgid "{count, plural, one {Are you sure you want to download all attachments of this note?} other {Are you sure you want to download all attachments?}}"
msgstr "{count, plural, one {Are you sure you want to download all attachments of this note?} other {Are you sure you want to download all attachments?}}"
-#: src/strings.tsx:742
+#: src/strings.tsx:744
msgid "{count, plural, one {Are you sure you want to move this notebook to {selectedNotebookTitle}?} other {Are you sure you want to move these # notebooks {selectedNotebookTitle}?}}"
msgstr "{count, plural, one {Are you sure you want to move this notebook to {selectedNotebookTitle}?} other {Are you sure you want to move these # notebooks {selectedNotebookTitle}?}}"
@@ -65,7 +65,7 @@ msgstr "{count, plural, one {Attach image} other {Attach # images}}"
msgid "{count, plural, one {Attachment downloaded at {path}} other {#/{total} attachments downloaded as a zip file at {path}}}"
msgstr "{count, plural, one {Attachment downloaded at {path}} other {#/{total} attachments downloaded as a zip file at {path}}}"
-#: src/strings.tsx:712
+#: src/strings.tsx:714
msgid "{count, plural, one {Delete {0}} other {Delete {1}}}"
msgstr "{count, plural, one {Delete {0}} other {Delete {1}}}"
@@ -81,11 +81,11 @@ msgstr "{count, plural, one {Delete {0}} other {Delete {1}}}"
msgid "{count, plural, one {Failed to download attachment} other {Failed to download # attachments}}"
msgstr "{count, plural, one {Failed to download attachment} other {Failed to download # attachments}}"
-#: src/strings.tsx:740
+#: src/strings.tsx:742
msgid "{count, plural, one {Move notebook} other {Move # notebooks}}"
msgstr "{count, plural, one {Move notebook} other {Move # notebooks}}"
-#: src/strings.tsx:403
+#: src/strings.tsx:405
msgid "{count, plural, one {Moving {title}} other {Moving # notebooks}}"
msgstr "{count, plural, one {Moving {title}} other {Moving # notebooks}}"
@@ -97,7 +97,7 @@ msgstr "{count, plural, one {Note exported} other {# notes exported}}"
#~ msgid "{count, plural, one {Successfully downloaded 1 attachment at {path}} other {Successfully downloaded #/{total} attachments as a zip file at {path}}}"
#~ msgstr "{count, plural, one {Successfully downloaded 1 attachment at {path}} other {Successfully downloaded #/{total} attachments as a zip file at {path}}}"
-#: src/strings.tsx:293
+#: src/strings.tsx:295
msgid "{freq, plural, one {Repeats every {0} on {selectedDays} at {date}} other {Repeats every {freq} {1} every {selectedDays} at {date}}}"
msgstr "{freq, plural, one {Repeats every {0} on {selectedDays} at {date}} other {Repeats every {freq} {1} every {selectedDays} at {date}}}"
@@ -113,7 +113,7 @@ msgstr "{key, select, dateCreated {Created at} dateEdited {Last edited at} dateM
#~ msgid "{mode, select, create {{0}} other {}}"
#~ msgstr "{mode, select, create {{0}} other {}}"
-#: src/strings.tsx:369
+#: src/strings.tsx:371
msgid "{mode, select, create {Create app lock {keyboardType}} change {Change app lock {keyboardType}} remove {Remove app lock {keyboardType}} other {}}"
msgstr "{mode, select, create {Create app lock {keyboardType}} change {Change app lock {keyboardType}} remove {Remove app lock {keyboardType}} other {}}"
@@ -121,11 +121,11 @@ msgstr "{mode, select, create {Create app lock {keyboardType}} change {Change ap
#~ msgid "{mode, select, create {Create app lock {keyboardType}} other {}}"
#~ msgstr "{mode, select, create {Create app lock {keyboardType}} other {}}"
-#: src/strings.tsx:621
+#: src/strings.tsx:623
msgid "{platform, select, android {{name} saved to selected path} other {{name} saved to File Manager/Notesnook/downloads}}"
msgstr "{platform, select, android {{name} saved to selected path} other {{name} saved to File Manager/Notesnook/downloads}}"
-#: src/strings.tsx:318
+#: src/strings.tsx:320
msgid "{type, select, github {v{version} has been released on GitHub} store {v{version} has been released} other {v{version} has been released}}"
msgstr "{type, select, github {v{version} has been released on GitHub} store {v{version} has been released} other {v{version} has been released}}"
@@ -145,56 +145,72 @@ msgstr "{type, select, other {This list is empty} notebook {No notebooks} tag {N
msgid "{type, select, upload {Uploading} download {Downloading} other {Loading}}"
msgstr "{type, select, upload {Uploading} download {Downloading} other {Loading}}"
-#: src/strings.tsx:659
+#: src/strings.tsx:661
msgid "{type} does not match"
msgstr "{type} does not match"
-#: src/strings.tsx:542
+#: src/strings.tsx:858
+msgid "2FA code sent via {method}"
+msgstr "2FA code sent via {method}"
+
+#: src/strings.tsx:544
msgid "A to Z"
msgstr "A to Z"
-#: src/strings.tsx:555
+#: src/strings.tsx:557
msgid "Abc"
msgstr "Abc"
-#: src/strings.tsx:442
+#: src/strings.tsx:874
+msgid "account"
+msgstr "account"
+
+#: src/strings.tsx:444
msgid "Add"
msgstr "Add"
-#: src/strings.tsx:279
+#: src/strings.tsx:281
msgid "Add a {0}"
msgstr "Add a {0}"
-#: src/strings.tsx:467
+#: src/strings.tsx:469
msgid "Add color"
msgstr "Add color"
-#: src/strings.tsx:781
+#: src/strings.tsx:783
msgid "Add notebook"
msgstr "Add notebook"
-#: src/strings.tsx:407
+#: src/strings.tsx:409
msgid "Add notes to {title}"
msgstr "Add notes to {title}"
-#: src/strings.tsx:780
+#: src/strings.tsx:782
msgid "Add shortcut"
msgstr "Add shortcut"
-#: src/strings.tsx:615
+#: src/strings.tsx:617
msgid "Add shortcuts for notebooks and tags here."
msgstr "Add shortcuts for notebooks and tags here."
-#: src/strings.tsx:479
+#: src/strings.tsx:481
msgid "Add tag"
msgstr "Add tag"
-#: src/strings.tsx:805
+#: src/strings.tsx:807
msgid "Add tags"
msgstr "Add tags"
-#: src/strings.tsx:604
-#: src/strings.tsx:632
+#: src/strings.tsx:843
+msgid "Add your first note"
+msgstr "Add your first note"
+
+#: src/strings.tsx:844
+msgid "Add your first notebook"
+msgstr "Add your first notebook"
+
+#: src/strings.tsx:606
+#: src/strings.tsx:634
msgid "All"
msgstr "All"
@@ -202,15 +218,15 @@ msgstr "All"
msgid "All attachments are end-to-end encrypted."
msgstr "All attachments are end-to-end encrypted."
-#: src/strings.tsx:641
+#: src/strings.tsx:643
msgid "All fields are required"
msgstr "All fields are required"
-#: src/strings.tsx:617
+#: src/strings.tsx:619
msgid "All logs are local only and are not sent to any server. You can share the logs from here with us if you face an issue to help us find the root cause."
msgstr "All logs are local only and are not sent to any server. You can share the logs from here with us if you face an issue to help us find the root cause."
-#: src/strings.tsx:359
+#: src/strings.tsx:361
msgid "All tools are grouped"
msgstr "All tools are grouped"
@@ -230,23 +246,27 @@ msgstr "and"
msgid "App data has been cleared. Kindly relaunch the app to login again."
msgstr "App data has been cleared. Kindly relaunch the app to login again."
-#: src/strings.tsx:655
+#: src/strings.tsx:657
msgid "App lock disabled"
msgstr "App lock disabled"
-#: src/strings.tsx:449
+#: src/strings.tsx:451
msgid "Applied as dark theme"
msgstr "Applied as dark theme"
-#: src/strings.tsx:450
+#: src/strings.tsx:452
msgid "Applied as light theme"
msgstr "Applied as light theme"
-#: src/strings.tsx:385
+#: src/strings.tsx:387
msgid "Apply changes"
msgstr "Apply changes"
-#: src/strings.tsx:708
+#: src/strings.tsx:866
+msgid "Are you sure you want to clear all logs from {key}?"
+msgstr "Are you sure you want to clear all logs from {key}?"
+
+#: src/strings.tsx:710
msgid "Are you sure you want to delete this note permanently?"
msgstr "Are you sure you want to delete this note permanently?"
@@ -254,11 +274,11 @@ msgstr "Are you sure you want to delete this note permanently?"
#~ msgid "Are you sure you want to download all attachments"
#~ msgstr "Are you sure you want to download all attachments"
-#: src/strings.tsx:649
+#: src/strings.tsx:651
msgid "Are you sure you want to logout from this device? Any unsynced changes will be lost."
msgstr "Are you sure you want to logout from this device? Any unsynced changes will be lost."
-#: src/strings.tsx:362
+#: src/strings.tsx:364
msgid "Atleast 8 characters required"
msgstr "Atleast 8 characters required"
@@ -275,31 +295,31 @@ msgid "attachments"
msgstr "attachments"
#: src/strings.tsx:276
-#: src/strings.tsx:793
+#: src/strings.tsx:795
msgid "Attachments"
msgstr "Attachments"
-#: src/strings.tsx:635
+#: src/strings.tsx:637
msgid "Audio"
msgstr "Audio"
-#: src/strings.tsx:643
+#: src/strings.tsx:645
msgid "Backup failed"
msgstr "Backup failed"
-#: src/strings.tsx:760
+#: src/strings.tsx:762
msgid "Backup is encrypted"
msgstr "Backup is encrypted"
-#: src/strings.tsx:766
+#: src/strings.tsx:768
msgid "Backup restored"
msgstr "Backup restored"
-#: src/strings.tsx:414
+#: src/strings.tsx:416
msgid "Backups"
msgstr "Backups"
-#: src/strings.tsx:451
+#: src/strings.tsx:453
msgid "Basic"
msgstr "Basic"
@@ -307,19 +327,19 @@ msgstr "Basic"
#~ msgid "Beta"
#~ msgstr "Beta"
-#: src/strings.tsx:324
+#: src/strings.tsx:326
msgid "BETA"
msgstr "BETA"
-#: src/strings.tsx:672
+#: src/strings.tsx:674
msgid "Biometric unlocking disabled"
msgstr "Biometric unlocking disabled"
-#: src/strings.tsx:671
+#: src/strings.tsx:673
msgid "Biometric unlocking enabled"
msgstr "Biometric unlocking enabled"
-#: src/strings.tsx:341
+#: src/strings.tsx:343
msgid "By"
msgstr "By"
@@ -327,7 +347,7 @@ msgstr "By"
msgid "By signing up, you agree to our"
msgstr "By signing up, you agree to our"
-#: src/strings.tsx:459
+#: src/strings.tsx:461
msgid "Cancel"
msgstr "Cancel"
@@ -335,23 +355,23 @@ msgstr "Cancel"
msgid "Change"
msgstr "Change"
-#: src/strings.tsx:569
+#: src/strings.tsx:571
msgid "Change 2FA method"
msgstr "Change 2FA method"
-#: src/strings.tsx:390
+#: src/strings.tsx:392
msgid "Change email address"
msgstr "Change email address"
-#: src/strings.tsx:363
+#: src/strings.tsx:365
msgid "Change password"
msgstr "Change password"
-#: src/strings.tsx:379
+#: src/strings.tsx:381
msgid "Change Vault Password"
msgstr "Change Vault Password"
-#: src/strings.tsx:612
+#: src/strings.tsx:614
msgid "Changing password is an irreversible process. You will be logged out from all your devices. Please make sure you do not close the app while your password is changing and have good internet connection."
msgstr "Changing password is an irreversible process. You will be logged out from all your devices. Please make sure you do not close the app while your password is changing and have good internet connection."
@@ -359,19 +379,24 @@ msgstr "Changing password is an irreversible process. You will be logged out fro
#~ msgid "Check for new version"
#~ msgstr "Check for new version"
-#: src/strings.tsx:314
+#: src/strings.tsx:316
msgid "Checking for new version"
msgstr "Checking for new version"
-#: src/strings.tsx:338
+#: src/strings.tsx:340
msgid "Choose how you want to secure your notes locally."
msgstr "Choose how you want to secure your notes locally."
#: src/strings.tsx:120
+#: src/strings.tsx:864
msgid "Clear"
msgstr "Clear"
-#: src/strings.tsx:360
+#: src/strings.tsx:863
+msgid "Clear logs"
+msgstr "Clear logs"
+
+#: src/strings.tsx:362
msgid "COLLAPSED"
msgstr "COLLAPSED"
@@ -383,7 +408,7 @@ msgstr "color"
msgid "Color"
msgstr "Color"
-#: src/strings.tsx:661
+#: src/strings.tsx:663
msgid "Color #{color} already exists"
msgstr "Color #{color} already exists"
@@ -403,35 +428,35 @@ msgstr "Compress"
msgid "Compressed images are uploaded in Full HD resolution and usually are good enough for most use cases."
msgstr "Compressed images are uploaded in Full HD resolution and usually are good enough for most use cases."
-#: src/strings.tsx:573
+#: src/strings.tsx:575
msgid "Confirm email"
msgstr "Confirm email"
-#: src/strings.tsx:789
+#: src/strings.tsx:791
msgid "Confirm email to publish note"
msgstr "Confirm email to publish note"
-#: src/strings.tsx:453
+#: src/strings.tsx:455
msgid "Continue"
msgstr "Continue"
-#: src/strings.tsx:567
+#: src/strings.tsx:569
msgid "Copy"
msgstr "Copy"
-#: src/strings.tsx:570
+#: src/strings.tsx:572
msgid "Copy codes"
msgstr "Copy codes"
-#: src/strings.tsx:795
+#: src/strings.tsx:797
msgid "Copy link"
msgstr "Copy link"
-#: src/strings.tsx:382
+#: src/strings.tsx:384
msgid "Copy note"
msgstr "Copy note"
-#: src/strings.tsx:497
+#: src/strings.tsx:499
msgid "Copy to clipboard"
msgstr "Copy to clipboard"
@@ -439,60 +464,68 @@ msgstr "Copy to clipboard"
msgid "Create"
msgstr "Create"
-#: src/strings.tsx:608
+#: src/strings.tsx:610
msgid "Create a group"
msgstr "Create a group"
-#: src/strings.tsx:809
+#: src/strings.tsx:811
msgid "Create a new note"
msgstr "Create a new note"
-#: src/strings.tsx:820
+#: src/strings.tsx:822
msgid "Create a note first"
msgstr "Create a note first"
-#: src/strings.tsx:487
+#: src/strings.tsx:489
msgid "Create link"
msgstr "Create link"
-#: src/strings.tsx:376
+#: src/strings.tsx:378
msgid "Create Vault"
msgstr "Create Vault"
-#: src/strings.tsx:437
+#: src/strings.tsx:439
msgid "Create your {\"\\n\"}account"
msgstr "Create your {\"\\n\"}account"
-#: src/strings.tsx:619
+#: src/strings.tsx:621
msgid "Curate the toolbar that fits your needs and matches your personality."
msgstr "Curate the toolbar that fits your needs and matches your personality."
#: src/strings.tsx:137
-#: src/strings.tsx:508
+#: src/strings.tsx:510
msgid "Daily"
msgstr "Daily"
-#: src/strings.tsx:602
+#: src/strings.tsx:604
msgid "Dark"
msgstr "Dark"
-#: src/strings.tsx:548
+#: src/strings.tsx:550
msgid "Date created"
msgstr "Date created"
-#: src/strings.tsx:547
+#: src/strings.tsx:549
msgid "Date edited"
msgstr "Date edited"
-#: src/strings.tsx:546
+#: src/strings.tsx:548
msgid "Date modified"
msgstr "Date modified"
-#: src/strings.tsx:303
+#: src/strings.tsx:305
msgid "day"
msgstr "day"
-#: src/strings.tsx:553
+#: src/strings.tsx:861
+msgid "Debug log copied!"
+msgstr "Debug log copied!"
+
+#: src/strings.tsx:862
+msgid "Debug logs downloaded"
+msgstr "Debug logs downloaded"
+
+#: src/strings.tsx:555
msgid "Default"
msgstr "Default"
@@ -501,15 +534,15 @@ msgstr "Default"
msgid "Delete"
msgstr "Delete"
-#: src/strings.tsx:469
+#: src/strings.tsx:471
msgid "Delete all notes"
msgstr "Delete all notes"
-#: src/strings.tsx:380
+#: src/strings.tsx:382
msgid "Delete note"
msgstr "Delete note"
-#: src/strings.tsx:476
+#: src/strings.tsx:478
msgid "Delete permanently"
msgstr "Delete permanently"
@@ -517,7 +550,7 @@ msgstr "Delete permanently"
msgid "Deleted on {date}"
msgstr "Deleted on {date}"
-#: src/strings.tsx:749
+#: src/strings.tsx:751
msgid "Did you save recovery key?"
msgstr "Did you save recovery key?"
@@ -525,7 +558,7 @@ msgstr "Did you save recovery key?"
msgid "Disabled"
msgstr "Disabled"
-#: src/strings.tsx:472
+#: src/strings.tsx:474
msgid "Discard"
msgstr "Discard"
@@ -533,7 +566,7 @@ msgstr "Discard"
msgid "Do you enjoy using Notesnook?"
msgstr "Do you enjoy using Notesnook?"
-#: src/strings.tsx:636
+#: src/strings.tsx:638
msgid "Documents"
msgstr "Documents"
@@ -545,28 +578,28 @@ msgstr "Don't have an account?"
msgid "Done"
msgstr "Done"
-#: src/strings.tsx:429
+#: src/strings.tsx:431
msgid "Download"
msgstr "Download"
-#: src/strings.tsx:666
+#: src/strings.tsx:668
msgid "Download started... Please wait"
msgstr "Download started... Please wait"
-#: src/strings.tsx:434
+#: src/strings.tsx:436
msgid "Download successful"
msgstr "Download successful"
-#: src/strings.tsx:560
+#: src/strings.tsx:562
msgid "Download update"
msgstr "Download update"
-#: src/strings.tsx:428
+#: src/strings.tsx:430
msgid "Downloaded"
msgstr "Downloaded"
#: src/strings.tsx:35
-#: src/strings.tsx:427
+#: src/strings.tsx:429
msgid "Downloading"
msgstr "Downloading"
@@ -574,35 +607,35 @@ msgstr "Downloading"
msgid "Downloading attachments"
msgstr "Downloading attachments"
-#: src/strings.tsx:550
+#: src/strings.tsx:552
msgid "Due date"
msgstr "Due date"
-#: src/strings.tsx:799
+#: src/strings.tsx:801
msgid "Duplicate"
msgstr "Duplicate"
-#: src/strings.tsx:541
+#: src/strings.tsx:543
msgid "Earliest first"
msgstr "Earliest first"
-#: src/strings.tsx:439
+#: src/strings.tsx:441
msgid "Edit notebook"
msgstr "Edit notebook"
-#: src/strings.tsx:444
+#: src/strings.tsx:446
msgid "Edit reminder"
msgstr "Edit reminder"
-#: src/strings.tsx:646
+#: src/strings.tsx:648
msgid "Email is required"
msgstr "Email is required"
-#: src/strings.tsx:638
+#: src/strings.tsx:640
msgid "Email not confirmed"
msgstr "Email not confirmed"
-#: src/strings.tsx:736
+#: src/strings.tsx:738
msgid "Email updated to {email}"
msgstr "Email updated to {email}"
@@ -610,7 +643,7 @@ msgstr "Email updated to {email}"
msgid "Enable"
msgstr "Enable"
-#: src/strings.tsx:417
+#: src/strings.tsx:419
msgid "Enable two-factor authentication to add an extra layer of security to your account."
msgstr "Enable two-factor authentication to add an extra layer of security to your account."
@@ -618,27 +651,35 @@ msgstr "Enable two-factor authentication to add an extra layer of security to yo
msgid "Encrypted and synced"
msgstr "Encrypted and synced"
-#: src/strings.tsx:811
+#: src/strings.tsx:813
msgid "Encrypting attachment"
msgstr "Encrypting attachment"
-#: src/strings.tsx:680
+#: src/strings.tsx:682
msgid "End to end encrypted."
msgstr "End to end encrypted."
-#: src/strings.tsx:335
+#: src/strings.tsx:337
msgid "Enter 6 digit code"
msgstr "Enter 6 digit code"
+#: src/strings.tsx:869
+msgid "Enter app lock password"
+msgstr "Enter app lock password"
+
+#: src/strings.tsx:872
+msgid "Enter app lock pin"
+msgstr "Enter app lock pin"
+
#: src/strings.tsx:102
msgid "Enter code from authenticator app"
msgstr "Enter code from authenticator app"
-#: src/strings.tsx:735
+#: src/strings.tsx:737
msgid "Enter notebook title"
msgstr "Enter notebook title"
-#: src/strings.tsx:665
+#: src/strings.tsx:667
msgid "Enter password"
msgstr "Enter password"
@@ -658,19 +699,23 @@ msgstr "Enter the 6 digit code sent to your phone number to continue logging in"
msgid "Enter the recovery code to continue logging in"
msgstr "Enter the recovery code to continue logging in"
-#: src/strings.tsx:625
+#: src/strings.tsx:627
msgid "Error downloading file: {message}"
msgstr "Error downloading file: {message}"
-#: src/strings.tsx:344
+#: src/strings.tsx:346
msgid "Error loading themes"
msgstr "Error loading themes"
-#: src/strings.tsx:393
+#: src/strings.tsx:859
+msgid "Error sending 2FA code"
+msgstr "Error sending 2FA code"
+
+#: src/strings.tsx:395
msgid "Export"
msgstr "Export"
-#: src/strings.tsx:484
+#: src/strings.tsx:486
msgid "Export again"
msgstr "Export again"
@@ -682,7 +727,7 @@ msgstr "Failed to download file"
msgid "Failed to resolve download url"
msgstr "Failed to resolve download url"
-#: src/strings.tsx:647
+#: src/strings.tsx:649
msgid "Failed to send recovery email"
msgstr "Failed to send recovery email"
@@ -690,15 +735,19 @@ msgstr "Failed to send recovery email"
msgid "Failed to zip files"
msgstr "Failed to zip files"
-#: src/strings.tsx:421
+#: src/strings.tsx:423
msgid "Fallback method for 2FA enabled"
msgstr "Fallback method for 2FA enabled"
-#: src/strings.tsx:610
+#: src/strings.tsx:277
+msgid "Favorites"
+msgstr "Favorites"
+
+#: src/strings.tsx:612
msgid "File check failed: {reason} Try reuploading the file to fix the issue."
msgstr "File check failed: {reason} Try reuploading the file to fix the issue."
-#: src/strings.tsx:628
+#: src/strings.tsx:630
msgid "File check passed"
msgstr "File check passed"
@@ -710,47 +759,47 @@ msgstr "File length is 0. Please upload this file again from the attachment mana
msgid "File length mismatch. Expected {expectedSize} but got {currentSize} bytes. Please upload this file again from the attachment manager."
msgstr "File length mismatch. Expected {expectedSize} but got {currentSize} bytes. Please upload this file again from the attachment manager."
-#: src/strings.tsx:463
+#: src/strings.tsx:465
msgid "Forgot password?"
msgstr "Forgot password?"
-#: src/strings.tsx:528
+#: src/strings.tsx:530
msgid "Fri"
msgstr "Fri"
-#: src/strings.tsx:519
+#: src/strings.tsx:521
msgid "Friday"
msgstr "Friday"
-#: src/strings.tsx:577
+#: src/strings.tsx:579
msgid "Get Pro"
msgstr "Get Pro"
-#: src/strings.tsx:470
+#: src/strings.tsx:472
msgid "Get started"
msgstr "Get started"
-#: src/strings.tsx:334
+#: src/strings.tsx:336
msgid "Getting information"
msgstr "Getting information"
-#: src/strings.tsx:336
+#: src/strings.tsx:338
msgid "Getting recovery codes"
msgstr "Getting recovery codes"
-#: src/strings.tsx:492
+#: src/strings.tsx:494
msgid "Got it"
msgstr "Got it"
-#: src/strings.tsx:358
+#: src/strings.tsx:360
msgid "GROUP"
msgstr "GROUP"
-#: src/strings.tsx:447
+#: src/strings.tsx:449
msgid "Group by"
msgstr "Group by"
-#: src/strings.tsx:630
+#: src/strings.tsx:632
msgid "Hash copied"
msgstr "Hash copied"
@@ -758,11 +807,11 @@ msgstr "Hash copied"
msgid "Help improve Notesnook by sending completely anonymized"
msgstr "Help improve Notesnook by sending completely anonymized"
-#: src/strings.tsx:794
+#: src/strings.tsx:796
msgid "History"
msgstr "History"
-#: src/strings.tsx:758
+#: src/strings.tsx:760
msgid "hr"
msgstr "hr"
@@ -786,7 +835,7 @@ msgstr "I don't have recovery codes"
msgid "I have a recovery code"
msgstr "I have a recovery code"
-#: src/strings.tsx:333
+#: src/strings.tsx:335
msgid "If the editor fails to load even after reloading. Try restarting the app."
msgstr "If the editor fails to load even after reloading. Try restarting the app."
@@ -794,7 +843,7 @@ msgstr "If the editor fails to load even after reloading. Try restarting the app
msgid "If you want to ask something in general or need some assistance, we would suggest that you"
msgstr "If you want to ask something in general or need some assistance, we would suggest that you"
-#: src/strings.tsx:633
+#: src/strings.tsx:635
msgid "Images"
msgstr "Images"
@@ -806,11 +855,11 @@ msgstr "Images uploaded without compression are slow to load and take more bandw
msgid "Incoming"
msgstr "Incoming"
-#: src/strings.tsx:658
+#: src/strings.tsx:660
msgid "Incorrect {type}"
msgstr "Incorrect {type}"
-#: src/strings.tsx:626
+#: src/strings.tsx:628
msgid "Invalid {type}"
msgstr "Invalid {type}"
@@ -830,15 +879,15 @@ msgstr ""
msgid "join our community on Discord."
msgstr "join our community on Discord."
-#: src/strings.tsx:474
+#: src/strings.tsx:476
msgid "Keep"
msgstr "Keep"
-#: src/strings.tsx:496
+#: src/strings.tsx:498
msgid "Later"
msgstr "Later"
-#: src/strings.tsx:540
+#: src/strings.tsx:542
msgid "Latest first"
msgstr "Latest first"
@@ -846,27 +895,31 @@ msgstr "Latest first"
msgid "Learn how this works."
msgstr "Learn how this works."
-#: src/strings.tsx:478
+#: src/strings.tsx:480
msgid "Learn more"
msgstr "Learn more"
+#: src/strings.tsx:846
+msgid "Learn more about Monographs"
+msgstr "Learn more about Monographs"
+
#: src/strings.tsx:234
msgid "Learn more about Notesnook Monograph"
msgstr "Learn more about Notesnook Monograph"
-#: src/strings.tsx:398
+#: src/strings.tsx:400
msgid "Let us know if you have faced any issue/bug while using Notesnook. We will try to fix it as soon as possible."
msgstr "Let us know if you have faced any issue/bug while using Notesnook. We will try to fix it as soon as possible."
-#: src/strings.tsx:603
+#: src/strings.tsx:605
msgid "Light"
msgstr "Light"
-#: src/strings.tsx:796
+#: src/strings.tsx:798
msgid "Link copied"
msgstr "Link copied"
-#: src/strings.tsx:804
+#: src/strings.tsx:806
msgid "Link notebooks"
msgstr "Link notebooks"
@@ -874,19 +927,19 @@ msgstr "Link notebooks"
msgid "LINK TO A SECTION"
msgstr "LINK TO A SECTION"
-#: src/strings.tsx:730
+#: src/strings.tsx:732
msgid "Link to notebook"
msgstr "Link to notebook"
-#: src/strings.tsx:501
+#: src/strings.tsx:503
msgid "Linked notes"
msgstr "Linked notes"
-#: src/strings.tsx:425
+#: src/strings.tsx:427
msgid "List of"
msgstr "List of"
-#: src/strings.tsx:605
+#: src/strings.tsx:607
msgid "Load from file"
msgstr "Load from file"
@@ -894,23 +947,47 @@ msgstr "Load from file"
msgid "Loading {0}, please wait..."
msgstr "Loading {0}, please wait..."
+#: src/strings.tsx:837
+msgid "Loading your favorites"
+msgstr "Loading your favorites"
+
+#: src/strings.tsx:842
+msgid "Loading your monographs"
+msgstr "Loading your monographs"
+
+#: src/strings.tsx:840
+msgid "Loading your notebooks"
+msgstr "Loading your notebooks"
+
+#: src/strings.tsx:838
+msgid "Loading your notes"
+msgstr "Loading your notes"
+
+#: src/strings.tsx:841
+msgid "Loading your reminders"
+msgstr "Loading your reminders"
+
+#: src/strings.tsx:839
+msgid "Loading your tags"
+msgstr "Loading your tags"
+
#: src/strings.tsx:129
msgid "Lock"
msgstr "Lock"
-#: src/strings.tsx:384
+#: src/strings.tsx:386
msgid "Lock note"
msgstr "Lock note"
-#: src/strings.tsx:787
+#: src/strings.tsx:789
msgid "Locked notes cannot be pinned"
msgstr "Locked notes cannot be pinned"
-#: src/strings.tsx:790
+#: src/strings.tsx:792
msgid "Locked notes cannot be published"
msgstr "Locked notes cannot be published"
-#: src/strings.tsx:339
+#: src/strings.tsx:341
msgid "Logging out"
msgstr "Logging out"
@@ -918,39 +995,39 @@ msgstr "Logging out"
msgid "Login"
msgstr "Login"
-#: src/strings.tsx:652
+#: src/strings.tsx:654
msgid "Login failed"
msgstr "Login failed"
-#: src/strings.tsx:788
+#: src/strings.tsx:790
msgid "Login required"
msgstr "Login required"
-#: src/strings.tsx:653
+#: src/strings.tsx:655
msgid "Login successful"
msgstr "Login successful"
-#: src/strings.tsx:452
+#: src/strings.tsx:454
msgid "Login to your {\"\\n\"}account"
msgstr "Login to your {\"\\n\"}account"
-#: src/strings.tsx:650
+#: src/strings.tsx:652
msgid "Logout"
msgstr "Logout"
-#: src/strings.tsx:488
+#: src/strings.tsx:490
msgid "Logout and clear data"
msgstr "Logout and clear data"
-#: src/strings.tsx:465
+#: src/strings.tsx:467
msgid "Logout from this device"
msgstr "Logout from this device"
-#: src/strings.tsx:574
+#: src/strings.tsx:576
msgid "Manage subscription on desktop"
msgstr "Manage subscription on desktop"
-#: src/strings.tsx:729
+#: src/strings.tsx:731
msgid "Manage tags"
msgstr "Manage tags"
@@ -962,80 +1039,81 @@ msgstr "Migrating {0} {1}... please wait"
#~ msgid "Migrating database{0} {1}... please wait"
#~ msgstr "Migrating database{0} {1}... please wait"
-#: src/strings.tsx:757
+#: src/strings.tsx:759
msgid "min"
msgstr "min"
-#: src/strings.tsx:578
+#: src/strings.tsx:580
msgid "mo"
msgstr "mo"
-#: src/strings.tsx:524
+#: src/strings.tsx:526
msgid "Mon"
msgstr "Mon"
-#: src/strings.tsx:515
+#: src/strings.tsx:517
msgid "Monday"
msgstr "Monday"
-#: src/strings.tsx:748
+#: src/strings.tsx:750
msgid "Monograph URL copied"
msgstr "Monograph URL copied"
-#: src/strings.tsx:810
+#: src/strings.tsx:278
+#: src/strings.tsx:812
msgid "Monographs"
msgstr "Monographs"
-#: src/strings.tsx:305
+#: src/strings.tsx:307
msgid "month"
msgstr "month"
-#: src/strings.tsx:558
+#: src/strings.tsx:560
msgid "Month"
msgstr "Month"
#: src/strings.tsx:139
-#: src/strings.tsx:510
+#: src/strings.tsx:512
msgid "Monthly"
msgstr "Monthly"
-#: src/strings.tsx:731
+#: src/strings.tsx:733
msgid "Move"
msgstr "Move"
-#: src/strings.tsx:807
+#: src/strings.tsx:809
msgid "Move notebook"
msgstr "Move notebook"
-#: src/strings.tsx:784
+#: src/strings.tsx:786
msgid "Move notes"
msgstr "Move notes"
-#: src/strings.tsx:491
+#: src/strings.tsx:493
msgid "Move selected notes"
msgstr "Move selected notes"
-#: src/strings.tsx:490
+#: src/strings.tsx:492
msgid "Move to top"
msgstr "Move to top"
-#: src/strings.tsx:734
+#: src/strings.tsx:736
msgid "Move to trash"
msgstr "Move to trash"
-#: src/strings.tsx:764
+#: src/strings.tsx:766
msgid "Name"
msgstr "Name"
-#: src/strings.tsx:327
+#: src/strings.tsx:329
msgid "Never"
msgstr "Never"
-#: src/strings.tsx:564
+#: src/strings.tsx:566
msgid "Never show again"
msgstr "Never show again"
-#: src/strings.tsx:539
+#: src/strings.tsx:541
msgid "New - old"
msgstr "New - old"
@@ -1043,31 +1121,31 @@ msgstr "New - old"
msgid "New note"
msgstr "New note"
-#: src/strings.tsx:440
+#: src/strings.tsx:442
msgid "New notebook"
msgstr "New notebook"
-#: src/strings.tsx:445
+#: src/strings.tsx:447
msgid "New reminder"
msgstr "New reminder"
-#: src/strings.tsx:482
+#: src/strings.tsx:484
msgid "New tab"
msgstr "New tab"
-#: src/strings.tsx:443
+#: src/strings.tsx:445
msgid "New version"
msgstr "New version"
-#: src/strings.tsx:462
+#: src/strings.tsx:464
msgid "Next"
msgstr "Next"
-#: src/strings.tsx:457
+#: src/strings.tsx:459
msgid "No"
msgstr "No"
-#: src/strings.tsx:738
+#: src/strings.tsx:740
msgid "No application found to open {fileToOpen}"
msgstr "No application found to open {fileToOpen}"
@@ -1075,7 +1153,7 @@ msgstr "No application found to open {fileToOpen}"
msgid "No attachments."
msgstr "No attachments."
-#: src/strings.tsx:312
+#: src/strings.tsx:314
msgid "No backups found"
msgstr "No backups found"
@@ -1083,7 +1161,7 @@ msgstr "No backups found"
msgid "No blocks linked"
msgstr "No blocks linked"
-#: src/strings.tsx:660
+#: src/strings.tsx:662
msgid "No color selected"
msgstr "No color selected"
@@ -1107,23 +1185,23 @@ msgstr "No one can view this {type} except you."
msgid "No references found of this note"
msgstr "No references found of this note"
-#: src/strings.tsx:342
+#: src/strings.tsx:344
msgid "No results found for \"{query}\""
msgstr "No results found for \"{query}\""
-#: src/strings.tsx:343
+#: src/strings.tsx:345
msgid "No themes found"
msgstr "No themes found"
-#: src/strings.tsx:315
+#: src/strings.tsx:317
msgid "No updates available"
msgstr "No updates available"
-#: src/strings.tsx:554
+#: src/strings.tsx:556
msgid "None"
msgstr "None"
-#: src/strings.tsx:326
+#: src/strings.tsx:328
msgid "Not logged in"
msgstr "Not logged in"
@@ -1136,31 +1214,31 @@ msgstr "note"
msgid "Note"
msgstr "Note"
-#: src/strings.tsx:675
+#: src/strings.tsx:677
msgid "Note copied to clipboard"
msgstr "Note copied to clipboard"
-#: src/strings.tsx:709
+#: src/strings.tsx:711
msgid "Note deleted"
msgstr "Note deleted"
-#: src/strings.tsx:386
+#: src/strings.tsx:388
msgid "Note history"
msgstr "Note history"
-#: src/strings.tsx:670
+#: src/strings.tsx:672
msgid "Note locked"
msgstr "Note locked"
-#: src/strings.tsx:706
+#: src/strings.tsx:708
msgid "Note restored"
msgstr "Note restored"
-#: src/strings.tsx:705
+#: src/strings.tsx:707
msgid "Note restored from history"
msgstr "Note restored from history"
-#: src/strings.tsx:674
+#: src/strings.tsx:676
msgid "Note unlocked"
msgstr "Note unlocked"
@@ -1176,7 +1254,7 @@ msgstr "notebook"
msgid "Notebook"
msgstr "Notebook"
-#: src/strings.tsx:702
+#: src/strings.tsx:704
msgid "Notebook restored"
msgstr "Notebook restored"
@@ -1204,19 +1282,27 @@ msgstr "Notes"
msgid "Notes exported as {path} successfully"
msgstr "Notes exported as {path} successfully"
-#: src/strings.tsx:331
+#: src/strings.tsx:851
+msgid "Notesnook will send you a 2FA code on your email when prompted"
+msgstr "Notesnook will send you a 2FA code on your email when prompted"
+
+#: src/strings.tsx:854
+msgid "Notesnook will send you an SMS with a 2FA code when prompted"
+msgstr "Notesnook will send you an SMS with a 2FA code when prompted"
+
+#: src/strings.tsx:333
msgid "Offline"
msgstr "Offline"
-#: src/strings.tsx:538
+#: src/strings.tsx:540
msgid "Old - new"
msgstr "Old - new"
-#: src/strings.tsx:504
+#: src/strings.tsx:506
msgid "Once"
msgstr "Once"
-#: src/strings.tsx:614
+#: src/strings.tsx:616
msgid "Once your password is changed, please make sure to save the new account recovery key"
msgstr "Once your password is changed, please make sure to save the new account recovery key"
@@ -1224,7 +1310,7 @@ msgstr "Once your password is changed, please make sure to save the new account
msgid "Open"
msgstr "Open"
-#: src/strings.tsx:483
+#: src/strings.tsx:485
msgid "Open file location"
msgstr "Open file location"
@@ -1232,31 +1318,31 @@ msgstr "Open file location"
msgid "Open in browser"
msgstr "Open in browser"
-#: src/strings.tsx:485
+#: src/strings.tsx:487
msgid "Open issue"
msgstr "Open issue"
-#: src/strings.tsx:679
+#: src/strings.tsx:681
msgid "Open source."
msgstr "Open source."
-#: src/strings.tsx:761
+#: src/strings.tsx:763
msgid "Password"
msgstr "Password"
-#: src/strings.tsx:645
+#: src/strings.tsx:647
msgid "Password change failed"
msgstr "Password change failed"
-#: src/strings.tsx:644
+#: src/strings.tsx:646
msgid "Password changed successfully"
msgstr "Password changed successfully"
-#: src/strings.tsx:668
+#: src/strings.tsx:670
msgid "Password does not match"
msgstr "Password does not match"
-#: src/strings.tsx:657
+#: src/strings.tsx:659
msgid "Password incorrect"
msgstr "Password incorrect"
@@ -1264,7 +1350,7 @@ msgstr "Password incorrect"
#~ msgid "Password is too short"
#~ msgstr "Password is too short"
-#: src/strings.tsx:667
+#: src/strings.tsx:669
msgid "Password not entered"
msgstr "Password not entered"
@@ -1272,43 +1358,59 @@ msgstr "Password not entered"
msgid "Password protection"
msgstr "Password protection"
-#: src/strings.tsx:669
+#: src/strings.tsx:671
msgid "Password updated"
msgstr "Password updated"
-#: src/strings.tsx:662
+#: src/strings.tsx:664
msgid "PDF is password protected"
msgstr "PDF is password protected"
-#: src/strings.tsx:505
+#: src/strings.tsx:507
msgid "Permanent"
msgstr "Permanent"
-#: src/strings.tsx:704
+#: src/strings.tsx:706
msgid "Permanently deleted notebook"
msgstr "Permanently deleted notebook"
-#: src/strings.tsx:786
+#: src/strings.tsx:857
+msgid "Phone number not entered"
+msgstr "Phone number not entered"
+
+#: src/strings.tsx:788
msgid "Pin"
msgstr "Pin"
-#: src/strings.tsx:803
+#: src/strings.tsx:805
msgid "Pin to notifications"
msgstr "Pin to notifications"
-#: src/strings.tsx:438
+#: src/strings.tsx:440
msgid "Pinned"
msgstr "Pinned"
-#: src/strings.tsx:664
+#: src/strings.tsx:666
msgid "Please enter the password to unlock the PDF and view the content."
msgstr "Please enter the password to unlock the PDF and view the content."
-#: src/strings.tsx:642
+#: src/strings.tsx:871
+msgid "Please enter your app lock password to continue"
+msgstr "Please enter your app lock password to continue"
+
+#: src/strings.tsx:873
+msgid "Please enter your app lock pin to continue"
+msgstr "Please enter your app lock pin to continue"
+
+#: src/strings.tsx:867
+msgid "Please enter your password to continue"
+msgstr "Please enter your password to continue"
+
+#: src/strings.tsx:644
msgid "Please fill all the fields to continue."
msgstr "Please fill all the fields to continue."
-#: src/strings.tsx:751
+#: src/strings.tsx:753
msgid "Please make sure you have saved the recovery key. Tap one more time to confirm."
msgstr "Please make sure you have saved the recovery key. Tap one more time to confirm."
@@ -1332,11 +1434,15 @@ msgstr "Please verify it's you"
msgid "Please wait"
msgstr "Please wait"
-#: src/strings.tsx:813
+#: src/strings.tsx:856
+msgid "Please wait before requesting a new code"
+msgstr "Please wait before requesting a new code"
+
+#: src/strings.tsx:815
msgid "Please wait while we encrypt {name} for upload."
msgstr "Please wait while we encrypt {name} for upload."
-#: src/strings.tsx:340
+#: src/strings.tsx:342
msgid "Please wait while we log you out."
msgstr "Please wait while we log you out."
@@ -1344,7 +1450,7 @@ msgstr "Please wait while we log you out."
msgid "Please wait while we sync all your data."
msgstr "Please wait while we sync all your data."
-#: src/strings.tsx:791
+#: src/strings.tsx:793
msgid "Preparing note for share"
msgstr "Preparing note for share"
@@ -1352,7 +1458,7 @@ msgstr "Preparing note for share"
#~ msgid "Presets"
#~ msgstr "Presets"
-#: src/strings.tsx:357
+#: src/strings.tsx:359
msgid "PRESETS"
msgstr "PRESETS"
@@ -1360,7 +1466,7 @@ msgstr "PRESETS"
msgid "Preview not available, content is encrypted."
msgstr "Preview not available, content is encrypted."
-#: src/strings.tsx:687
+#: src/strings.tsx:689
msgid "Privacy for everyone"
msgstr "Privacy for everyone"
@@ -1372,27 +1478,27 @@ msgstr "Privacy Policy."
msgid "private analytics and bug reports."
msgstr "private analytics and bug reports."
-#: src/strings.tsx:681
+#: src/strings.tsx:683
msgid "Private."
msgstr "Private."
-#: src/strings.tsx:689
+#: src/strings.tsx:691
msgid "privileged few"
msgstr "privileged few"
-#: src/strings.tsx:337
+#: src/strings.tsx:339
msgid "Protect your notes"
msgstr "Protect your notes"
-#: src/strings.tsx:408
+#: src/strings.tsx:410
msgid "Publish"
msgstr "Publish"
-#: src/strings.tsx:410
+#: src/strings.tsx:412
msgid "Publish your note to share it with others. You can set a password to protect it."
msgstr "Publish your note to share it with others. You can set a password to protect it."
-#: src/strings.tsx:801
+#: src/strings.tsx:803
msgid "Published"
msgstr "Published"
@@ -1412,15 +1518,15 @@ msgstr ""
"Published note link will be automatically deleted once it is\n"
"viewed by someone."
-#: src/strings.tsx:495
+#: src/strings.tsx:497
msgid "Rate now (It takes only a second)"
msgstr "Rate now (It takes only a second)"
-#: src/strings.tsx:323
+#: src/strings.tsx:325
msgid "Read full release notes on Github"
msgstr "Read full release notes on Github"
-#: src/strings.tsx:797
+#: src/strings.tsx:799
msgid "Read only"
msgstr "Read only"
@@ -1428,10 +1534,18 @@ msgstr "Read only"
msgid "Recommended"
msgstr "Recommended"
-#: src/strings.tsx:364
+#: src/strings.tsx:366
msgid "Recover your account"
msgstr "Recover your account"
+#: src/strings.tsx:855
+msgid "Recovery codes copied!"
+msgstr "Recovery codes copied!"
+
+#: src/strings.tsx:860
+msgid "Recovery codes saved!"
+msgstr "Recovery codes saved!"
+
#: src/strings.tsx:64
msgid "Recovery email has been sent to your email address. Please check your inbox and follow the instructions to recover your account."
msgstr "Recovery email has been sent to your email address. Please check your inbox and follow the instructions to recover your account."
@@ -1440,35 +1554,35 @@ msgstr "Recovery email has been sent to your email address. Please check your in
msgid "Recovery email sent!"
msgstr "Recovery email sent!"
-#: src/strings.tsx:754
+#: src/strings.tsx:756
msgid "Recovery key copied"
msgstr "Recovery key copied"
-#: src/strings.tsx:752
+#: src/strings.tsx:754
msgid "Recovery key QR code saved"
msgstr "Recovery key QR code saved"
-#: src/strings.tsx:753
+#: src/strings.tsx:755
msgid "Recovery key text file saved"
msgstr "Recovery key text file saved"
-#: src/strings.tsx:309
+#: src/strings.tsx:311
msgid "REFERENCED IN"
msgstr "REFERENCED IN"
-#: src/strings.tsx:806
+#: src/strings.tsx:808
msgid "References"
msgstr "References"
-#: src/strings.tsx:361
+#: src/strings.tsx:363
msgid "Release notes"
msgstr "Release notes"
-#: src/strings.tsx:800
+#: src/strings.tsx:802
msgid "Remind me"
msgstr "Remind me"
-#: src/strings.tsx:308
+#: src/strings.tsx:310
msgid "Remind me in"
msgstr "Remind me in"
@@ -1488,55 +1602,55 @@ msgstr "reminders"
msgid "Reminders"
msgstr "Reminders"
-#: src/strings.tsx:656
+#: src/strings.tsx:658
msgid "Remove"
msgstr "Remove"
-#: src/strings.tsx:782
+#: src/strings.tsx:784
msgid "Remove as default"
msgstr "Remove as default"
-#: src/strings.tsx:792
+#: src/strings.tsx:794
msgid "Remove from notebook"
msgstr "Remove from notebook"
-#: src/strings.tsx:562
+#: src/strings.tsx:564
msgid "Remove shortcut"
msgstr "Remove shortcut"
-#: src/strings.tsx:456
+#: src/strings.tsx:458
msgid "Rename"
msgstr "Rename"
-#: src/strings.tsx:763
+#: src/strings.tsx:765
msgid "Rename color"
msgstr "Rename color"
-#: src/strings.tsx:629
+#: src/strings.tsx:631
msgid "Rename file"
msgstr "Rename file"
-#: src/strings.tsx:762
+#: src/strings.tsx:764
msgid "Rename tag"
msgstr "Rename tag"
-#: src/strings.tsx:777
+#: src/strings.tsx:779
msgid "Reorder"
msgstr "Reorder"
-#: src/strings.tsx:503
+#: src/strings.tsx:505
msgid "Repeat"
msgstr "Repeat"
-#: src/strings.tsx:283
+#: src/strings.tsx:285
msgid "Repeats daily at {date}"
msgstr "Repeats daily at {date}"
-#: src/strings.tsx:394
+#: src/strings.tsx:396
msgid "Report issue"
msgstr "Report issue"
-#: src/strings.tsx:568
+#: src/strings.tsx:570
msgid "Resend code ({seconds})"
msgstr "Resend code ({seconds})"
@@ -1544,35 +1658,35 @@ msgstr "Resend code ({seconds})"
msgid "Resend code in ({seconds})"
msgstr "Resend code in ({seconds})"
-#: src/strings.tsx:475
+#: src/strings.tsx:477
msgid "Restore"
msgstr "Restore"
-#: src/strings.tsx:767
+#: src/strings.tsx:769
msgid "Restore failed"
msgstr "Restore failed"
-#: src/strings.tsx:703
+#: src/strings.tsx:705
msgid "Restore notebook"
msgstr "Restore notebook"
-#: src/strings.tsx:710
+#: src/strings.tsx:712
msgid "Restored successfully"
msgstr "Restored successfully"
-#: src/strings.tsx:313
+#: src/strings.tsx:315
msgid "Restoring"
msgstr "Restoring"
-#: src/strings.tsx:575
+#: src/strings.tsx:577
msgid "Resubscribe from Playstore"
msgstr "Resubscribe from Playstore"
-#: src/strings.tsx:576
+#: src/strings.tsx:578
msgid "Resubscribe to Pro"
msgstr "Resubscribe to Pro"
-#: src/strings.tsx:433
+#: src/strings.tsx:435
msgid "Reupload"
msgstr "Reupload"
@@ -1580,67 +1694,67 @@ msgstr "Reupload"
msgid "Revoke"
msgstr "Revoke"
-#: src/strings.tsx:378
+#: src/strings.tsx:380
msgid "Revoke Vault Fingerprint Unlock"
msgstr "Revoke Vault Fingerprint Unlock"
-#: src/strings.tsx:455
+#: src/strings.tsx:457
msgid "Run file check"
msgstr "Run file check"
-#: src/strings.tsx:529
+#: src/strings.tsx:531
msgid "Sat"
msgstr "Sat"
-#: src/strings.tsx:520
+#: src/strings.tsx:522
msgid "Saturday"
msgstr "Saturday"
-#: src/strings.tsx:480
+#: src/strings.tsx:482
msgid "Save"
msgstr "Save"
-#: src/strings.tsx:399
+#: src/strings.tsx:401
msgid "Save a backup of your notes"
msgstr "Save a backup of your notes"
-#: src/strings.tsx:471
+#: src/strings.tsx:473
msgid "Save a copy"
msgstr "Save a copy"
-#: src/strings.tsx:411
+#: src/strings.tsx:413
msgid "Save account recovery key"
msgstr "Save account recovery key"
-#: src/strings.tsx:489
+#: src/strings.tsx:491
msgid "Save and continue"
msgstr "Save and continue"
-#: src/strings.tsx:822
+#: src/strings.tsx:824
msgid "Save failed. Vault is locked"
msgstr "Save failed. Vault is locked"
-#: src/strings.tsx:498
+#: src/strings.tsx:500
msgid "Save QR code to gallery"
msgstr "Save QR code to gallery"
-#: src/strings.tsx:418
+#: src/strings.tsx:420
msgid "Save recovery codes"
msgstr "Save recovery codes"
-#: src/strings.tsx:571
+#: src/strings.tsx:573
msgid "Save to file"
msgstr "Save to file"
-#: src/strings.tsx:499
+#: src/strings.tsx:501
msgid "Save to text file"
msgstr "Save to text file"
-#: src/strings.tsx:413
+#: src/strings.tsx:415
msgid "Save your account recovery key in a safe place. You will need it to recover your account in case you forget your password."
msgstr "Save your account recovery key in a safe place. You will need it to recover your account in case you forget your password."
-#: src/strings.tsx:420
+#: src/strings.tsx:422
msgid "Save your recovery codes in a safe place. You will need them to recover your account in case you lose access to your two-factor authentication methods."
msgstr "Save your recovery codes in a safe place. You will need them to recover your account in case you lose access to your two-factor authentication methods."
@@ -1648,19 +1762,19 @@ msgstr "Save your recovery codes in a safe place. You will need them to recover
msgid "Saving zip file"
msgstr "Saving zip file"
-#: src/strings.tsx:537
+#: src/strings.tsx:539
msgid "Select backups folder"
msgstr "Select backups folder"
-#: src/strings.tsx:531
+#: src/strings.tsx:533
msgid "Select date"
msgstr "Select date"
-#: src/strings.tsx:290
+#: src/strings.tsx:292
msgid "Select day of the month to repeat the reminder."
msgstr "Select day of the month to repeat the reminder."
-#: src/strings.tsx:286
+#: src/strings.tsx:288
msgid "Select day of the week to repeat the reminder."
msgstr "Select day of the week to repeat the reminder."
@@ -1672,15 +1786,15 @@ msgstr "Select how you would like to recieve the code"
msgid "Select method for two-factor authentication"
msgstr "Select method for two-factor authentication"
-#: src/strings.tsx:387
+#: src/strings.tsx:389
msgid "Select notebooks"
msgstr "Select notebooks"
-#: src/strings.tsx:388
+#: src/strings.tsx:390
msgid "Select notebooks you want to add note(s) to."
msgstr "Select notebooks you want to add note(s) to."
-#: src/strings.tsx:311
+#: src/strings.tsx:313
msgid "Select the folder that includes your backup files to list them here."
msgstr "Select the folder that includes your backup files to list them here."
@@ -1708,43 +1822,59 @@ msgstr "Send code via SMS"
msgid "Session expired"
msgstr "Session expired"
-#: src/strings.tsx:606
+#: src/strings.tsx:845
+msgid "Set a reminder"
+msgstr "Set a reminder"
+
+#: src/strings.tsx:608
msgid "Set as dark theme"
msgstr "Set as dark theme"
-#: src/strings.tsx:783
+#: src/strings.tsx:785
msgid "Set as default"
msgstr "Set as default"
-#: src/strings.tsx:607
+#: src/strings.tsx:609
msgid "Set as light theme"
msgstr "Set as light theme"
-#: src/strings.tsx:356
+#: src/strings.tsx:358
msgid "Set your name"
msgstr "Set your name"
-#: src/strings.tsx:325
+#: src/strings.tsx:327
msgid "Settings"
msgstr "Settings"
-#: src/strings.tsx:572
+#: src/strings.tsx:574
msgid "Setup secondary 2FA method"
msgstr "Setup secondary 2FA method"
+#: src/strings.tsx:847
+msgid "Setup using an Authenticator app"
+msgstr "Setup using an Authenticator app"
+
+#: src/strings.tsx:849
+msgid "Setup using email"
+msgstr "Setup using email"
+
+#: src/strings.tsx:852
+msgid "Setup using SMS"
+msgstr "Setup using SMS"
+
#: src/strings.tsx:125
msgid "Share"
msgstr "Share"
-#: src/strings.tsx:381
+#: src/strings.tsx:383
msgid "Share note"
msgstr "Share note"
-#: src/strings.tsx:500
+#: src/strings.tsx:502
msgid "Share to cloud"
msgstr "Share to cloud"
-#: src/strings.tsx:701
+#: src/strings.tsx:703
msgid "Shortcut created"
msgstr "Shortcut created"
@@ -1752,27 +1882,27 @@ msgstr "Shortcut created"
msgid "Sign up"
msgstr "Sign up"
-#: src/strings.tsx:651
+#: src/strings.tsx:653
msgid "Signup failed"
msgstr "Signup failed"
-#: src/strings.tsx:533
+#: src/strings.tsx:535
msgid "Silent"
msgstr "Silent"
-#: src/strings.tsx:460
+#: src/strings.tsx:462
msgid "Skip"
msgstr "Skip"
-#: src/strings.tsx:565
+#: src/strings.tsx:567
msgid "Skip introduction"
msgstr "Skip introduction"
-#: src/strings.tsx:446
+#: src/strings.tsx:448
msgid "Sort by"
msgstr "Sort by"
-#: src/strings.tsx:819
+#: src/strings.tsx:821
msgid "Start writing to create a new note"
msgstr "Start writing to create a new note"
@@ -1780,43 +1910,51 @@ msgstr "Start writing to create a new note"
msgid "Start writing to save your note."
msgstr "Start writing to save your note."
-#: src/strings.tsx:486
+#: src/strings.tsx:488
msgid "Submit"
msgstr "Submit"
-#: src/strings.tsx:590
+#: src/strings.tsx:875
+msgid "Subscribe to Pro"
+msgstr "Subscribe to Pro"
+
+#: src/strings.tsx:592
msgid "Subscribed on Android"
msgstr "Subscribed on Android"
-#: src/strings.tsx:583
+#: src/strings.tsx:585
msgid "Subscribed on iOS"
msgstr "Subscribed on iOS"
-#: src/strings.tsx:597
+#: src/strings.tsx:599
msgid "Subscribed on Web"
msgstr "Subscribed on Web"
-#: src/strings.tsx:523
+#: src/strings.tsx:877
+msgid "Subscription details"
+msgstr "Subscription details"
+
+#: src/strings.tsx:525
msgid "Sun"
msgstr "Sun"
-#: src/strings.tsx:514
+#: src/strings.tsx:516
msgid "Sunday"
msgstr "Sunday"
-#: src/strings.tsx:329
+#: src/strings.tsx:331
msgid "Sync failed"
msgstr "Sync failed"
-#: src/strings.tsx:798
+#: src/strings.tsx:800
msgid "Sync off"
msgstr "Sync off"
-#: src/strings.tsx:330
+#: src/strings.tsx:332
msgid "Synced"
msgstr "Synced"
-#: src/strings.tsx:328
+#: src/strings.tsx:330
msgid "Syncing"
msgstr "Syncing"
@@ -1824,11 +1962,11 @@ msgstr "Syncing"
msgid "Syncing your data"
msgstr "Syncing your data"
-#: src/strings.tsx:448
+#: src/strings.tsx:450
msgid "Table of contents"
msgstr "Table of contents"
-#: src/strings.tsx:441
+#: src/strings.tsx:443
msgid "Tabs"
msgstr "Tabs"
@@ -1848,15 +1986,15 @@ msgstr "tags"
msgid "Tags"
msgstr "Tags"
-#: src/strings.tsx:566
+#: src/strings.tsx:568
msgid "Taking too long? Reload editor"
msgstr "Taking too long? Reload editor"
-#: src/strings.tsx:389
+#: src/strings.tsx:391
msgid "Tap and hold to enable multi-select."
msgstr "Tap and hold to enable multi-select."
-#: src/strings.tsx:347
+#: src/strings.tsx:349
msgid "Tap to apply again"
msgstr "Tap to apply again"
@@ -1868,7 +2006,7 @@ msgstr "Tap to cancel"
msgid "Tap to deselect"
msgstr "Tap to deselect"
-#: src/strings.tsx:561
+#: src/strings.tsx:563
msgid "Tap to stop reordering"
msgstr "Tap to stop reordering"
@@ -1880,7 +2018,7 @@ msgstr "Tap twice to confirm you have saved the recovery key."
msgid "Terms of Service"
msgstr "Terms of Service"
-#: src/strings.tsx:401
+#: src/strings.tsx:403
msgid "Thank you for updating Notesnook! We will be applying some minor changes for a better note taking experience."
msgstr "Thank you for updating Notesnook! We will be applying some minor changes for a better note taking experience."
@@ -1888,11 +2026,11 @@ msgstr "Thank you for updating Notesnook! We will be applying some minor changes
msgid "The information above will be publically available at"
msgstr "The information above will be publically available at"
-#: src/strings.tsx:285
+#: src/strings.tsx:287
msgid "The reminder will repeat daily at {date}."
msgstr "The reminder will repeat daily at {date}."
-#: src/strings.tsx:288
+#: src/strings.tsx:290
msgid "The reminder will repeat every year on {date}."
msgstr "The reminder will repeat every year on {date}."
@@ -1900,7 +2038,7 @@ msgstr "The reminder will repeat every year on {date}."
msgid "This device"
msgstr "This device"
-#: src/strings.tsx:821
+#: src/strings.tsx:823
msgid "This note is locked. Unlock note to save changes"
msgstr "This note is locked. Unlock note to save changes"
@@ -1912,36 +2050,36 @@ msgstr "This note is not linked to any other note."
msgid "This note is not referenced in other notes."
msgstr "This note is not referenced in other notes."
-#: src/strings.tsx:527
+#: src/strings.tsx:529
msgid "Thu"
msgstr "Thu"
-#: src/strings.tsx:518
+#: src/strings.tsx:520
msgid "Thursday"
msgstr "Thursday"
-#: src/strings.tsx:563
+#: src/strings.tsx:565
msgid "TIP"
msgstr "TIP"
-#: src/strings.tsx:544
-#: src/strings.tsx:549
+#: src/strings.tsx:546
+#: src/strings.tsx:551
msgid "Title"
msgstr "Title"
-#: src/strings.tsx:525
+#: src/strings.tsx:527
msgid "Tue"
msgstr "Tue"
-#: src/strings.tsx:516
+#: src/strings.tsx:518
msgid "Tuesday"
msgstr "Tuesday"
-#: src/strings.tsx:778
+#: src/strings.tsx:780
msgid "Turn off reminder"
msgstr "Turn off reminder"
-#: src/strings.tsx:779
+#: src/strings.tsx:781
msgid "Turn on reminder"
msgstr "Turn on reminder"
@@ -1949,23 +2087,23 @@ msgstr "Turn on reminder"
msgid "Two factor authentication"
msgstr "Two factor authentication"
-#: src/strings.tsx:415
+#: src/strings.tsx:417
msgid "Two-factor authentication"
msgstr "Two-factor authentication"
-#: src/strings.tsx:424
+#: src/strings.tsx:426
msgid "Two-factor authentication enabled"
msgstr "Two-factor authentication enabled"
-#: src/strings.tsx:473
+#: src/strings.tsx:475
msgid "Undo"
msgstr "Undo"
-#: src/strings.tsx:733
+#: src/strings.tsx:735
msgid "Unfavorite"
msgstr "Unfavorite"
-#: src/strings.tsx:732
+#: src/strings.tsx:734
msgid "Unlink notebook"
msgstr "Unlink notebook"
@@ -1973,16 +2111,16 @@ msgstr "Unlink notebook"
msgid "Unlock"
msgstr "Unlock"
-#: src/strings.tsx:383
-#: src/strings.tsx:468
+#: src/strings.tsx:385
+#: src/strings.tsx:470
msgid "Unlock note"
msgstr "Unlock note"
-#: src/strings.tsx:765
+#: src/strings.tsx:767
msgid "Unlock note to delete it"
msgstr "Unlock note to delete it"
-#: src/strings.tsx:454
+#: src/strings.tsx:456
msgid "Unlock with biometrics"
msgstr "Unlock with biometrics"
@@ -1998,15 +2136,15 @@ msgstr "Unlock with password once to enable biometric access."
msgid "Unlock your notes"
msgstr "Unlock your notes"
-#: src/strings.tsx:785
+#: src/strings.tsx:787
msgid "Unpin"
msgstr "Unpin"
-#: src/strings.tsx:802
+#: src/strings.tsx:804
msgid "Unpin from notifications"
msgstr "Unpin from notifications"
-#: src/strings.tsx:493
+#: src/strings.tsx:495
msgid "Unpublish"
msgstr "Unpublish"
@@ -2014,23 +2152,23 @@ msgstr "Unpublish"
msgid "Untitled"
msgstr "Untitled"
-#: src/strings.tsx:494
+#: src/strings.tsx:496
msgid "Update"
msgstr "Update"
-#: src/strings.tsx:316
+#: src/strings.tsx:318
msgid "Update available"
msgstr "Update available"
-#: src/strings.tsx:627
+#: src/strings.tsx:629
msgid "Upgrade to Pro"
msgstr "Upgrade to Pro"
-#: src/strings.tsx:430
+#: src/strings.tsx:432
msgid "Upload"
msgstr "Upload"
-#: src/strings.tsx:431
+#: src/strings.tsx:433
msgid "Uploaded"
msgstr "Uploaded"
@@ -2039,19 +2177,23 @@ msgid "Uploaded file verification failed."
msgstr "Uploaded file verification failed."
#: src/strings.tsx:36
-#: src/strings.tsx:432
+#: src/strings.tsx:434
msgid "Uploading"
msgstr "Uploading"
-#: src/strings.tsx:535
+#: src/strings.tsx:537
msgid "Urgent"
msgstr "Urgent"
-#: src/strings.tsx:466
+#: src/strings.tsx:468
msgid "Use account password"
msgstr "Use account password"
-#: src/strings.tsx:348
+#: src/strings.tsx:848
+msgid "Use an authenticator app to generate 2FA codes."
+msgstr "Use an authenticator app to generate 2FA codes."
+
+#: src/strings.tsx:350
msgid ""
"Use the following key to format the title:\n"
"$date$: Current date.\n"
@@ -2069,85 +2211,89 @@ msgstr ""
"$count$: Number of notes + 1.\n"
"$headline$: Use starting line of the note as title."
-#: src/strings.tsx:673
+#: src/strings.tsx:675
msgid "Vault created"
msgstr "Vault created"
-#: src/strings.tsx:377
+#: src/strings.tsx:379
msgid "Vault Fingerprint Unlock"
msgstr "Vault Fingerprint Unlock"
-#: src/strings.tsx:481
+#: src/strings.tsx:868
+msgid "Verification failed"
+msgstr "Verification failed"
+
+#: src/strings.tsx:483
msgid "Verify"
msgstr "Verify"
-#: src/strings.tsx:345
+#: src/strings.tsx:347
msgid "Version"
msgstr "Version"
-#: src/strings.tsx:534
+#: src/strings.tsx:536
msgid "Vibrate"
msgstr "Vibrate"
-#: src/strings.tsx:634
+#: src/strings.tsx:636
msgid "Videos"
msgstr "Videos"
-#: src/strings.tsx:477
+#: src/strings.tsx:479
msgid "View all linked notebooks"
msgstr "View all linked notebooks"
-#: src/strings.tsx:346
+#: src/strings.tsx:348
msgid "Visit homepage"
msgstr "Visit homepage"
-#: src/strings.tsx:396
+#: src/strings.tsx:398
msgid "We are sorry, it seems that the app crashed due to an error. You can submit a bug report below so we can fix this asap."
msgstr "We are sorry, it seems that the app crashed due to an error. You can submit a bug report below so we can fix this asap."
-#: src/strings.tsx:526
+#: src/strings.tsx:528
msgid "Wed"
msgstr "Wed"
-#: src/strings.tsx:517
+#: src/strings.tsx:519
msgid "Wednesday"
msgstr "Wednesday"
-#: src/strings.tsx:304
+#: src/strings.tsx:306
msgid "week"
msgstr "week"
-#: src/strings.tsx:557
+#: src/strings.tsx:559
msgid "Week"
msgstr "Week"
#: src/strings.tsx:138
-#: src/strings.tsx:509
+#: src/strings.tsx:511
msgid "Weekly"
msgstr "Weekly"
-#: src/strings.tsx:654
+#: src/strings.tsx:656
msgid "Welcome back, {email}"
msgstr "Welcome back, {email}"
-#: src/strings.tsx:683
+#: src/strings.tsx:685
msgid "Write notes with freedom, no spying, no tracking."
msgstr "Write notes with freedom, no spying, no tracking."
-#: src/strings.tsx:306
+#: src/strings.tsx:308
msgid "year"
msgstr "year"
-#: src/strings.tsx:556
+#: src/strings.tsx:558
msgid "Year"
msgstr "Year"
#: src/strings.tsx:140
-#: src/strings.tsx:511
+#: src/strings.tsx:513
msgid "Yearly"
msgstr "Yearly"
-#: src/strings.tsx:458
+#: src/strings.tsx:460
msgid "Yes"
msgstr "Yes"
@@ -2159,47 +2305,99 @@ msgstr "You also agree to recieve marketing emails from us which you can opt-out
msgid "You can track your issue at"
msgstr "You can track your issue at"
-#: src/strings.tsx:696
+#: src/strings.tsx:834
+msgid "You have not added any notebooks yet"
+msgstr "You have not added any notebooks yet"
+
+#: src/strings.tsx:833
+msgid "You have not added any tags yet"
+msgstr "You have not added any tags yet"
+
+#: src/strings.tsx:832
+msgid "You have not created any notes yet"
+msgstr "You have not created any notes yet"
+
+#: src/strings.tsx:831
+msgid "You have not favorited any notes yet"
+msgstr "You have not favorited any notes yet"
+
+#: src/strings.tsx:836
+msgid "You have not published any monographs yet"
+msgstr "You have not published any monographs yet"
+
+#: src/strings.tsx:835
+msgid "You have not set any reminders yet"
+msgstr "You have not set any reminders yet"
+
+#: src/strings.tsx:698
msgid "You simply cannot get any better of a note taking app than @notesnook. The UI is clean and slick, it is feature rich, encrypted, reasonably priced (esp. for students & educators) & open source"
msgstr "You simply cannot get any better of a note taking app than @notesnook. The UI is clean and slick, it is feature rich, encrypted, reasonably priced (esp. for students & educators) & open source"
-#: src/strings.tsx:592
+#: src/strings.tsx:594
msgid "You subscribed to Notesnook Pro on Android Phone/Tablet using Google In App Purchase."
msgstr "You subscribed to Notesnook Pro on Android Phone/Tablet using Google In App Purchase."
-#: src/strings.tsx:585
+#: src/strings.tsx:587
msgid "You subscribed to Notesnook Pro on iOS using Apple In App Purchase. You can cancel anytime with your iTunes Account settings."
msgstr "You subscribed to Notesnook Pro on iOS using Apple In App Purchase. You can cancel anytime with your iTunes Account settings."
-#: src/strings.tsx:598
+#: src/strings.tsx:600
msgid "You subscribed to Notesnook Pro on the Web/Desktop App."
msgstr "You subscribed to Notesnook Pro on the Web/Desktop App."
-#: src/strings.tsx:392
+#: src/strings.tsx:394
msgid "Your account email will be changed without affecting your subscription or any other settings."
msgstr "Your account email will be changed without affecting your subscription or any other settings."
-#: src/strings.tsx:423
+#: src/strings.tsx:425
msgid "Your account is now 100% secure against unauthorized logins."
msgstr "Your account is now 100% secure against unauthorized logins."
-#: src/strings.tsx:640
+#: src/strings.tsx:642
msgid "Your email is not confirmed. Please confirm your email address to change account password."
msgstr "Your email is not confirmed. Please confirm your email address to change account password."
-#: src/strings.tsx:692
+#: src/strings.tsx:825
+msgid "Your favorites"
+msgstr "Your favorites"
+
+#: src/strings.tsx:876
+msgid "Your free trial has started"
+msgstr "Your free trial has started"
+
+#: src/strings.tsx:830
+msgid "Your monographs"
+msgstr "Your monographs"
+
+#: src/strings.tsx:828
+msgid "Your notebooks"
+msgstr "Your notebooks"
+
+#: src/strings.tsx:826
+msgid "Your notes"
+msgstr "Your notes"
+
+#: src/strings.tsx:694
msgid "Your privacy matters to us, no matter who you are. In a world where everyone is trying to spy on you, Notesnook encrypts all your data before it leaves your device. With Notesnook no one can ever sell your data again."
msgstr "Your privacy matters to us, no matter who you are. In a world where everyone is trying to spy on you, Notesnook encrypts all your data before it leaves your device. With Notesnook no one can ever sell your data again."
+#: src/strings.tsx:829
+msgid "Your reminders"
+msgstr "Your reminders"
+
#: src/strings.tsx:69
msgid "Your session has expired. Please enter password for {obfuscatedEmail} to continue."
msgstr "Your session has expired. Please enter password for {obfuscatedEmail} to continue."
-#: src/strings.tsx:579
+#: src/strings.tsx:827
+msgid "Your tags"
+msgstr "Your tags"
+
+#: src/strings.tsx:581
msgid "yr"
msgstr "yr"
-#: src/strings.tsx:543
+#: src/strings.tsx:545
msgid "Z to A"
msgstr "Z to A"
diff --git a/packages/intl/src/strings.tsx b/packages/intl/src/strings.tsx
index 24ea6e455..25f860a4b 100644
--- a/packages/intl/src/strings.tsx
+++ b/packages/intl/src/strings.tsx
@@ -884,5 +884,499 @@ $headline$: Use starting line of the note as title.`,
enterApplockPasswordDesc: () =>
t`Please enter your app lock password to continue`,
enterApplockPin: () => t`Enter app lock pin`,
- enterApplockPinDesc: () => t`Please enter your app lock pin to continue`
+ enterApplockPinDesc: () => t`Please enter your app lock pin to continue`,
+ account: () => t`account`,
+ subscribeToPro: () => t`Subscribe to Pro`,
+ trialStarted: () => t`Your free trial has started`,
+ subDetails: () => t`Subscription details`,
+ signedUpOn: (date: string) => t`Signed up on ${date}`,
+ trialEndsOn: (date: string) => t`Your free trial ends on ${date}`,
+ subEnded: () => t`Your subscription has ended`,
+ accountDowngradedIn: (days: number) =>
+ t`Your account will be downgraded in ${days} days`,
+ subEndsOn: (date: string) => t`Your subscription ends on ${date}`,
+ subRenewOn: (date: string) => t`Your subscription renews on ${date}`,
+ neverHesitate: () => t`Never hesitate to choose privacy`,
+ manageAccount: () => t`Manage account`,
+ manageAccountDesc: () => t`Manage your account related settings here`,
+ removeProfilePicture: () => t`Remove profile picture`,
+ removeProfilePictureDesc: () => t`Remove your profile picture`,
+ removeProfilePictureConfirmation: () =>
+ t`Are you sure you want to remove your profile picture?`,
+ removeFullName: () => t`Remove full name`,
+ removeFullNameConfirmation: () =>
+ t`Are you sure you want to remove your name?`,
+ removeFullNameDesc: () => t`Remove your full name from profile`,
+ saveDataRecoveryKey: () => t`Save data recovery key`,
+ saveDataRecoveryKeyDesc: () =>
+ t`Save your data recovery key in a safe place. You will need it to recover your data in case you forget your password.`,
+ manageAttachments: () => t`Manage attachments`,
+ manageAttachmentsDesc: () => t`Manage your attachments in one place`,
+ changePasswordDesc: () => t`Change your account password`,
+ change2faMethodDesc: () =>
+ t`Change your primary two-factor authentication method`,
+ addFallback2faMethod: () => t`Add 2FA fallback method`,
+ addFallback2faMethodDesc: () =>
+ t`You can use fallback 2FA method incase you are unable to login via primary method`,
+ change2faFallbackMethod: () => t`Change 2FA fallback method`,
+ viewRecoveryCodes: () => t`View recovery codes`,
+ viewRecoveryCodesDesc: () =>
+ t`View your recovery codes to recover your account in case you lose access to your two-factor authentication methods.`,
+ subscriptionNotActivated: () => t`Subscription not activated?`,
+ loadingSubscription: () => t`Loading subscription details`,
+ loadingSubscriptionDesc: () => t`Please wait while we load your subscription`,
+ notesnookPro: () => t`Notesnook Pro`,
+ subscribedOnVerify: (date: string) =>
+ t`You subscribed to Notesnook Pro on ${date}. Verify this subscription?`,
+ verifySubscription: () => t`Verify subscription`,
+ subscriptionVerifyWait: () =>
+ t`Please wait while we verify your subscription`,
+ verifySubDesc: () => t`Verify your subscription to Notesnook Pro`,
+ logoutWarnin: () =>
+ t`Logging out will clear all data stored on THIS DEVICE. Make sure you have synced all your changes before logging out.`,
+ logoutError: () => t`Error logging out`,
+ deleteAccount: () => t`Delete account`,
+ deleteAccountDesc: () =>
+ t`All your data will be removed permanently. Make sure you have saved backup of your notes. This action is IRREVERSIBLE.`,
+ enterAccountPassword: () => t`Enter account password`,
+ failedToDeleteAccount: () => t`Failed to delete account`,
+ syncSettings: () => t`Sync settings`,
+ syncSettingsDesc: () => t`Manage your sync settings here`,
+ disableAutoSync: () => t`Disable auto sync`,
+ disableAutoSyncDesc: () =>
+ t`Turn off automatic syncing. Changes from this client will be synced only when you run sync manually.`,
+ disableRealtimeSync: () => t`Disable realtime sync`,
+ disableRealtimeSyncDesc: () =>
+ t`Changes from other devices won't be updated in the editor in real-time.`,
+ disableSync: () => t`Disable sync`,
+ disableSyncDesc: () =>
+ t`Turns off syncing completely on this device. Any changes made will remain local only and new changes from your other devices won't sync to this device.`,
+ backgroundSync: () => t`Background sync (experimental)`,
+ backgroundSyncDesc: () =>
+ t`Sync your notes in the background even when the app is closed. This is an experimental feature. If you face any issues, please turn it off.`,
+ forcePullChanges: () => t`Force pull changes`,
+ forcePullChangesDesc: () =>
+ t`Use this if changes from other devices are not appearing on this device. This will overwrite the data on this device with the latest data from the server.\n\nThis must only be used for troubleshooting. Using it regularly for sync is not recommended and will lead to unexpected data loss and other issues. If you are having persistent issues with sync, please report them to us at [email protected].`,
+ forceSyncNotice: () =>
+ `This must only be used for troubleshooting. Using this regularly for sync is not recommended and will lead to unexpected data loss and other issues. If you are having persistent issues with sync, please report them to us at [email protected].`,
+ forcePushChanges: () => t`Force push changes`,
+ forcePushChangesDesc: () =>
+ t`Use this if changes made on this device are not appearing on other devices. This will overwrite the data on the server with the data from this device.\n\nThis must only be used for troubleshooting. Using it regularly for sync is not recommended and will lead to unexpected data loss and other issues. If you are having persistent issues with sync, please report them to us at [email protected].`,
+ start: () => t`Start`,
+ customization: () => t`Customization`,
+ appearance: () => t`Appearance`,
+ appearanceDesc: () =>
+ t`Customize the appearance of the app with custom themes`,
+ themes: () => t`Themes`,
+ themesDesc: () => t`Choose from pre-built themes or create your own`,
+ useSystemTheme: () => t`Use system theme`,
+ useSystemThemeDesc: () =>
+ t`Automatically switch between light and dark themes based on your system settings`,
+ darkMode: () => t`Dark mode`,
+ darkModeDesc: () => t`Use dark mode for the app`,
+ behavior: () => t`Behavior`,
+ behaviorDesc: () => t`Change how the app behaves in different situations`,
+ homepage: () => t`Homepage`,
+ homepageDesc: () => t`Default screen to open on app launch`,
+ dateFormat: () => t`Date format`,
+ dateFormatDesc: () => t`Choose how dates are displayed in the app`,
+ timeFormat: () => t`Time format`,
+ timeFormatDesc: () => t`Choose how time is displayed in the app`,
+ clearTrashInterval: () => t`Clear trash interval`,
+ clearTrashIntervalDesc: () =>
+ t`Automatically clear trash after a certain period of time`,
+ clearDefaultNotebook: () => t`Clear default notebook`,
+ clearDefaultNotebookDesc: () => t`Newly created notes will be uncategorized`,
+ editor: () => t`Editor`,
+ editorDesc: () => t`Customize the note editor`,
+ customizeToolbar: () => t`Customize toolbar`,
+ customizeToolbarDesc: () => t`Customize the toolbar in the note editor`,
+ resetToolbar: () => t`Reset toolbar`,
+ resetToolbarDesc: () => t`Reset the toolbar to default settings`,
+ doubleSpacedLines: () => t`Double spaced lines`,
+ doubleSpacedLinesDesc: () =>
+ t`New lines will be double spaced (old ones won't be affected).`,
+ lineSpacingChanged: () => t`Line spacing changed`,
+ defaultFontSize: () => t`Default font size`,
+ defaultFontSizeDesc: () => t`Default font size in editor`,
+ defaultFontFamily: () => t`Default font family`,
+ defaultFontFamilyDesc: () => t`Default font family in editor`,
+ titleFormat: () => t`Title format`,
+ titleFormatDesc: () => t`Choose how the new note titles are formatted`,
+ mardownShortcuts: () => t`Markdown shortcuts`,
+ mardownShortcutsDesc: () => t`Use markdown shortcuts in the editor`,
+ privacyAndSecurity: () => t`Privacy & security`,
+ telemetry: () => t`Telemetry`,
+ telemetryDesc: () =>
+ t`Contribute towards a better Notesnook. All tracking information is anonymous.`,
+ marketingEmails: () => t`Marketing emails`,
+ marketingEmailsDesc: () =>
+ t`We will send you occasional promotional offers & product updates on your email (sent once every month).`,
+ corsBypass: () => t`CORS bypass`,
+ corsBypassDesc: () =>
+ t`You can set a custom proxy URL to increase your privacy.`,
+ vault: () => t`Vault`,
+ vaultDesc: () => t`Multi-layer encryption to most important notes`,
+ createVaultDesc: () => t`Create a vault to store your most important notes`,
+ changeVaultPasswordDesc: () => t`Setup a new password for your vault.`,
+ clearVaultDesc: () => t`Clear your vault and remove all notes from it`,
+ deleteVaultDesc: () => t`Delete vault (and optionally remove all notes).`,
+ biometricUnlock: () => t`Biometric unlocking`,
+ biometricUnlockDesc: () => t`Unlock your vault with biometric authentication`,
+ revokeBiometricUnlock: () => t`Revoke biometric unlocking`,
+ privacyMode: () => t`Privacy mode`,
+ privacyModeDesc: () =>
+ t`Hide app contents when you switch to other apps. This will also disable screenshot taking in the app.`,
+ appLock: () => t`App lock`,
+ appLockDesc: () => t`Lock the app with a password or pin`,
+ enableAppLock: () => t`Enable app lock`,
+ biometricsNotEnrolled: () => t`Biometrics not enrolled`,
+ biometricsNotEnrolledDesc: () =>
+ t`To use app lock, you must enable biometrics such as Fingerprint lock or Face ID on your phone.`,
+ appLockTimeout: () => t`App lock timeout`,
+ appLockTimeoutDesc: () =>
+ t`Automatically lock the app after a certain period`,
+ setupAppLockPin: () => t`Setup app lock pin`,
+ setupAppLockPinDesc: () => t`Setup a pin to lock the app`,
+ setupAppLockPassword: () => t`Setup app lock password`,
+ setupAppLockPasswordDesc: () => t`Setup a password to lock the app`,
+ changeAppLockPin: () => t`Change app lock pin`,
+ changeAppLockPassword: () => t`Change app lock password`,
+ changeAppLockPinDesc: () => t`Setup a new password for app lock`,
+ changeAppLockPasswordDesc: () => t`Setup a new password for app lock`,
+ removeAppLockPin: () => t`Remove app lock pin`,
+ removeAppLockPassword: () => t`Remove app lock password`,
+ removeAppLockPinDesc: () =>
+ t`Remove app lock pin, app lock will be disabled if no other security method is enabled.`,
+ removeAppLockPasswordDesc: () =>
+ t`Remove app lock password, app lock will be disabled if no other security method is enabled.`,
+ unlockWithBiometricsDesc: () =>
+ t`Unlock the app with biometric authentication. This requires biometrics to be enabled on your device.`,
+ appLockDisabled: () => t`App lock disabled`,
+ backupRestore: () => t`Backup & restore`,
+ backupsDesc: () => t`Manage your backups and restore data`,
+ backupNow: () => t`Backup now`,
+ backupNowWithAttachments: () => t`Backup now with attachments`,
+ backupNowWithAttachmentsDesc: () =>
+ t`Take a full backup of your data with all attachments`,
+ backupNowDesc: () =>
+ t`Take a partial backup of your data that does not include attachments`,
+ automaticBackups: () => t`Automatic backups`,
+ automaticBackupsDesc: () =>
+ t`Set the interval to create a partial backup (without attachments) automatically.`,
+ automaticBackupsWithAttachments: () => t`Automatic backups with attachments`,
+ automaticBackupsWithAttachmentsDesc: () =>
+ t`Set the interval to create a backup (with attachments) automatically.
+
+NOTE: Creating a backup with attachments can take a while, and also fail completely. The app will try to resume/restart the backup in case of interruptions.`,
+ selectBackupDir: () => t`Select backup directory`,
+ selectBackupDirDesc: () => t`Choose where to save your backups`,
+ noDirectorySelected: () => t`No directory selected`,
+ changeBackupDir: () => t`Change backup directory`,
+ backupEncryption: () => t`Backup encryption`,
+ backupEncryptionDesc: () => t`Encrypt your backups for added security`,
+ restoreBackup: () => t`Restore backup`,
+ restoreBackupDesc: () => t`Restore your data from a backup`,
+ exportAllNotes: () => t`Export all notes`,
+ exportAllNotesDesc: () =>
+ t`Export all notes as pdf, markdown, html or text in a single zip file`,
+ productivity: () => t`Productivity`,
+ quickNoteNotification: () => t`Quick note notification`,
+ quickNoteNotificationDesc: () =>
+ t`Quickly create a note from the notification`,
+ reminders: () => t`Reminders`,
+ remindersDesc: () => t`Manage your reminders`,
+ reminderNotification: () => t`Reminder notifications`,
+ reminderNotificationDesc: () =>
+ t`Controls whether this device should receive reminder notifications.`,
+ defaultSnoozeTime: () => t`Default snooze time`,
+ defaultSnoozeTimeDesc: () =>
+ t`Set the default time to snooze a reminder to when you press the snooze button on a notification.`,
+ setSnoozeTimePlaceholder: () => t`Set snooze time in minutes`,
+ changeNotificationSound: () => t`Change notification sound`,
+ changeNotificationSoundDesc: () =>
+ t`Change the sound that plays when you receive a notification`,
+ helpAndSupport: () => t`Help and support`,
+ reportAnIssue: () => t`Report an issue`,
+ reportAnIssueDesc: () =>
+ t`Faced an issue or have a suggestion? Click here to create a bug report`,
+ emailSupport: () => t`Email support`,
+ emailSupportDesc: () =>
+ t`Contact us directly via [email protected] for any help or support`,
+ documentation: () => t`Documentation`,
+ documentationDesc: () =>
+ t`Read the documentation to learn more about Notesnook`,
+ debugging: () => t`Debugging`,
+ debuggingDesc: () =>
+ t`Get helpful debug info about the app to help us find bugs.`,
+ debugLogs: () => t`Debug logs`,
+ debugLogsDesc: () => t`View and share debug logs`,
+ community: () => t`Community`,
+ joinTelegram: () => t`Join our Telegram group`,
+ joinTelegramDesc: () =>
+ t`Join our Telegram group to chat with other users and the team`,
+ joinMastodon: () => t`Follow us on Mastodon`,
+ joinMastodonDesc: () =>
+ t`Follow us on Mastodon for updates and news about Notesnook`,
+ followOnX: () => t`Follow us on X`,
+ followOnXDesc: () => t`Follow us on X for updates and news about Notesnook`,
+ joinDiscord: () => t`Join our Discord server`,
+ joinDiscordDesc: () =>
+ t`Join our Discord server to chat with other users and the team`,
+ tos: () => t`Terms of service`,
+ tosDesc: () => t`Read the terms of service`,
+ privacyPolicy: () => t`Privacy policy`,
+ privacyPolicyDesc: () => t`Read the privacy policy`,
+ licenses: () => t`Open source licenses`,
+ ossLibs: () => t`Open source libraries used in Notesnook`,
+ about: () => t`About`,
+ downloadOnDesktop: () => t`Download on desktop`,
+ downloadOnDesktopDesc: () =>
+ t`Get Notesnook app on your desktop and access all notes`,
+ roadmap: () => t`Roadmap`,
+ roadmapDesc: () => t`See what the future of Notesnook is going to be like.`,
+ checkForUpdates: () => t`Check for updates`,
+ checkForUpdatesDesc: () => t`Check for new version of Notesnook`,
+ appVersion: () => t`App version`,
+ defaultSound: () => t`Default sound`,
+ subNotSupported: () =>
+ t`"This version of Notesnook app does not support in-app purchases. Kindly login on the Notesnook web app to make the purchase."`,
+ goToWebApp: () => t`Go to web app`,
+ subOnWeb: () => t`Subscribed on web`,
+ openInBrowserToManageSub: () => t`Open in browser to manage subscription`,
+ editProfilePicture: () => t`Edit profile picture`,
+ setFullName: () => t`Set full name`,
+ setFullNameDesc: () =>
+ t`Your name is end-to-end encrypted and only visible to you.`,
+ enterFullName: () => t`Enter full name`,
+ deleteGroup: () => t`Delete group`,
+ deleteGroupDesc: () =>
+ t`All tools in this group will be removed from the toolbar.`,
+ homePageChangedTo: (name: string) => t`Homepage changed to ${name}`,
+ restartAppToApplyChanges: () => t`Restart the app to apply the changes`,
+ deleteCollapsed: () => t`Delete collapsed section`,
+ deleteCollapsedDesc: () =>
+ t`All tools in the collapsed section will be removed`,
+ clearTrash: () => t`Clear trash`,
+ clearTrashConfirm: () => t`Are you sure you want to clear trash?`,
+ trashCleared: () => t`Trash cleared`,
+ trash: () => t`Trash`,
+ loadingTrash: () => t`Loading trash`,
+ trashCleanupIntervalTextDaily: () =>
+ t`Trash gets automatically cleaned up daily`,
+ trashCleanupIntervalTextDays: (days: number) =>
+ t`Trash gets automatically cleaned up after ${days} days`,
+ noTrashCleanupInterval: () =>
+ t`Set automatic trash cleanup interval from Settings > Behaviour > Clean trash interval.`,
+ select: () => t`Select`,
+ backupComplete: () => t`Backup complete`,
+ backupSaved: (platform: string) =>
+ select(platform, {
+ android: 'Backup file saved in "Notesnook backups" folder on your phone.',
+ other: "Backup file is saved in File Manager/Notesnook folder"
+ }),
+ shareBackup: () => t`Share backup`,
+ neverAskAgain: () => t`Never ask again`,
+ backingUpData: (type?: "full" | "partial") =>
+ t`Creating a${type === "full" ? " full" : ""} backup`,
+ backupDataDesc: () =>
+ t`All your backups are stored in 'Phone Storage/Notesnook/backups/' folder`,
+ backupSuccess: () => t`Backup successful`,
+ biometricsAuthFailed: () => t`Biometrics authentication failed`,
+ biometricsAuthFailedDesc: () => t`Wait 30 seconds to try again`,
+ biometricsAuthCancelled: () => t`Authentication cancelled by user`,
+ biometricsAuthError: () => t`Authentication failed`,
+ tryAgain: () => t`Tap to try again`,
+ rateAppMessage: () => t`We would love to know what you think!`,
+ rateAppActionText: (platform: string) =>
+ t`Rate Notesnook on ${
+ platform === "ios" ? strings.appStore() : strings.playStore()
+ }`,
+ appStore: () => t`App Store`,
+ playStore: () => t`Play Store`,
+ recoveryKeyMessage: () => t`Keep your data safe`,
+ recoveryKeyMessageActionText: () => t`Save your account recovery key`,
+ loginMessage: () => t`You are not logged in`,
+ loginMessageActionText: () => t`Login to encrypt and sync notes`,
+ syncDisabled: () => t`Sync is disabled`,
+ syncDisabledActionText: () => t`Please confirm your email to sync notes`,
+ autoBackupsOffMessage: () => t`Automatic backups are off`,
+ autoBackupsOffActionText: () =>
+ t`Get Notesnook Pro to enable automatic backups`,
+ newUpdateMessage: () => t`New update available`,
+ newUpdateActionText: () => t`Tap here to update to the latest version`,
+ quickNoteTitle: () => t`Quick note`,
+ quickNoteContent: () => t`Tap on "Take note" to add a note.`,
+ takeNote: () => t`Take note`,
+ quickNotePlaceholder: () => t`Write something...`,
+ hide: () => t`Hide`,
+ disable: () => t`Disable`,
+ notificationsDisabled: () => t`Notifications disabled`,
+ notificationsDisabledDesc: () =>
+ t`Reminders cannot be set because notifications have been disabled from app settings. If you want to keep receiving reminder notifications, enable notifications for Notesnook from app settings.`,
+ openSettings: () => t`Open settings`,
+ close: () => t`Close`,
+ getNotesnookPro: () => t`Get Notesnook Pro`,
+ colorsProMessage: () => t`Unlock more colors with Notesnook Pro`,
+ exportProMessage: () =>
+ t`Export notes as PDF, Markdown and HTML with Notesnook Pro`,
+ tagsProMessage: () => t`Create unlimited tags with Notesnook Pro`,
+ notebookProMessage: () => t`Create unlimited notebooks with Notesnook Pro`,
+ vaultProMessage: () => t`Create unlimited vaults with Notesnook Pro`,
+ emailConfirmationLinkSent: () =>
+ t`We have sent you an email confirmation link. Please check your email inbox. If you cannot find the email, check your spam folder.`,
+ waitBeforeResendEmail: () => t`Please wait before requesting another email`,
+ verificationEmailSent: () => t`Verification email sent`,
+ failedToSendVerificationEmail: () => t`Failed to send verification email`,
+ resendEmail: () => t`Resend email`,
+ trialEndingSoon: () => t`Your free trial is ending soon`,
+ trialExpired: () => t`Your free trial has expired`,
+ tips: [
+ {
+ text: () =>
+ t`You can swipe left anywhere in the app to start a new note.`,
+ contexts: ["notes", "first-note"]
+ },
+ {
+ text: () => t`Long press on any item in list to enter multi-select mode.`,
+ contexts: ["notes", "notebook", "notebook", "tags", "topics"]
+ },
+ {
+ text: () =>
+ t`Monographs enable you to share your notes in a secure and private way.`,
+ contexts: ["monographs"]
+ },
+ {
+ text: () =>
+ t`Monographs can be encrypted with a secret key and shared with anyone.`,
+ contexts: ["monographs"]
+ },
+ {
+ text: () =>
+ t`You can pin frequently used Notebooks to the Side Menu to quickly access them.`,
+ contexts: ["notebook", "notebooks"]
+ },
+ {
+ text: () => t`A notebook can have unlimited topics with unlimited notes.`,
+ contexts: ["notebook", "topics"]
+ },
+ {
+ text: () =>
+ t`You can multi-select notes and move them to a notebook at once`,
+ contexts: ["notebook", "topics"]
+ },
+ {
+ text: () => t`Mark important notes by adding them to favorites.`,
+ contexts: ["notes"]
+ },
+ {
+ text: () =>
+ t`Are you scrolling a lot to find a specific note? Pin it to the top from Note properties.`,
+ contexts: ["notes"]
+ },
+ {
+ text: () =>
+ t`You can view & restore older versions of any note by going to its properties -> History.`,
+ contexts: ["notes"]
+ }
+ ],
+ popups: [
+ {
+ id: "sortmenu",
+ text: () => t`Tap here to change sorting`
+ },
+ {
+ id: "jumpto",
+ text: () => t`Tap here to jump to a section`
+ },
+ {
+ id: "compactmode",
+ text: () => t`Try compact mode to fit more items on screen`
+ },
+ {
+ id: "searchreplace",
+ text: () => t`Switch to search/replace mode`
+ },
+ {
+ id: "notebookshortcut",
+ text: () => t`Create shortcut of this notebook in side menu`
+ }
+ ],
+ someNotesPublished: () => t`Some notes are published`,
+ unpublishToDelete: () => t`Unpublish notes to delete them`,
+ deleteTags: (count: number) =>
+ plural(count, {
+ one: "Delete tag",
+ other: "Delete # tags"
+ }),
+ deleteTagsConfirm: () => t`Are you sure you want to delete these tags?`,
+ deleteItemConfirmation: (itemType: string) =>
+ t`Are you sure you want to delete this ${strings.dataTypes[
+ itemType as keyof typeof strings.dataTypes
+ ]()}?`,
+ deleteItem: (itemType: string) =>
+ t`Delete ${strings.dataTypes[
+ itemType as keyof typeof strings.dataTypes
+ ]()}`,
+ filterAttachments: () => t`Filter attachments by filename, type or hash`,
+ oldPassword: () => t`Old password`,
+ newPassword: () => t`New password`,
+ email: () => t`Email`,
+ emailInvalid: () => t`Invalid email`,
+ confirmPassword: () => t`Confirm password`,
+ currentPin: () => t`Current pin`,
+ currentPassword: () => t`Current password`,
+ newPin: () => t`New pin`,
+ confirmPin: () => t`Confirm pin`,
+ confirmNewPassword: () => t`Confirm new password`,
+ colorTitle: () => t`Color title`,
+ enterNotebookDescription: () => t`Enter notebook description`,
+ searchNotebooks: () => t`Search notebooks`,
+ enterNewEmail: () => t`Enter your new email`,
+ verifyNewEmail: () => t`Enter verification code sent to your new email`,
+ issuePlaceholder: () => t`Tell us more about the issue you are facing.
+
+For example:
+- What were you trying to do in the app?
+- What did you expect to happen?
+- Steps to reproduce the issue
+- Things you have tried etc.`,
+ searchSectionToLinkPlaceholder: () =>
+ t`Search a section of a note to link to`,
+ searchNoteToLinkPlaceholder: () => t`Search a note to link to`,
+ searchForTags: () => t`Search or add a tag`,
+ searchANote: () => t`Search a note`,
+ remindeMeOf: () => t`Remind me of...`,
+ addShortNote: () => t`Add a short note`,
+ typeAKeywordToSearchIn: () => t`Type a keyword to search in`,
+ searchingFor: () => t`Searching for`,
+ typeAKeyword: () => t`Type a keyword`,
+ search: () => t`Search`,
+ enterEmailAddress: () => t`Enter email address`,
+ enterValidEmail: () => t`Please enter a valid email address`,
+ enterValidPhone: () => t`Please enter a valid phone number with country code`,
+ errorGettingCodes: () => t`Error getting codes`,
+ noResultsFound: () => t`No results found for`,
+ routes: {
+ Notes: () => `Notes`,
+ Notebooks: () => `Notebooks`,
+ Notebook: () => `Notebook`,
+ Favorites: () => `Favorites`,
+ Reminders: () => `Reminders`,
+ Trash: () => `Trash`,
+ Settings: () => `Settings`,
+ Tags: () => `Tags`,
+ Editor: () => `Editor`,
+ Home: () => `Home`,
+ Search: () => `Search`
+ },
+ searchInRoute: (routeName: string) =>
+ `Type a keyword to search in ${
+ strings.routes[routeName as keyof typeof strings.routes]?.() || routeName
+ }`,
+ logoutConfirmation: () =>
+ t`Are you sure you want to logout and clear all data stored on this device?`,
+ backupDataBeforeLogout: () => t`Take a backup before logging out`,
+ unsyncedChangesWarning: () =>
+ t`You have unsynced notes. Take a backup or sync your notes to avoid losing your critical data.`
};