Skip to content

Commit

Permalink
mobile: fix localize errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Sep 2, 2024
1 parent eac64eb commit 5c1e1a4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/mobile/app/screens/settings/settings-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ export const settingsGroups: SettingSection[] = [
sections: [
{
id: "report-issue",
name: "Report an issue",
name: strings.reportAnIssue(),
icon: "bug",
modifer: () => {
presentSheet({
Expand Down
1 change: 0 additions & 1 deletion apps/mobile/app/services/biometrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
Expand Down
3 changes: 2 additions & 1 deletion apps/mobile/app/services/event-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import {
eOpenVaultDialog,
eShowToast
} from "../utils/events";
import { strings } from "@notesnook/intl";

type Vault = {
item: unknown;
Expand Down Expand Up @@ -173,7 +174,7 @@ export const ToastManager = {
func: () => {
Clipboard.setString(e?.stack || "");
ToastManager.show({
heading: "Logs copied!",
heading: strings.logsCopied(),
type: "success",
context: "global",
duration: duration
Expand Down
5 changes: 3 additions & 2 deletions apps/mobile/app/services/exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
});
}
Expand Down
4 changes: 3 additions & 1 deletion packages/intl/src/strings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1421,5 +1421,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`
};

0 comments on commit 5c1e1a4

Please sign in to comment.