mobile: fix localize errors

This commit is contained in:
Ammar Ahmed
2024-09-02 12:43:37 +05:00
committed by Abdullah Atta
parent 014866c330
commit c639bfb227
5 changed files with 9 additions and 6 deletions

View File

@@ -1369,7 +1369,7 @@ export const settingsGroups: SettingSection[] = [
sections: [
{
id: "report-issue",
name: "Report an issue",
name: strings.reportAnIssue(),
icon: "bug",
modifer: () => {
presentSheet({

View File

@@ -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"
});

View File

@@ -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

View File

@@ -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"
});
}

View File

@@ -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`
};