mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
mobile: fix localize errors
This commit is contained in:
committed by
Abdullah Atta
parent
014866c330
commit
c639bfb227
@@ -1369,7 +1369,7 @@ export const settingsGroups: SettingSection[] = [
|
||||
sections: [
|
||||
{
|
||||
id: "report-issue",
|
||||
name: "Report an issue",
|
||||
name: strings.reportAnIssue(),
|
||||
icon: "bug",
|
||||
modifer: () => {
|
||||
presentSheet({
|
||||
|
||||
@@ -167,7 +167,6 @@ async function validateUser(title: string, description?: string) {
|
||||
} else {
|
||||
ToastManager.show({
|
||||
heading: strings.biometricsAuthFailed(),
|
||||
message: "Tap to try again.",
|
||||
type: "error",
|
||||
context: "local"
|
||||
});
|
||||
|
||||
@@ -30,6 +30,7 @@ import {
|
||||
eOpenVaultDialog,
|
||||
eShowToast
|
||||
} from "../utils/events";
|
||||
import { strings } from "@notesnook/intl";
|
||||
|
||||
type Vault = {
|
||||
item: unknown;
|
||||
@@ -172,7 +173,7 @@ export const ToastManager = {
|
||||
func: () => {
|
||||
Clipboard.setString(e?.stack || "");
|
||||
ToastManager.show({
|
||||
heading: "Logs copied!",
|
||||
heading: strings.logsCopied(),
|
||||
type: "success",
|
||||
context: "global",
|
||||
duration: duration
|
||||
|
||||
@@ -37,6 +37,7 @@ import { basename, dirname, join } from "pathe";
|
||||
import downloadAttachment from "../common/filesystem/download-attachment";
|
||||
import { cacheDir } from "../common/filesystem/utils";
|
||||
import { unlockVault } from "../utils/unlock-vault";
|
||||
import { strings } from "@notesnook/intl";
|
||||
|
||||
const FolderNames: { [name: string]: string } = {
|
||||
txt: "Text",
|
||||
@@ -60,8 +61,8 @@ async function getPath(type: string) {
|
||||
|
||||
async function unlockVaultForNoteExport() {
|
||||
return await unlockVault({
|
||||
title: "Unlock vault",
|
||||
paragraph: "Some exported notes are locked, Unlock to export them",
|
||||
title: strings.unlockNotes(),
|
||||
paragraph: strings.exportedNotesLocked(),
|
||||
context: "export-notes"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1425,5 +1425,7 @@ For example:
|
||||
words: () => t`words`,
|
||||
addATag: () => t`Add a tag`,
|
||||
startWritingNote: () => t`Start writing your note...`,
|
||||
off: () => t`Off`
|
||||
off: () => t`Off`,
|
||||
exportedNotesLocked: () =>
|
||||
t`Some exported notes are locked, Unlock to export them`
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user