A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: localize missing strings
Abdullah Attaceebda531494
diff --git a/apps/web/src/dialogs/settings/backup-export-settings.ts b/apps/web/src/dialogs/settings/backup-export-settings.tsindex c8ecd138a..bbe7ea1c7 100644--- a/apps/web/src/dialogs/settings/backup-export-settings.ts+++ b/apps/web/src/dialogs/settings/backup-export-settings.ts@@ -58,8 +58,8 @@ export const BackupExportSettings: SettingsGroup[] = [},{key: "restore-backup",- title: "Restore backup",- description: "Restore a backup file from your disk drive.",+ title: strings.restoreBackup(),+ description: strings.restoreBackupDesc(),components: [{type: "button",@@ -75,10 +75,8 @@ export const BackupExportSettings: SettingsGroup[] = [},{key: "auto-backup",- title: "Automatic backup",- description: `Set the interval to automatically create a backup.--Note: these backups do not contain your attachments.`,+ title: strings.automaticBackups(),+ description: strings.automaticBackupsDesc(),// isHidden: () => !isUserPremium(),onStateChange: (listener) =>useSettingStore.subscribe((s) => s.backupReminderOffset, listener),@@ -86,10 +84,10 @@ Note: these backups do not contain your attachments.`,{type: "dropdown",options: [- { value: "0", title: "Never", premium: true },- { value: "1", title: "Daily", premium: true },- { value: "2", title: "Weekly", premium: true },- { value: "3", title: "Monthly", premium: true }+ { value: "0", title: strings.never(), premium: true },+ { value: "1", title: strings.daily(), premium: true },+ { value: "2", title: strings.weekly(), premium: true },+ { value: "3", title: strings.monthly(), premium: true }],selectedOption: () =>useSettingStore.getState().backupReminderOffset.toString(),@@ -107,11 +105,8 @@ Note: these backups do not contain your attachments.`,},{key: "auto-backup-with-attachments",- title: "Automatic backup with attachments",- description: `Set the interval to automatically create a full backup with attachments.--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.`,- // isHidden: () => !isUserPremium(),+ title: strings.automaticBackupsWithAttachments(),+ description: strings.automaticBackupsWithAttachmentsDesc().join("\n\n"),onStateChange: (listener) =>useSettingStore.subscribe((s) => s.fullBackupReminderOffset,@@ -121,9 +116,9 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet{type: "dropdown",options: [- { value: "0", title: "Never", premium: true },- { value: "1", title: "Weekly", premium: true },- { value: "2", title: "Monthly", premium: true }+ { value: "0", title: strings.never(), premium: true },+ { value: "1", title: strings.weekly(), premium: true },+ { value: "2", title: strings.monthly(), premium: true }],selectedOption: () =>useSettingStore.getState().fullBackupReminderOffset.toString(),@@ -141,8 +136,8 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet},{key: "encrypt-backups",- title: "Backup encryption",- description: "Encrypt all backup files using your master key.",+ title: strings.backupEncryption(),+ description: strings.backupEncryptionDesc(),isHidden: () => !useUserStore.getState().isLoggedIn,onStateChange: (listener) => {const subscriptions = [@@ -168,13 +163,13 @@ NOTE: Creating a backup with attachments can take a while, and also fail complet},{key: "backup-directory",- title: "Backups directory",- description: "Select directory to store all backup files.",+ title: strings.selectBackupDir(),+ description: strings.selectBackupDirDesc(),isHidden: () => !IS_DESKTOP_APP,components: [{type: "button",- title: "Select directory",+ title: strings.select(),action: async () => {const verified =useSettingStore.getState().encryptBackups ||@@ -186,7 +181,7 @@ NOTE: Creating a backup with attachments can take a while, and also fail completPATHS.backupsDirectory;const location = await desktop?.integration.selectDirectory.query({- title: "Select where Notesnook should save backups",+ title: strings.selectBackupDir(),defaultPath: backupStorageLocation});diff --git a/packages/intl/locale/en.po b/packages/intl/locale/en.poindex 04577c3c8..a621105b3 100644--- a/packages/intl/locale/en.po+++ b/packages/intl/locale/en.po@@ -3448,6 +3448,10 @@ msgstr "Note unlocked"msgid "Note version history is local only."msgstr "Note version history is local only."+#: src/strings.ts:1177+msgid "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."+msgstr "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."+#: src/strings.ts:273msgid "notebook"msgstr "notebook"@@ -4888,12 +4892,8 @@ msgid "Set the default time to snooze a reminder to when you press the snooze bumsgstr "Set the default time to snooze a reminder to when you press the snooze button on a notification."#: src/strings.ts:1176-msgid ""-"Set the interval to create a backup (with attachments) automatically.\n"-"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."-msgstr ""-"Set the interval to create a backup (with attachments) automatically.\n"-"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."+msgid "Set the interval to create a backup (with attachments) automatically."+msgstr "Set the interval to create a backup (with attachments) automatically."#: src/strings.ts:1173msgid "Set the interval to create a partial backup (without attachments) automatically."diff --git a/packages/intl/locale/pseudo-LOCALE.po b/packages/intl/locale/pseudo-LOCALE.poindex d4b2678e8..7dbe15422 100644--- a/packages/intl/locale/pseudo-LOCALE.po+++ b/packages/intl/locale/pseudo-LOCALE.po@@ -3434,6 +3434,10 @@ msgstr ""msgid "Note version history is local only."msgstr ""+#: src/strings.ts:1177+msgid "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."+msgstr ""+#: src/strings.ts:273msgid "notebook"msgstr ""@@ -4870,9 +4874,7 @@ msgid "Set the default time to snooze a reminder to when you press the snooze bumsgstr ""#: src/strings.ts:1176-msgid ""-"Set the interval to create a backup (with attachments) automatically.\n"-"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."+msgid "Set the interval to create a backup (with attachments) automatically."msgstr ""#: src/strings.ts:1173diff --git a/packages/intl/src/strings.ts b/packages/intl/src/strings.tsindex 80d9f19ae..39af3b92a 100644--- a/packages/intl/src/strings.ts+++ b/packages/intl/src/strings.ts@@ -1172,10 +1172,10 @@ $headline$: Use starting line of the note as title.`,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.`,+ automaticBackupsWithAttachmentsDesc: () => [+ t`Set the interval to create a backup (with attachments) automatically.`,+ t`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`,