mirror of
https://github.com/callumalpass/tasknotes.git
synced 2026-07-22 12:50:26 +00:00
Merge branch 'i18n-improvements'
This commit is contained in:
commit
d7550484cd
28 changed files with 7813 additions and 1332 deletions
275
apply-translations.js
Normal file
275
apply-translations.js
Normal file
|
|
@ -0,0 +1,275 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
// French translations
|
||||
const frenchTranslations = {
|
||||
stats: {
|
||||
filters: {
|
||||
allTasks: "Toutes les tâches",
|
||||
activeOnly: "Actives uniquement",
|
||||
completedOnly: "Terminées uniquement",
|
||||
},
|
||||
refreshButton: "Actualiser",
|
||||
timeRanges: {
|
||||
allTime: "Tout le temps",
|
||||
last7Days: "7 derniers jours",
|
||||
last30Days: "30 derniers jours",
|
||||
last90Days: "90 derniers jours",
|
||||
customRange: "Plage personnalisée",
|
||||
},
|
||||
resetFiltersButton: "Réinitialiser les filtres",
|
||||
dateRangeFrom: "De",
|
||||
dateRangeTo: "À",
|
||||
noProject: "Aucun projet",
|
||||
cards: {
|
||||
timeTrackedEstimated: "Temps suivi / estimé",
|
||||
totalTasks: "Total des tâches",
|
||||
completionRate: "Taux de complétion",
|
||||
activeProjects: "Projets actifs",
|
||||
avgTimePerTask: "Temps moyen par tâche",
|
||||
},
|
||||
labels: {
|
||||
tasks: "Tâches",
|
||||
completed: "Terminées",
|
||||
projects: "Projets",
|
||||
},
|
||||
noProjectData: "Aucune donnée de projet disponible",
|
||||
notAvailable: "N/D",
|
||||
noTasks: "Aucune tâche trouvée",
|
||||
loading: "Chargement...",
|
||||
},
|
||||
kanban: {
|
||||
uncategorized: "Non catégorisé",
|
||||
noProject: "Aucun projet",
|
||||
columnTitle: "Sans titre",
|
||||
},
|
||||
agenda: {
|
||||
empty: {
|
||||
helpText: "Créez des tâches avec des dates d'échéance ou planifiées, ou ajoutez des notes pour les voir ici.",
|
||||
},
|
||||
contextMenu: {
|
||||
showOverdueSection: "Afficher la section en retard",
|
||||
showNotes: "Afficher les notes",
|
||||
calendarSubscriptions: "Abonnements au calendrier",
|
||||
},
|
||||
periods: {
|
||||
thisWeek: "Cette semaine",
|
||||
},
|
||||
tipPrefix: "Astuce : ",
|
||||
},
|
||||
notes: {
|
||||
refreshButton: "Actualiser",
|
||||
refreshingButton: "Actualisation...",
|
||||
empty: {
|
||||
helpText: "Aucune note trouvée pour la date sélectionnée. Essayez de sélectionner une autre date dans la vue Mini Calendrier ou créez des notes.",
|
||||
},
|
||||
loading: "Chargement des notes...",
|
||||
refreshButtonAriaLabel: "Actualiser la liste des notes",
|
||||
}
|
||||
};
|
||||
|
||||
// Japanese translations
|
||||
const japaneseTranslations = {
|
||||
stats: {
|
||||
filters: {
|
||||
allTasks: "すべてのタスク",
|
||||
activeOnly: "アクティブのみ",
|
||||
completedOnly: "完了のみ",
|
||||
},
|
||||
refreshButton: "更新",
|
||||
timeRanges: {
|
||||
allTime: "全期間",
|
||||
last7Days: "過去7日間",
|
||||
last30Days: "過去30日間",
|
||||
last90Days: "過去90日間",
|
||||
customRange: "カスタム範囲",
|
||||
},
|
||||
resetFiltersButton: "フィルターをリセット",
|
||||
dateRangeFrom: "開始",
|
||||
dateRangeTo: "終了",
|
||||
noProject: "プロジェクトなし",
|
||||
cards: {
|
||||
timeTrackedEstimated: "追跡時間 / 推定時間",
|
||||
totalTasks: "合計タスク",
|
||||
completionRate: "完了率",
|
||||
activeProjects: "アクティブプロジェクト",
|
||||
avgTimePerTask: "タスク平均時間",
|
||||
},
|
||||
labels: {
|
||||
tasks: "タスク",
|
||||
completed: "完了",
|
||||
projects: "プロジェクト",
|
||||
},
|
||||
noProjectData: "プロジェクトデータがありません",
|
||||
notAvailable: "N/A",
|
||||
noTasks: "タスクが見つかりません",
|
||||
loading: "読み込み中...",
|
||||
},
|
||||
kanban: {
|
||||
uncategorized: "未分類",
|
||||
noProject: "プロジェクトなし",
|
||||
columnTitle: "無題",
|
||||
},
|
||||
agenda: {
|
||||
empty: {
|
||||
helpText: "期限日または予定日を持つタスクを作成するか、ノートを追加してここに表示してください。",
|
||||
},
|
||||
contextMenu: {
|
||||
showOverdueSection: "期限切れセクションを表示",
|
||||
showNotes: "ノートを表示",
|
||||
calendarSubscriptions: "カレンダー購読",
|
||||
},
|
||||
periods: {
|
||||
thisWeek: "今週",
|
||||
},
|
||||
tipPrefix: "ヒント:",
|
||||
},
|
||||
notes: {
|
||||
refreshButton: "更新",
|
||||
refreshingButton: "更新中...",
|
||||
empty: {
|
||||
helpText: "選択した日付のノートが見つかりません。ミニカレンダービューで別の日付を選択するか、ノートを作成してください。",
|
||||
},
|
||||
loading: "ノート読み込み中...",
|
||||
refreshButtonAriaLabel: "ノートリストを更新",
|
||||
}
|
||||
};
|
||||
|
||||
// Russian translations
|
||||
const russianTranslations = {
|
||||
stats: {
|
||||
filters: {
|
||||
allTasks: "Все задачи",
|
||||
activeOnly: "Только активные",
|
||||
completedOnly: "Только завершенные",
|
||||
},
|
||||
refreshButton: "Обновить",
|
||||
timeRanges: {
|
||||
allTime: "Всё время",
|
||||
last7Days: "Последние 7 дней",
|
||||
last30Days: "Последние 30 дней",
|
||||
last90Days: "Последние 90 дней",
|
||||
customRange: "Пользовательский диапазон",
|
||||
},
|
||||
resetFiltersButton: "Сбросить фильтры",
|
||||
dateRangeFrom: "С",
|
||||
dateRangeTo: "По",
|
||||
noProject: "Без проекта",
|
||||
cards: {
|
||||
timeTrackedEstimated: "Отслежено / оценено времени",
|
||||
totalTasks: "Всего задач",
|
||||
completionRate: "Процент завершения",
|
||||
activeProjects: "Активные проекты",
|
||||
avgTimePerTask: "Среднее время на задачу",
|
||||
},
|
||||
labels: {
|
||||
tasks: "Задачи",
|
||||
completed: "Завершено",
|
||||
projects: "Проекты",
|
||||
},
|
||||
noProjectData: "Нет данных проекта",
|
||||
notAvailable: "Н/Д",
|
||||
noTasks: "Задачи не найдены",
|
||||
loading: "Загрузка...",
|
||||
},
|
||||
kanban: {
|
||||
uncategorized: "Без категории",
|
||||
noProject: "Без проекта",
|
||||
columnTitle: "Без названия",
|
||||
},
|
||||
agenda: {
|
||||
empty: {
|
||||
helpText: "Создайте задачи с датами выполнения или запланированными датами, или добавьте заметки, чтобы увидеть их здесь.",
|
||||
},
|
||||
contextMenu: {
|
||||
showOverdueSection: "Показать секцию просроченных",
|
||||
showNotes: "Показать заметки",
|
||||
calendarSubscriptions: "Подписки на календари",
|
||||
},
|
||||
periods: {
|
||||
thisWeek: "Эта неделя",
|
||||
},
|
||||
tipPrefix: "Совет: ",
|
||||
},
|
||||
notes: {
|
||||
refreshButton: "Обновить",
|
||||
refreshingButton: "Обновление...",
|
||||
empty: {
|
||||
helpText: "Заметки для выбранной даты не найдены. Попробуйте выбрать другую дату в виде Мини-календаря или создайте заметки.",
|
||||
},
|
||||
loading: "Загрузка заметок...",
|
||||
refreshButtonAriaLabel: "Обновить список заметок",
|
||||
}
|
||||
};
|
||||
|
||||
// Chinese translations
|
||||
const chineseTranslations = {
|
||||
stats: {
|
||||
filters: {
|
||||
allTasks: "所有任务",
|
||||
activeOnly: "仅活动",
|
||||
completedOnly: "仅已完成",
|
||||
},
|
||||
refreshButton: "刷新",
|
||||
timeRanges: {
|
||||
allTime: "所有时间",
|
||||
last7Days: "最近7天",
|
||||
last30Days: "最近30天",
|
||||
last90Days: "最近90天",
|
||||
customRange: "自定义范围",
|
||||
},
|
||||
resetFiltersButton: "重置过滤器",
|
||||
dateRangeFrom: "从",
|
||||
dateRangeTo: "到",
|
||||
noProject: "无项目",
|
||||
cards: {
|
||||
timeTrackedEstimated: "已跟踪/估计时间",
|
||||
totalTasks: "总任务数",
|
||||
completionRate: "完成率",
|
||||
activeProjects: "活动项目",
|
||||
avgTimePerTask: "平均每任务时间",
|
||||
},
|
||||
labels: {
|
||||
tasks: "任务",
|
||||
completed: "已完成",
|
||||
projects: "项目",
|
||||
},
|
||||
noProjectData: "无项目数据",
|
||||
notAvailable: "不适用",
|
||||
noTasks: "未找到任务",
|
||||
loading: "加载中...",
|
||||
},
|
||||
kanban: {
|
||||
uncategorized: "未分类",
|
||||
noProject: "无项目",
|
||||
columnTitle: "无标题",
|
||||
},
|
||||
agenda: {
|
||||
empty: {
|
||||
helpText: "创建具有截止日期或计划日期的任务,或添加笔记以在此处查看它们。",
|
||||
},
|
||||
contextMenu: {
|
||||
showOverdueSection: "显示逾期部分",
|
||||
showNotes: "显示笔记",
|
||||
calendarSubscriptions: "日历订阅",
|
||||
},
|
||||
periods: {
|
||||
thisWeek: "本周",
|
||||
},
|
||||
tipPrefix: "提示:",
|
||||
},
|
||||
notes: {
|
||||
refreshButton: "刷新",
|
||||
refreshingButton: "刷新中...",
|
||||
empty: {
|
||||
helpText: "未找到所选日期的笔记。尝试在迷你日历视图中选择不同的日期或创建一些笔记。",
|
||||
},
|
||||
loading: "加载笔记中...",
|
||||
refreshButtonAriaLabel: "刷新笔记列表",
|
||||
}
|
||||
};
|
||||
|
||||
console.log('Translation application script created. This demonstrates the pattern.');
|
||||
console.log('Due to the complexity, manual edits will be more efficient.');
|
||||
|
|
@ -50,14 +50,24 @@
|
|||
"views.agenda.notices.refreshFailed": "4a5d6023a7871cc435c43e0e216804aba8229391",
|
||||
"views.agenda.empty.noItemsScheduled": "2f7426fbf539259ef0e4fda86ce41fd40e112206",
|
||||
"views.agenda.empty.noItemsFound": "2ab447eb84f59d3b163ca7bae16ff0d20b3ca125",
|
||||
"views.agenda.empty.helpText": "2ea803868d1e372007e992a4d843bd8f48afa0b5",
|
||||
"views.agenda.contextMenu.showOverdueSection": "651ee476d780890c57df2b1844bc3704cdd69ac8",
|
||||
"views.agenda.contextMenu.showNotes": "448a566605381d679426f3b93c0af8b5ba324bcd",
|
||||
"views.agenda.contextMenu.calendarSubscriptions": "9b99ca62a8c206aeef3199afeb8c2d6ea70c3c3a",
|
||||
"views.agenda.periods.thisWeek": "7b72883e078a6858cf0c79bf3e93e72e765e9ada",
|
||||
"views.agenda.tipPrefix": "9713cc83f3030948afaff535d9c5e6e77ea1a83f",
|
||||
"views.taskList.title": "090ec5f560fc50377fcd95e5cda128e91b276e98",
|
||||
"views.taskList.expandAllGroups": "37a8e42fd92798d42a742f47781938a0ba633cb5",
|
||||
"views.taskList.collapseAllGroups": "6bb15935c519905c1512ed4614f1fd59dc06160f",
|
||||
"views.taskList.noTasksFound": "2586b6ed986a94c1d3edca1b3f615944c7594c89",
|
||||
"views.notes.title": "70440046a3dc2e079f23ee1c57dfa76669b732aa",
|
||||
"views.notes.refreshButton": "5b7bdb61fdbc48d57b9f43d0e28b7cfd3063fca5",
|
||||
"views.notes.refreshButton": "56e3badc4e6c5cc95e0ea5a9a878b9bd09f319d4",
|
||||
"views.notes.refreshingButton": "5b7bdb61fdbc48d57b9f43d0e28b7cfd3063fca5",
|
||||
"views.notes.notices.indexingDisabled": "3e6ccc8839212c37b4152b2193c1369a68dde324",
|
||||
"views.notes.empty.noNotesFound": "9e2f5f8952ae7fb4bf2669ff4c73cee07e32ce53",
|
||||
"views.notes.empty.helpText": "7c7f6e3f729bb2d6851ca58dfb7f78accbbf8e5b",
|
||||
"views.notes.loading": "0a442c25d8901fba648f11b436fcda80cb95aace",
|
||||
"views.notes.refreshButtonAriaLabel": "d3921023cd5b02ded1cdc85a64a5d276aafa4c8e",
|
||||
"views.miniCalendar.title": "a3cc5b7724a714d5620c6e9ef5f851c143022178",
|
||||
"views.advancedCalendar.title": "c7c0400a48b0a60163285b5a39460bd17d8f40f9",
|
||||
"views.advancedCalendar.filters.showFilters": "b1ad23eb8650c000bf826d5bfa41ddd8709e9096",
|
||||
|
|
@ -164,9 +174,12 @@
|
|||
"views.kanban.newTask": "17b2b838c5ce22c961a36736534a5029d6ba0087",
|
||||
"views.kanban.addCard": "a9621e58ec55a753b0d6bf9964ffeff4a4d8c16f",
|
||||
"views.kanban.noTasks": "e542695cd353d43e646a3d050dc59b189373613c",
|
||||
"views.kanban.uncategorized": "4ef7d73c1a83464f50c8d1b29b43e85facfdf3ee",
|
||||
"views.kanban.noProject": "644d0b87f93c6cb1645f1ff166e1aa82950191b4",
|
||||
"views.kanban.notices.loadFailed": "9d744b2d44937cda77d20fc3bf2c1fc0242cc3c4",
|
||||
"views.kanban.notices.movedTask": "5d1d44647568b19ebc6ddfd9612b4fcbcfabaff8",
|
||||
"views.kanban.errors.loadingBoard": "5df51b612bbe4d9afeb184269bb95d764fac5687",
|
||||
"views.kanban.columnTitle": "621521f9a8788695ec292cbec54d2792cfdf0a7d",
|
||||
"views.pomodoro.title": "212e4618d030e7c987ed2d64d96f3e1dcebbf414",
|
||||
"views.pomodoro.status.focus": "fe7f55b8bf68fd47d248a271d541e7e183621010",
|
||||
"views.pomodoro.status.ready": "7196e32304d5a2be420fca9a01efa5d1f866d2fa",
|
||||
|
|
@ -227,6 +240,31 @@
|
|||
"views.stats.sections.projectBreakdown": "c856b0f89a0d1f51f02f82726206cb07cd1ae95e",
|
||||
"views.stats.sections.dateRange": "6bb4b674b3232e32feb264e11f19ee1dbed354a3",
|
||||
"views.stats.filters.minTime": "77f4b7a081b20f78557dd404e14d91b89b52a27c",
|
||||
"views.stats.filters.allTasks": "7b9ff838019db5ead18883e3432af81a4ae3aa6a",
|
||||
"views.stats.filters.activeOnly": "3dc1b8123749de1b3bd96596b2ef4ccbff6c9567",
|
||||
"views.stats.filters.completedOnly": "2c9ccad5b96c9be77d8bba71ee8e3340450bbbec",
|
||||
"views.stats.refreshButton": "56e3badc4e6c5cc95e0ea5a9a878b9bd09f319d4",
|
||||
"views.stats.timeRanges.allTime": "4745c5dce5e868dc0597f7b67f2415fdc2c830c3",
|
||||
"views.stats.timeRanges.last7Days": "6522923d0c92d6924bc40253768ff19ef6f8cc3e",
|
||||
"views.stats.timeRanges.last30Days": "6118867f212578fe8acd0c3fc8af1b74b9d4bc2f",
|
||||
"views.stats.timeRanges.last90Days": "ce96395e907e95648a10d6f84f87d8384b2b0bc4",
|
||||
"views.stats.timeRanges.customRange": "f130609dfc13198c1a623733774328b5cf0af757",
|
||||
"views.stats.resetFiltersButton": "5be6985613b3e6fda208ae66882ccd1436bff418",
|
||||
"views.stats.dateRangeFrom": "3f66052a107eaf9bae7cad0f61fb462f47ec2c47",
|
||||
"views.stats.dateRangeTo": "ae79ea1e9c6391a9ed83a2e18a031b835feec0c9",
|
||||
"views.stats.noProject": "644d0b87f93c6cb1645f1ff166e1aa82950191b4",
|
||||
"views.stats.cards.timeTrackedEstimated": "c69f2a88d10893a201485b31643dbf5cedd52df1",
|
||||
"views.stats.cards.totalTasks": "e5cefb07fbc378c439e040958fadb4f78b23163e",
|
||||
"views.stats.cards.completionRate": "e9022ebdff65509393be04fb3b32c715ce8f97cf",
|
||||
"views.stats.cards.activeProjects": "8eadc26886a595ead7b65edd28ac32306ce1f5ad",
|
||||
"views.stats.cards.avgTimePerTask": "807643dc324a145924708bb6dad611f828e10be2",
|
||||
"views.stats.labels.tasks": "090ec5f560fc50377fcd95e5cda128e91b276e98",
|
||||
"views.stats.labels.completed": "1798b3ba42ee08ea09d9720b2d9c0181abbfe3e4",
|
||||
"views.stats.labels.projects": "53e890d5f0fffe09587c55dce74e9a6febf59b5c",
|
||||
"views.stats.noProjectData": "f61de1237b5bf9041f1b8e00bdd5b7bf0df0232e",
|
||||
"views.stats.notAvailable": "08d2e98e6754af941484848930ccbaddfefe13d6",
|
||||
"views.stats.noTasks": "d7c07a0905ed43a32ec58ccae1353c564433d826",
|
||||
"views.stats.loading": "b04ba49f848624bb97ab094a2631d2ad74913498",
|
||||
"views.releaseNotes.title": "5939771f391859041bc57e5e05b04235b1ef8ee7",
|
||||
"views.releaseNotes.header": "5939771f391859041bc57e5e05b04235b1ef8ee7",
|
||||
"views.releaseNotes.viewAllLink": "b37e5d2fb2faa630817557713df6363f4bd0f5cc",
|
||||
|
|
@ -939,6 +977,25 @@
|
|||
"settings.integrations.timeFormats.daysAgo": "3b2bbbb17c26d8f902aca06fa76141862a613529",
|
||||
"notices.languageChanged": "05282acf7678258da0d996e5fbee70a567b92187",
|
||||
"notices.exportTasksFailed": "91fa8ddb011b35634762b9184731cd9d6893b139",
|
||||
"notices.icsNoteCreatedSuccess": "11323db089a64255a316acf806096a5aa681984c",
|
||||
"notices.icsCreationModalOpenFailed": "8e441dcab8108add2e4eafe35c6777ee54436df0",
|
||||
"notices.icsNoteLinkSuccess": "bd13c7d5af34c3071b82a0557c8de4aa4e721a76",
|
||||
"notices.icsTaskCreatedSuccess": "399ab52e09a6ab0bb5680ad6fbd393f5fe042a33",
|
||||
"notices.icsRelatedItemsRefreshed": "5481934f9a4c5e2d504b82e04ccf5df30ec1c76d",
|
||||
"notices.icsFileNotFound": "1d497f15eb0c35127c6091ee9f70572a246a1c7c",
|
||||
"notices.icsFileOpenFailed": "bcc8d866719b4db20563417b0bc7105dee53c1f7",
|
||||
"notices.timeblockAttachmentExists": "2d22bbfaf545f4f0b5bc46def37fa637ffece048",
|
||||
"notices.timeblockAttachmentAdded": "effb439a980e77cdae3e07d7bf60efbc154860fb",
|
||||
"notices.timeblockAttachmentRemoved": "5938eb486a404f5d7e467d0eb1cfe1bbbe30a663",
|
||||
"notices.timeblockFileTypeNotSupported": "257767122e5f201a138da4c108100f8ac9f25850",
|
||||
"notices.timeblockTitleRequired": "2d0a4712090bcfe74b7615ae1b05d62e78017e08",
|
||||
"notices.timeblockUpdatedSuccess": "5d226f96855b20f225eb6941dd362e8d1dbe5883",
|
||||
"notices.timeblockUpdateFailed": "3309e2bf25566ef19423d4dae74a8a0fbbc72f8d",
|
||||
"notices.timeblockDeletedSuccess": "0a89dca7412267b95c339832a3c620b4828048e3",
|
||||
"notices.timeblockDeleteFailed": "8b767a84d7757a9cb6b23f76b81adf2aeceb5dac",
|
||||
"notices.timeblockRequiredFieldsMissing": "47aab3e139fb0cd6e5e526e600610fdc06e72957",
|
||||
"notices.agendaLoadingFailed": "9e866955c967d91bcb00b272cd9ef2f4425fc9c8",
|
||||
"notices.statsLoadingFailed": "93b6f19b5b4d3aa2bc361e005ce439c3da3d8cfc",
|
||||
"commands.openCalendarView": "d7dce352d3bf5b12479770b86495263f84275492",
|
||||
"commands.openAdvancedCalendarView": "b30e3fa144b53f11e5a0bd3d0d0c4b1532b8ce5b",
|
||||
"commands.openTasksView": "767b41fb3b53b193d0a250eed7ed025f2c7ead0a",
|
||||
|
|
@ -963,6 +1020,92 @@
|
|||
"commands.viewReleaseNotes": "04c2072af97cf70c22fbf9efa9b62eb2574d23d6",
|
||||
"commands.startTimeTrackingWithSelector": "32970116a0d7a74dadbf82a0aa2aa8117278d601",
|
||||
"commands.editTimeEntries": "b8c5b41ec8f55348f7ae4acf087d62edaf588a0c",
|
||||
"modals.deviceCode.title": "15d49719fa9a20f697d38e6af17a00b8ae4a529d",
|
||||
"modals.deviceCode.instructions.intro": "6f588f0b7cb402c539b8814f65a4798e8da218e0",
|
||||
"modals.deviceCode.steps.open": "cf9b77061f7b3126b49d50a6fa68f7ca8c26b7a3",
|
||||
"modals.deviceCode.steps.inBrowser": "79f78eb5c8b52a3626b9719515e8b9c1c03303e5",
|
||||
"modals.deviceCode.steps.enterCode": "e359133d256a3a291c64f6b573cd2c0b02e330d6",
|
||||
"modals.deviceCode.steps.signIn": "3fefa93f424be9fb1d4dafd8277b9978d619e1cb",
|
||||
"modals.deviceCode.steps.returnToObsidian": "7e13c0c3a8d9118e121f70453facfa2d0101de6d",
|
||||
"modals.deviceCode.codeLabel": "a9fe887104abcf427495c33e29a3c77c3a90bdac",
|
||||
"modals.deviceCode.copyCodeAriaLabel": "6c10692719e62d762ec4716db1a8004544682745",
|
||||
"modals.deviceCode.waitingForAuthorization": "293c2185e57c716d3aa8d9fd2b0804b5aa8afdae",
|
||||
"modals.deviceCode.openBrowserButton": "e505acd1482aefb1017b4214cf1732b70164594b",
|
||||
"modals.deviceCode.cancelButton": "77dfd2135f4db726c47299bb55be26f7f4525a46",
|
||||
"modals.deviceCode.expiresMinutesSeconds": "73e474a3e682b8715b30a1c3093da2b9feef525d",
|
||||
"modals.deviceCode.expiresSeconds": "9b16869f2468a6027b09ca754e9d28e59384b51d",
|
||||
"modals.icsEventInfo.calendarEventHeading": "4dfa3ac26d7e48ff21ffae5f3dc955b269d6e43c",
|
||||
"modals.icsEventInfo.titleLabel": "768e0c1c69573fb588f61f1308a015c11468e05f",
|
||||
"modals.icsEventInfo.calendarLabel": "adab5090ac6a1b7b5420faac7be86c41721ba27c",
|
||||
"modals.icsEventInfo.dateTimeLabel": "63ae7cafeda48b4383447db121a8ca77ac7d2dc0",
|
||||
"modals.icsEventInfo.locationLabel": "d219c68101f532de10add2cf42fb9dbeca73d3be",
|
||||
"modals.icsEventInfo.descriptionLabel": "55f8ebc805e65b5b71ddafdae390e3be2bcd69af",
|
||||
"modals.icsEventInfo.urlLabel": "0e2d9b0777a485c1276de0803c12a7d76fbc5c39",
|
||||
"modals.icsEventInfo.relatedNotesHeading": "825cf852f74e1fb10d8b078b5a2286792f974f87",
|
||||
"modals.icsEventInfo.noRelatedItems": "d2c2e903d5cd9372db38f41f4a3aa67b1c6b01d9",
|
||||
"modals.icsEventInfo.typeTask": "7bb0ddf9221c03b806b03c209e8366000124aa15",
|
||||
"modals.icsEventInfo.typeNote": "2c924e3088204ee77ba681f72be3444357932fca",
|
||||
"modals.icsEventInfo.actionsHeading": "c3cd636a585b20c40ac2df5ffb403e83cb2eef51",
|
||||
"modals.icsEventInfo.createFromEventLabel": "15f54eccbee249bfd4439a4ae8f0b33833c49ea9",
|
||||
"modals.icsEventInfo.createFromEventDesc": "4e04a4fbcae12cb0926dba09797a88d24259b76e",
|
||||
"modals.icsEventInfo.linkExistingLabel": "359e0b3ff14ed6bde5762a3bc04066cc5cc958c8",
|
||||
"modals.icsEventInfo.linkExistingDesc": "1aa8edfa252484d28cbbe5544181a273927091bb",
|
||||
"modals.timeblockInfo.editHeading": "d42d302b1bf2fca148c75efcf03389a0b1ef88b3",
|
||||
"modals.timeblockInfo.dateTimeLabel": "28948815dbd940aae135258b71870cac05cf589c",
|
||||
"modals.timeblockInfo.titleLabel": "768e0c1c69573fb588f61f1308a015c11468e05f",
|
||||
"modals.timeblockInfo.titleDesc": "b73aeab0cbd7047291ace95ec61a5a9738ddf6d7",
|
||||
"modals.timeblockInfo.titlePlaceholder": "a53b1342a44c5bcd904b448cbc399836d276f5d7",
|
||||
"modals.timeblockInfo.descriptionLabel": "55f8ebc805e65b5b71ddafdae390e3be2bcd69af",
|
||||
"modals.timeblockInfo.descriptionDesc": "993cbb9b4271e43803f891616c2d68d36893b4d4",
|
||||
"modals.timeblockInfo.descriptionPlaceholder": "b373425eef0d25730b64eb196e610724125ebbe7",
|
||||
"modals.timeblockInfo.colorLabel": "1d0c8304baedcf8e3a78982c2e7c0b04622bf2a0",
|
||||
"modals.timeblockInfo.colorDesc": "cdff26ebbc3565d04efd839876c97f07e21406ff",
|
||||
"modals.timeblockInfo.colorPlaceholder": "3e9b5e6a253b87945c1ae3793c1ad680b34e85b2",
|
||||
"modals.timeblockInfo.attachmentsLabel": "6771ade6e8965a499bc298107ffb52e9a18dd7e3",
|
||||
"modals.timeblockInfo.attachmentsDesc": "7678a59aa98024fb9b82ac20244cfe5d0f97e9f9",
|
||||
"modals.timeblockInfo.addAttachmentButton": "f3aaf19dab47f2aa461d2713ffc1188c3f4b2cab",
|
||||
"modals.timeblockInfo.addAttachmentTooltip": "39289e99c6326eb60ff29dad376a120671c3a2f1",
|
||||
"modals.timeblockInfo.deleteButton": "ba32111a1af977be873d0389063862832583dbd6",
|
||||
"modals.timeblockInfo.saveButton": "fa2984b367b8f2fc5cd521936dda7b44598778a4",
|
||||
"modals.timeblockInfo.deleteConfirmationTitle": "ba32111a1af977be873d0389063862832583dbd6",
|
||||
"modals.timeblockCreation.heading": "6ba03dee8a531db91b38fb09715e0c40304804d2",
|
||||
"modals.timeblockCreation.dateLabel": "f2110a630c6c6f7249d0a946ded3468ecbe2b948",
|
||||
"modals.timeblockCreation.titleLabel": "768e0c1c69573fb588f61f1308a015c11468e05f",
|
||||
"modals.timeblockCreation.titleDesc": "b73aeab0cbd7047291ace95ec61a5a9738ddf6d7",
|
||||
"modals.timeblockCreation.titlePlaceholder": "a53b1342a44c5bcd904b448cbc399836d276f5d7",
|
||||
"modals.timeblockCreation.startTimeLabel": "88d8206d586abe4c8e35c8e9adcc649d07c99a1e",
|
||||
"modals.timeblockCreation.startTimeDesc": "468423b2b77ef3d98c67206464beac360226adcb",
|
||||
"modals.timeblockCreation.startTimePlaceholder": "62646b00e3d5abef4cb8139c5f21bf0907f360d1",
|
||||
"modals.timeblockCreation.endTimeLabel": "cd7800da7f4ff94a0e14445d7f94b6345d1b7b8a",
|
||||
"modals.timeblockCreation.endTimeDesc": "a739e69aa3bf9fbefc75ec0ceb30989dc19dd05d",
|
||||
"modals.timeblockCreation.endTimePlaceholder": "3fd66d5f10a47efe7550c85fc4fc696a08265128",
|
||||
"modals.timeblockCreation.descriptionLabel": "55f8ebc805e65b5b71ddafdae390e3be2bcd69af",
|
||||
"modals.timeblockCreation.descriptionDesc": "993cbb9b4271e43803f891616c2d68d36893b4d4",
|
||||
"modals.timeblockCreation.descriptionPlaceholder": "b373425eef0d25730b64eb196e610724125ebbe7",
|
||||
"modals.timeblockCreation.colorLabel": "1d0c8304baedcf8e3a78982c2e7c0b04622bf2a0",
|
||||
"modals.timeblockCreation.colorDesc": "cdff26ebbc3565d04efd839876c97f07e21406ff",
|
||||
"modals.timeblockCreation.colorPlaceholder": "3e9b5e6a253b87945c1ae3793c1ad680b34e85b2",
|
||||
"modals.timeblockCreation.attachmentsLabel": "6771ade6e8965a499bc298107ffb52e9a18dd7e3",
|
||||
"modals.timeblockCreation.attachmentsDesc": "dc43799ad507158bf2d451de9429e5953a14f38c",
|
||||
"modals.timeblockCreation.addAttachmentButton": "f3aaf19dab47f2aa461d2713ffc1188c3f4b2cab",
|
||||
"modals.timeblockCreation.addAttachmentTooltip": "39289e99c6326eb60ff29dad376a120671c3a2f1",
|
||||
"modals.timeblockCreation.createButton": "6ba03dee8a531db91b38fb09715e0c40304804d2",
|
||||
"modals.icsNoteCreation.heading": "f75a2f58d0530c7a70c2df4d96166a16f0c47d31",
|
||||
"modals.icsNoteCreation.titleLabel": "768e0c1c69573fb588f61f1308a015c11468e05f",
|
||||
"modals.icsNoteCreation.titleDesc": "e5928c1bd84bd2735415d45d5f7e03f677ff5f52",
|
||||
"modals.icsNoteCreation.folderLabel": "30baa24967e08965d1594408031f0324ae11ccac",
|
||||
"modals.icsNoteCreation.folderDesc": "105291a610d29a8ea50e76ceb65257c5236019ac",
|
||||
"modals.icsNoteCreation.folderPlaceholder": "c7cbb4b45068905aef0f0961bdfb1c7fe9988b52",
|
||||
"modals.icsNoteCreation.createButton": "6e157c5da4410b7e9de85f5c93026b9176e69064",
|
||||
"modals.icsNoteCreation.startLabel": "538f6db0c212f09a0e37ee10239013c589daeaf6",
|
||||
"modals.icsNoteCreation.endLabel": "861d25a92b9492d558445d04ed6357516e1b3a5f",
|
||||
"modals.icsNoteCreation.locationLabel": "c47d59ef9cb983fd5a9c42a64aad33ba7b158fd1",
|
||||
"modals.icsNoteCreation.calendarLabel": "d56f81fde03931ab0ff6785fc9cb62187815a346",
|
||||
"modals.icsNoteCreation.useTemplateLabel": "23797614964d98782ffa29622f7959d4ed36bad0",
|
||||
"modals.icsNoteCreation.useTemplateDesc": "6b9c073718f9ecb707cc80778c42c34c92d10790",
|
||||
"modals.icsNoteCreation.templatePathLabel": "198d2f2743fb74abb06b942a47c37d9128c6aeed",
|
||||
"modals.icsNoteCreation.templatePathDesc": "b140758b9ac592cc627e4a41db98770149bf0d44",
|
||||
"modals.icsNoteCreation.templatePathPlaceholder": "26f6cf53c168c01cf655bf6f3010f6bc772af4e0",
|
||||
"modals.task.titlePlaceholder": "c8196f1d1039c2fb290add52ee990c571173d6f1",
|
||||
"modals.task.titleLabel": "768e0c1c69573fb588f61f1308a015c11468e05f",
|
||||
"modals.task.titleDetailedPlaceholder": "da3700738242c039de32d3f5e3a0ba10bc28ba0b",
|
||||
|
|
@ -1453,7 +1596,28 @@
|
|||
"ui.filterBar.group.scheduledDate": "19ad699baa333ebafbaee750f50ce2b8c2a069e4",
|
||||
"ui.filterBar.group.tags": "848eed0fbd5429f556b2982dec3ea87136e33e44",
|
||||
"ui.filterBar.group.completedDate": "0089d3b136526c1dfbe0487bc7c3c8ef99812909",
|
||||
"ui.filterBar.subgroupLabel": "4d089fb595e28cf36d5ac24a58012732faf4f843",
|
||||
"ui.filterBar.notices.propertiesMenuFailed": "e9df8763e0af720e4edcfd8f3bd87af75a69f7a1",
|
||||
"components.dateContextMenu.weekdays": "4ffc67b62aae6c9adee9360316760ba55c1f53ed",
|
||||
"components.dateContextMenu.clearDate": "a0aea5917b8778dd5eeeb962c3a4fda6ad519814",
|
||||
"components.dateContextMenu.today": "24345a14377fd821d3932f4e82f6431640955b0b",
|
||||
"components.dateContextMenu.tomorrow": "1948bf2dfa8fbc1f07ad3b6f0e2b3ee39f87e495",
|
||||
"components.dateContextMenu.thisWeekend": "1921aa118ad7a4dca5f679eaefc3e1777854c777",
|
||||
"components.dateContextMenu.nextWeek": "5a20763adfb0adcac05270a340009a8526652248",
|
||||
"components.dateContextMenu.nextMonth": "8abf7cf1d0b36ff16ebbe26b8285a65d9d1582f6",
|
||||
"components.dateContextMenu.setDateTime": "5e2928ff54a45201c4e6921fe419723cb08c9af6",
|
||||
"components.dateContextMenu.dateLabel": "eb9a4bc1c0c153e4e4b042a79113b815b7e3021d",
|
||||
"components.dateContextMenu.timeLabel": "5b945a9a6ce9ef6431e71d5ea4834db6b50c08c5",
|
||||
"components.subgroupMenuBuilder.none": "6eef6648406c333a4035cd5e60d0bf2ecf2606d7",
|
||||
"components.subgroupMenuBuilder.status": "bae7d5be70820ed56467bd9a63744e23b47bd711",
|
||||
"components.subgroupMenuBuilder.priority": "886cbff9d9df761ec642945e519631a23ed173a2",
|
||||
"components.subgroupMenuBuilder.context": "cc11b3a28fa30ae6d3d3ad1438824cbd5224ba5c",
|
||||
"components.subgroupMenuBuilder.project": "f6f4da8d93e88a08220e03b7810451d3ba540a34",
|
||||
"components.subgroupMenuBuilder.dueDate": "a1b308ec704aed240db754a1862adcf67e19f001",
|
||||
"components.subgroupMenuBuilder.scheduledDate": "19ad699baa333ebafbaee750f50ce2b8c2a069e4",
|
||||
"components.subgroupMenuBuilder.tags": "848eed0fbd5429f556b2982dec3ea87136e33e44",
|
||||
"components.subgroupMenuBuilder.completedDate": "0089d3b136526c1dfbe0487bc7c3c8ef99812909",
|
||||
"components.subgroupMenuBuilder.subgroup": "4d089fb595e28cf36d5ac24a58012732faf4f843",
|
||||
"components.propertyVisibilityDropdown.coreProperties": "b3cfb1af6a8f2011725da9badb151b1c72b0e6ec",
|
||||
"components.propertyVisibilityDropdown.organization": "9da72239ddeee345a6b025c468d9817c49cae014",
|
||||
"components.propertyVisibilityDropdown.customProperties": "ac0f02bfadfd325f29ae589a256f3417c45faceb",
|
||||
|
|
|
|||
5226
i18n.state.json
5226
i18n.state.json
File diff suppressed because it is too large
Load diff
32
package-lock.json
generated
32
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "tasknotes",
|
||||
"version": "3.25.4",
|
||||
"version": "3.25.6",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "tasknotes",
|
||||
"version": "3.25.4",
|
||||
"version": "3.25.6",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@codemirror/view": "^6.37.2",
|
||||
|
|
@ -136,6 +136,7 @@
|
|||
"integrity": "sha512-bXYxrXFubeYdvB0NhD/NBB3Qi6aZeV20GOWVI47t2dkecCEoneR4NPVcb7abpXDEvejgrUfFtG6vG/zxAKmg+g==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@ampproject/remapping": "^2.2.0",
|
||||
"@babel/code-frame": "^7.27.1",
|
||||
|
|
@ -724,6 +725,7 @@
|
|||
"resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.5.2.tgz",
|
||||
"integrity": "sha512-FVqsPqtPWKVVL3dPSxy8wEF/ymIEuVzF1PK3VbUgrxXpJUSHQWWZz4JMToquRxnkw+36LTamCZG2iua2Ptq0fA==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@marijn/find-cluster-break": "^1.0.0"
|
||||
}
|
||||
|
|
@ -733,6 +735,7 @@
|
|||
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.38.1.tgz",
|
||||
"integrity": "sha512-RmTOkE7hRU3OVREqFVITWHz6ocgBjv08GoePscAakgVQfciA3SGCEk7mb9IzwW61cKKmlTpHXG6DUE5Ubx+MGQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@codemirror/state": "^6.5.0",
|
||||
"crelt": "^1.0.6",
|
||||
|
|
@ -828,6 +831,7 @@
|
|||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
|
|
@ -851,6 +855,7 @@
|
|||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
|
|
@ -1447,6 +1452,7 @@
|
|||
"resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-6.1.19.tgz",
|
||||
"integrity": "sha512-z0aVlO5e4Wah6p6mouM0UEqtRf1MZZPt4mwzEyU6kusaNL+dlWQgAasF2cK23hwT4cmxkEmr4inULXgpyeExdQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"preact": "~10.12.1"
|
||||
}
|
||||
|
|
@ -2634,6 +2640,7 @@
|
|||
"integrity": "sha512-7199re3wvMAlVqXLaCyAr8IkJSXqkeVAxcYyB2rBu4Id5m2hhlGX1dQsdMBiCXLwu6/LLVqDvJggSNVQBzL6ZQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@types/css-font-loading-module": "^0.0.7"
|
||||
},
|
||||
|
|
@ -2683,6 +2690,7 @@
|
|||
"integrity": "sha512-0XtvrfxHlS2T+beBBSpo7GI8+QLyyTqMVQpNmPqB4woYxzrOEJ9JaUFBaBfCvycLeUkfVih1u6HAbtF+2d1EjQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@pixi/color": "7.2.4",
|
||||
"@pixi/constants": "7.2.4",
|
||||
|
|
@ -2705,6 +2713,7 @@
|
|||
"integrity": "sha512-w5tqb8cWEO5qIDaO9GEqRvxYhL0iMk0Wsngw23bbLm1gLEQmrFkB2tpJlRAqd7H82C3DrDDeWvkrrxW6+m4apg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@pixi/core": "7.2.4"
|
||||
}
|
||||
|
|
@ -2715,6 +2724,7 @@
|
|||
"integrity": "sha512-/JtmoB98fzIU8giN9xvlRvmvOi6u4MaD2DnKNOMHkQ1MBraj3pmrXM9fZ0JbNzi+324GraAAY76QidgHjIYoYQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@pixi/core": "7.2.4",
|
||||
"@pixi/display": "7.2.4"
|
||||
|
|
@ -2803,6 +2813,7 @@
|
|||
"integrity": "sha512-3A2EumTjWJgXlDLOyuBrl9b6v1Za/E+/IjOGUIX843HH4NYaf1a2sfDfljx6r3oiDvy+VhuBFmgynRcV5IyA0Q==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@pixi/core": "7.2.4",
|
||||
"@pixi/display": "7.2.4",
|
||||
|
|
@ -2822,6 +2833,7 @@
|
|||
"integrity": "sha512-wiALIqcRKib2BqeH9kOA5fOKWN352nqAspgbDa8gA7OyWzmNwqIedIlElixd0oLFOrIN5jOZAdzeKnoYQlt9Aw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@pixi/core": "7.2.4",
|
||||
"@pixi/display": "7.2.4"
|
||||
|
|
@ -2928,6 +2940,7 @@
|
|||
"integrity": "sha512-DhR1B+/d0eXpxHIesJMXcVPrKFwQ+zRA1LvEIFfzewqfaRN3X6PMIuoKX8SIb6tl+Hq8Ba9Pe28zI7d2rmRzrA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@pixi/core": "7.2.4",
|
||||
"@pixi/display": "7.2.4"
|
||||
|
|
@ -2973,6 +2986,7 @@
|
|||
"integrity": "sha512-DGu7ktpe+zHhqR2sG9NsJt4mgvSObv5EqXTtUxD4Z0li1gmqF7uktpLyn5I6vSg1TTEL4TECClRDClVDGiykWw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@pixi/core": "7.2.4",
|
||||
"@pixi/sprite": "7.2.4"
|
||||
|
|
@ -3023,6 +3037,7 @@
|
|||
"integrity": "sha512-VUGQHBOINIS4ePzoqafwxaGPVRTa3oM/mEutIIHbNGI3b+QvSO+1Dnk40M0zcH6Bo+MxQZbOZK5X/wO9oU5+LQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@pixi/color": "7.2.4",
|
||||
"@pixi/constants": "7.2.4",
|
||||
|
|
@ -3843,6 +3858,7 @@
|
|||
"integrity": "sha512-ruKWTv+x0OOxbzIw9nW5oWlUopvP/IQDjB5ZqmTglLIoDTctLlAJpAQFpNPJP/ZI7hTT9sARBosEfaKbcFuECw==",
|
||||
"dev": true,
|
||||
"license": "BSD-2-Clause",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "5.29.0",
|
||||
"@typescript-eslint/types": "5.29.0",
|
||||
|
|
@ -4461,6 +4477,7 @@
|
|||
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"acorn": "bin/acorn"
|
||||
},
|
||||
|
|
@ -4914,6 +4931,7 @@
|
|||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"caniuse-lite": "^1.0.30001718",
|
||||
"electron-to-chromium": "^1.5.160",
|
||||
|
|
@ -5149,6 +5167,7 @@
|
|||
"integrity": "sha512-ci2iJH6LeIkvP9eJW6gpueU8cnZhv85ELY8w8WiFtNjMHA5ad6pQLaJo9mEly/9qUyCpvqX8/POVUTf18/HFdw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@chevrotain/cst-dts-gen": "11.0.3",
|
||||
"@chevrotain/gast": "11.0.3",
|
||||
|
|
@ -5361,6 +5380,7 @@
|
|||
"integrity": "sha512-iJc4TwyANnOGR1OmWhsS9ayRS3s+XQ185FmuHObThD+5AeJCakAAbWv8KimMTt08xCCLNgneQwFp+JRJOr9qGQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=0.10"
|
||||
}
|
||||
|
|
@ -5795,6 +5815,7 @@
|
|||
"integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
|
|
@ -6540,6 +6561,7 @@
|
|||
"deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.2.0",
|
||||
"@eslint-community/regexpp": "^4.6.1",
|
||||
|
|
@ -6612,6 +6634,7 @@
|
|||
"integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"eslint-config-prettier": "bin/cli.js"
|
||||
},
|
||||
|
|
@ -8954,6 +8977,7 @@
|
|||
"integrity": "sha512-yC3JvpP/ZcAZX5rYCtXO/g9k6VTCQz0VFE2v1FpxytWzUqfDtu0XL/pwnNvptzYItvGwomh1ehomRNMOyhCJKw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@jest/core": "30.1.1",
|
||||
"@jest/types": "30.0.5",
|
||||
|
|
@ -9715,6 +9739,7 @@
|
|||
"integrity": "sha512-Cvc9WUhxSMEo4McES3P7oK3QaXldCfNWp7pl2NNeiIFlCoLr3kfq9kb1fxftiwk1FLV7CvpvDfonxtzUDeSOPg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"cssstyle": "^4.2.1",
|
||||
"data-urls": "^5.0.0",
|
||||
|
|
@ -11123,6 +11148,7 @@
|
|||
"integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"prettier": "bin/prettier.cjs"
|
||||
},
|
||||
|
|
@ -12675,6 +12701,7 @@
|
|||
"integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
|
|
@ -12751,6 +12778,7 @@
|
|||
"integrity": "sha512-V1EknKUubZ1gWFjiOZhDSNToOjs63/9O0puCgGS8aDOgpZY326fzFu15QAUjwaXzRZjf/qdsdBrckYdv9YxB8w==",
|
||||
"dev": true,
|
||||
"license": "BSD-2-Clause",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "7.1.0",
|
||||
"@typescript-eslint/types": "7.1.0",
|
||||
|
|
|
|||
268
scripts/add-missing-translations.mjs
Normal file
268
scripts/add-missing-translations.mjs
Normal file
|
|
@ -0,0 +1,268 @@
|
|||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const RESOURCES_DIR = path.resolve(__dirname, '../src/i18n/resources');
|
||||
|
||||
// Helper to build nested object from dot notation
|
||||
function setNestedValue(obj, pathStr, value) {
|
||||
const parts = pathStr.split('.');
|
||||
const last = parts.pop();
|
||||
let current = obj;
|
||||
for (const part of parts) {
|
||||
if (!current[part]) {
|
||||
current[part] = {};
|
||||
}
|
||||
current = current[part];
|
||||
}
|
||||
current[last] = value;
|
||||
}
|
||||
|
||||
// Helper to get nested value
|
||||
function getNestedValue(obj, pathStr) {
|
||||
const parts = pathStr.split('.');
|
||||
let current = obj;
|
||||
for (const part of parts) {
|
||||
if (!current || typeof current !== 'object') return undefined;
|
||||
current = current[part];
|
||||
}
|
||||
return current;
|
||||
}
|
||||
|
||||
// Parse TypeScript object to JavaScript object (simple version)
|
||||
function parseTS File(content, locale) {
|
||||
// Remove imports and type exports
|
||||
content = content.replace(/^import\s+.*?;$/gm, '');
|
||||
content = content.replace(/export\s+type\s+.*?;$/gm, '');
|
||||
|
||||
// Convert to module export
|
||||
content = content.replace(
|
||||
new RegExp(`export\\s+const\\s+${locale}\\s*:\\s*\\w+\\s*=\\s*`, 'g'),
|
||||
'export default '
|
||||
);
|
||||
content = content.replace(
|
||||
new RegExp(`export\\s+const\\s+${locale}\\s*=\\s*`, 'g'),
|
||||
'export default '
|
||||
);
|
||||
|
||||
const tempPath = path.join(RESOURCES_DIR, `.${locale}.temp.mjs`);
|
||||
fs.writeFileSync(tempPath, content);
|
||||
|
||||
try {
|
||||
const absolutePath = path.resolve(tempPath);
|
||||
const module = await import(`file://${absolutePath}?v=${Date.now()}`);
|
||||
return module.default;
|
||||
} finally {
|
||||
if (fs.existsSync(tempPath)) {
|
||||
fs.unlinkSync(tempPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Convert object back to TypeScript string
|
||||
function objectToTS(obj, indent = '\t', level = 1) {
|
||||
const entries = [];
|
||||
const currentIndent = indent.repeat(level);
|
||||
const nextIndent = indent.repeat(level + 1);
|
||||
|
||||
for (const [key, value] of Object.entries(obj)) {
|
||||
if (typeof value === 'string') {
|
||||
// Escape special characters
|
||||
const escaped = value
|
||||
.replace(/\\/g, '\\\\')
|
||||
.replace(/"/g, '\\"')
|
||||
.replace(/\n/g, '\\n')
|
||||
.replace(/\t/g, '\\t');
|
||||
entries.push(`${currentIndent}${key}: "${escaped}",`);
|
||||
} else if (typeof value === 'object' && value !== null) {
|
||||
entries.push(`${currentIndent}${key}: {`);
|
||||
entries.push(objectToTS(value, indent, level + 1));
|
||||
entries.push(`${currentIndent}},`);
|
||||
}
|
||||
}
|
||||
|
||||
return entries.join('\n');
|
||||
}
|
||||
|
||||
// Translation mappings
|
||||
const translations = {
|
||||
fr: {
|
||||
"views.notes.refreshingButton": "Actualisation...",
|
||||
"views.notes.empty.helpText": "Aucune note trouvée pour la date sélectionnée. Essayez de sélectionner une date différente dans la vue Mini Calendrier ou créez quelques notes.",
|
||||
"views.notes.loading": "Chargement des notes...",
|
||||
"views.notes.refreshButtonAriaLabel": "Actualiser la liste des notes",
|
||||
"notices.icsNoteCreatedSuccess": "Note créée avec succès",
|
||||
"notices.icsCreationModalOpenFailed": "Échec de l'ouverture de la modale de création",
|
||||
"notices.icsNoteLinkSuccess": "Note \"{fileName}\" liée à l'événement ICS",
|
||||
"notices.icsTaskCreatedSuccess": "Tâche créée : {title}",
|
||||
"notices.icsRelatedItemsRefreshed": "Notes associées actualisées",
|
||||
"notices.icsFileNotFound": "Fichier introuvable ou invalide",
|
||||
"notices.icsFileOpenFailed": "Échec de l'ouverture du fichier",
|
||||
"notices.timeblockAttachmentExists": "\"{fileName}\" est déjà attaché",
|
||||
"notices.timeblockAttachmentAdded": "\"{fileName}\" ajouté comme pièce jointe",
|
||||
"notices.timeblockAttachmentRemoved": "\"{fileName}\" retiré des pièces jointes",
|
||||
"notices.timeblockFileTypeNotSupported": "Impossible d'ouvrir \"{fileName}\" - type de fichier non pris en charge",
|
||||
"notices.timeblockTitleRequired": "Veuillez saisir un titre pour le bloc de temps",
|
||||
"notices.timeblockUpdatedSuccess": "Bloc de temps \"{title}\" mis à jour avec succès",
|
||||
"notices.timeblockUpdateFailed": "Échec de la mise à jour du bloc de temps. Consultez la console pour plus de détails.",
|
||||
"notices.timeblockDeletedSuccess": "Bloc de temps \"{title}\" supprimé avec succès",
|
||||
"notices.timeblockDeleteFailed": "Échec de la suppression du bloc de temps. Consultez la console pour plus de détails.",
|
||||
"notices.timeblockRequiredFieldsMissing": "Veuillez remplir tous les champs requis",
|
||||
"notices.agendaLoadingFailed": "Erreur lors du chargement de l'agenda. Veuillez essayer d'actualiser.",
|
||||
"notices.statsLoadingFailed": "Erreur lors du chargement des détails du projet.",
|
||||
"modals.deviceCode.title": "Autorisation Google Calendar",
|
||||
"modals.deviceCode.instructions.intro": "Pour connecter votre Google Calendar, veuillez suivre ces étapes :",
|
||||
"modals.deviceCode.steps.open": "Ouvrir",
|
||||
"modals.deviceCode.steps.inBrowser": "dans votre navigateur",
|
||||
"modals.deviceCode.steps.enterCode": "Entrez ce code lorsque demandé :",
|
||||
"modals.deviceCode.steps.signIn": "Connectez-vous avec votre compte Google et accordez l'accès",
|
||||
"modals.deviceCode.steps.returnToObsidian": "Retournez à Obsidian (cette fenêtre se fermera automatiquement)",
|
||||
"modals.deviceCode.codeLabel": "Votre code :",
|
||||
"modals.deviceCode.copyCodeAriaLabel": "Copier le code",
|
||||
"modals.deviceCode.waitingForAuthorization": "En attente d'autorisation...",
|
||||
"modals.deviceCode.openBrowserButton": "Ouvrir le navigateur",
|
||||
"modals.deviceCode.cancelButton": "Annuler",
|
||||
"modals.deviceCode.expiresMinutesSeconds": "Le code expire dans {minutes}m {seconds}s",
|
||||
"modals.deviceCode.expiresSeconds": "Le code expire dans {seconds}s",
|
||||
"modals.icsEventInfo.calendarEventHeading": "Événement de calendrier",
|
||||
"modals.icsEventInfo.titleLabel": "Titre",
|
||||
"modals.icsEventInfo.calendarLabel": "Calendrier",
|
||||
"modals.icsEventInfo.dateTimeLabel": "Date et heure",
|
||||
"modals.icsEventInfo.locationLabel": "Lieu",
|
||||
"modals.icsEventInfo.descriptionLabel": "Description",
|
||||
"modals.icsEventInfo.urlLabel": "URL",
|
||||
"modals.icsEventInfo.relatedNotesHeading": "Notes et tâches associées",
|
||||
"modals.icsEventInfo.noRelatedItems": "Aucune note ou tâche associée trouvée pour cet événement.",
|
||||
"modals.icsEventInfo.typeTask": "Tâche",
|
||||
"modals.icsEventInfo.typeNote": "Note",
|
||||
"modals.icsEventInfo.actionsHeading": "Actions",
|
||||
"modals.icsEventInfo.createFromEventLabel": "Créer à partir de l'événement",
|
||||
"modals.icsEventInfo.createFromEventDesc": "Créer une nouvelle note ou tâche à partir de cet événement de calendrier",
|
||||
"modals.icsEventInfo.linkExistingLabel": "Lier existant",
|
||||
"modals.icsEventInfo.linkExistingDesc": "Lier une note existante à cet événement de calendrier",
|
||||
"modals.timeblockInfo.editHeading": "Modifier le bloc de temps",
|
||||
"modals.timeblockInfo.dateTimeLabel": "Date et heure : ",
|
||||
"modals.timeblockInfo.titleLabel": "Titre",
|
||||
"modals.timeblockInfo.titleDesc": "Titre de votre bloc de temps",
|
||||
"modals.timeblockInfo.titlePlaceholder": "ex., Session de travail approfondi",
|
||||
"modals.timeblockInfo.descriptionLabel": "Description",
|
||||
"modals.timeblockInfo.descriptionDesc": "Description optionnelle du bloc de temps",
|
||||
"modals.timeblockInfo.descriptionPlaceholder": "Concentrez-vous sur les nouvelles fonctionnalités, sans interruptions",
|
||||
"modals.timeblockInfo.colorLabel": "Couleur",
|
||||
"modals.timeblockInfo.colorDesc": "Couleur optionnelle pour le bloc de temps",
|
||||
"modals.timeblockInfo.colorPlaceholder": "#3b82f6",
|
||||
"modals.timeblockInfo.attachmentsLabel": "Pièces jointes",
|
||||
"modals.timeblockInfo.attachmentsDesc": "Fichiers ou notes liés à ce bloc de temps",
|
||||
"modals.timeblockInfo.addAttachmentButton": "Ajouter une pièce jointe",
|
||||
"modals.timeblockInfo.addAttachmentTooltip": "Sélectionnez un fichier ou une note en utilisant la recherche floue",
|
||||
"modals.timeblockInfo.deleteButton": "Supprimer le bloc de temps",
|
||||
"modals.timeblockInfo.saveButton": "Enregistrer les modifications",
|
||||
"modals.timeblockInfo.deleteConfirmationTitle": "Supprimer le bloc de temps",
|
||||
"modals.timeblockCreation.heading": "Créer un bloc de temps",
|
||||
"modals.timeblockCreation.dateLabel": "Date : ",
|
||||
"modals.timeblockCreation.titleLabel": "Titre",
|
||||
"modals.timeblockCreation.titleDesc": "Titre de votre bloc de temps",
|
||||
"modals.timeblockCreation.titlePlaceholder": "ex., Session de travail approfondi",
|
||||
"modals.timeblockCreation.startTimeLabel": "Heure de début",
|
||||
"modals.timeblockCreation.startTimeDesc": "Quand le bloc de temps commence",
|
||||
"modals.timeblockCreation.startTimePlaceholder": "09:00",
|
||||
"modals.timeblockCreation.endTimeLabel": "Heure de fin",
|
||||
"modals.timeblockCreation.endTimeDesc": "Quand le bloc de temps se termine",
|
||||
"modals.timeblockCreation.endTimePlaceholder": "11:00",
|
||||
"modals.timeblockCreation.descriptionLabel": "Description",
|
||||
"modals.timeblockCreation.descriptionDesc": "Description optionnelle du bloc de temps",
|
||||
"modals.timeblockCreation.descriptionPlaceholder": "Concentrez-vous sur les nouvelles fonctionnalités, sans interruptions",
|
||||
"modals.timeblockCreation.colorLabel": "Couleur",
|
||||
"modals.timeblockCreation.colorDesc": "Couleur optionnelle pour le bloc de temps",
|
||||
"modals.timeblockCreation.colorPlaceholder": "#3b82f6",
|
||||
"modals.timeblockCreation.attachmentsLabel": "Pièces jointes",
|
||||
"modals.timeblockCreation.attachmentsDesc": "Fichiers ou notes à lier à ce bloc de temps",
|
||||
"modals.timeblockCreation.addAttachmentButton": "Ajouter une pièce jointe",
|
||||
"modals.timeblockCreation.addAttachmentTooltip": "Sélectionnez un fichier ou une note en utilisant la recherche floue",
|
||||
"modals.timeblockCreation.createButton": "Créer un bloc de temps",
|
||||
"modals.icsNoteCreation.heading": "Créer à partir d'un événement ICS",
|
||||
"modals.icsNoteCreation.titleLabel": "Titre",
|
||||
"modals.icsNoteCreation.titleDesc": "Titre du nouveau contenu",
|
||||
"modals.icsNoteCreation.folderLabel": "Dossier",
|
||||
"modals.icsNoteCreation.folderDesc": "Dossier de destination (laisser vide pour la racine du coffre)",
|
||||
"modals.icsNoteCreation.folderPlaceholder": "dossier/sous-dossier",
|
||||
"modals.icsNoteCreation.createButton": "Créer",
|
||||
"modals.icsNoteCreation.startLabel": "Début : ",
|
||||
"modals.icsNoteCreation.endLabel": "Fin : ",
|
||||
"modals.icsNoteCreation.locationLabel": "Lieu : ",
|
||||
"modals.icsNoteCreation.calendarLabel": "Calendrier : ",
|
||||
"modals.icsNoteCreation.useTemplateLabel": "Utiliser un modèle",
|
||||
"modals.icsNoteCreation.useTemplateDesc": "Appliquer un modèle lors de la création du contenu",
|
||||
"modals.icsNoteCreation.templatePathLabel": "Chemin du modèle",
|
||||
"modals.icsNoteCreation.templatePathDesc": "Chemin vers le fichier de modèle",
|
||||
"modals.icsNoteCreation.templatePathPlaceholder": "templates/ics-note-template.md",
|
||||
"ui.filterBar.subgroupLabel": "SOUS-GROUPE",
|
||||
"components.dateContextMenu.weekdays": "Jours de semaine",
|
||||
"components.dateContextMenu.clearDate": "Effacer la date",
|
||||
"components.dateContextMenu.today": "Aujourd'hui",
|
||||
"components.dateContextMenu.tomorrow": "Demain",
|
||||
"components.dateContextMenu.thisWeekend": "Ce week-end",
|
||||
"components.dateContextMenu.nextWeek": "La semaine prochaine",
|
||||
"components.dateContextMenu.nextMonth": "Le mois prochain",
|
||||
"components.dateContextMenu.setDateTime": "Définir la date et l'heure",
|
||||
"components.dateContextMenu.dateLabel": "Date",
|
||||
"components.dateContextMenu.timeLabel": "Heure (optionnelle)",
|
||||
"components.subgroupMenuBuilder.none": "Aucun",
|
||||
"components.subgroupMenuBuilder.status": "Statut",
|
||||
"components.subgroupMenuBuilder.priority": "Priorité",
|
||||
"components.subgroupMenuBuilder.context": "Contexte",
|
||||
"components.subgroupMenuBuilder.project": "Projet",
|
||||
"components.subgroupMenuBuilder.dueDate": "Date d'échéance",
|
||||
"components.subgroupMenuBuilder.scheduledDate": "Date programmée",
|
||||
"components.subgroupMenuBuilder.tags": "Étiquettes",
|
||||
"components.subgroupMenuBuilder.completedDate": "Date de finalisation",
|
||||
"components.subgroupMenuBuilder.subgroup": "SOUS-GROUPE",
|
||||
},
|
||||
};
|
||||
|
||||
// Main execution
|
||||
const locale = process.argv[2];
|
||||
if (!locale || !translations[locale]) {
|
||||
console.error(`Usage: node add-missing-translations.mjs <locale>`);
|
||||
console.error(`Available locales: ${Object.keys(translations).join(', ')}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log(`\nAdding missing translations for ${locale}...`);
|
||||
|
||||
const filePath = path.join(RESOURCES_DIR, `${locale}.ts`);
|
||||
const content = fs.readFileSync(filePath, 'utf8');
|
||||
|
||||
// Load and parse current translations
|
||||
const currentObj = await parseTS File(content, locale);
|
||||
|
||||
// Add missing translations
|
||||
let addedCount = 0;
|
||||
const translationMap = translations[locale];
|
||||
|
||||
for (const [key, value] of Object.entries(translationMap)) {
|
||||
const existing = getNestedValue(currentObj, key);
|
||||
if (existing === undefined) {
|
||||
setNestedValue(currentObj, key, value);
|
||||
addedCount++;
|
||||
console.log(` ✓ Added: ${key}`);
|
||||
} else {
|
||||
console.log(` - Skipped (exists): ${key}`);
|
||||
}
|
||||
}
|
||||
|
||||
// Generate new TypeScript content
|
||||
const newContent = `import type { Translation } from "./en";
|
||||
|
||||
export const ${locale}: Translation = {
|
||||
${objectToTS(currentObj, '\t', 1)}
|
||||
};
|
||||
|
||||
export type ${locale.charAt(0).toUpperCase() + locale.slice(1)}Translation = typeof ${locale};
|
||||
`;
|
||||
|
||||
// Write back
|
||||
fs.writeFileSync(filePath, newContent);
|
||||
|
||||
console.log(`\n✓ Completed ${locale}: Added ${addedCount} translations`);
|
||||
662
scripts/add-translations.mjs
Normal file
662
scripts/add-translations.mjs
Normal file
|
|
@ -0,0 +1,662 @@
|
|||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
const RESOURCES_DIR = path.resolve('src/i18n/resources');
|
||||
|
||||
// Translation mappings
|
||||
const translations = {
|
||||
fr: {
|
||||
"views.agenda.empty.helpText": "Créez des tâches avec des dates d'échéance ou programmées, ou ajoutez des notes pour les voir ici.",
|
||||
"views.agenda.contextMenu.showOverdueSection": "Afficher la section en retard",
|
||||
"views.agenda.contextMenu.showNotes": "Afficher les notes",
|
||||
"views.agenda.contextMenu.calendarSubscriptions": "Abonnements au calendrier",
|
||||
"views.agenda.periods.thisWeek": "Cette semaine",
|
||||
"views.agenda.tipPrefix": "Astuce : ",
|
||||
"views.notes.refreshingButton": "Actualisation...",
|
||||
"views.notes.empty.helpText": "Aucune note trouvée pour la date sélectionnée. Essayez de sélectionner une date différente dans la vue Mini Calendrier ou créez quelques notes.",
|
||||
"views.notes.loading": "Chargement des notes...",
|
||||
"views.notes.refreshButtonAriaLabel": "Actualiser la liste des notes",
|
||||
"views.kanban.uncategorized": "Non catégorisé",
|
||||
"views.kanban.noProject": "Aucun projet",
|
||||
"views.kanban.columnTitle": "Sans titre",
|
||||
"notices.icsNoteCreatedSuccess": "Note créée avec succès",
|
||||
"notices.icsCreationModalOpenFailed": "Échec de l'ouverture de la modale de création",
|
||||
"notices.icsNoteLinkSuccess": "Note \"{fileName}\" liée à l'événement ICS",
|
||||
"notices.icsTaskCreatedSuccess": "Tâche créée : {title}",
|
||||
"notices.icsRelatedItemsRefreshed": "Notes associées actualisées",
|
||||
"notices.icsFileNotFound": "Fichier introuvable ou invalide",
|
||||
"notices.icsFileOpenFailed": "Échec de l'ouverture du fichier",
|
||||
"notices.timeblockAttachmentExists": "\"{fileName}\" est déjà attaché",
|
||||
"notices.timeblockAttachmentAdded": "\"{fileName}\" ajouté comme pièce jointe",
|
||||
"notices.timeblockAttachmentRemoved": "\"{fileName}\" retiré des pièces jointes",
|
||||
"notices.timeblockFileTypeNotSupported": "Impossible d'ouvrir \"{fileName}\" - type de fichier non pris en charge",
|
||||
"notices.timeblockTitleRequired": "Veuillez saisir un titre pour le bloc de temps",
|
||||
"notices.timeblockUpdatedSuccess": "Bloc de temps \"{title}\" mis à jour avec succès",
|
||||
"notices.timeblockUpdateFailed": "Échec de la mise à jour du bloc de temps. Consultez la console pour plus de détails.",
|
||||
"notices.timeblockDeletedSuccess": "Bloc de temps \"{title}\" supprimé avec succès",
|
||||
"notices.timeblockDeleteFailed": "Échec de la suppression du bloc de temps. Consultez la console pour plus de détails.",
|
||||
"notices.timeblockRequiredFieldsMissing": "Veuillez remplir tous les champs requis",
|
||||
"notices.agendaLoadingFailed": "Erreur lors du chargement de l'agenda. Veuillez essayer d'actualiser.",
|
||||
"notices.statsLoadingFailed": "Erreur lors du chargement des détails du projet.",
|
||||
"modals.deviceCode.title": "Autorisation Google Calendar",
|
||||
"modals.deviceCode.instructions.intro": "Pour connecter votre Google Calendar, veuillez suivre ces étapes :",
|
||||
"modals.deviceCode.steps.open": "Ouvrir",
|
||||
"modals.deviceCode.steps.inBrowser": "dans votre navigateur",
|
||||
"modals.deviceCode.steps.enterCode": "Entrez ce code lorsque demandé :",
|
||||
"modals.deviceCode.steps.signIn": "Connectez-vous avec votre compte Google et accordez l'accès",
|
||||
"modals.deviceCode.steps.returnToObsidian": "Retournez à Obsidian (cette fenêtre se fermera automatiquement)",
|
||||
"modals.deviceCode.codeLabel": "Votre code :",
|
||||
"modals.deviceCode.copyCodeAriaLabel": "Copier le code",
|
||||
"modals.deviceCode.waitingForAuthorization": "En attente d'autorisation...",
|
||||
"modals.deviceCode.openBrowserButton": "Ouvrir le navigateur",
|
||||
"modals.deviceCode.cancelButton": "Annuler",
|
||||
"modals.deviceCode.expiresMinutesSeconds": "Le code expire dans {minutes}m {seconds}s",
|
||||
"modals.deviceCode.expiresSeconds": "Le code expire dans {seconds}s",
|
||||
"modals.icsEventInfo.calendarEventHeading": "Événement de calendrier",
|
||||
"modals.icsEventInfo.titleLabel": "Titre",
|
||||
"modals.icsEventInfo.calendarLabel": "Calendrier",
|
||||
"modals.icsEventInfo.dateTimeLabel": "Date et heure",
|
||||
"modals.icsEventInfo.locationLabel": "Lieu",
|
||||
"modals.icsEventInfo.descriptionLabel": "Description",
|
||||
"modals.icsEventInfo.urlLabel": "URL",
|
||||
"modals.icsEventInfo.relatedNotesHeading": "Notes et tâches associées",
|
||||
"modals.icsEventInfo.noRelatedItems": "Aucune note ou tâche associée trouvée pour cet événement.",
|
||||
"modals.icsEventInfo.typeTask": "Tâche",
|
||||
"modals.icsEventInfo.typeNote": "Note",
|
||||
"modals.icsEventInfo.actionsHeading": "Actions",
|
||||
"modals.icsEventInfo.createFromEventLabel": "Créer à partir de l'événement",
|
||||
"modals.icsEventInfo.createFromEventDesc": "Créer une nouvelle note ou tâche à partir de cet événement de calendrier",
|
||||
"modals.icsEventInfo.linkExistingLabel": "Lier existant",
|
||||
"modals.icsEventInfo.linkExistingDesc": "Lier une note existante à cet événement de calendrier",
|
||||
"modals.timeblockInfo.editHeading": "Modifier le bloc de temps",
|
||||
"modals.timeblockInfo.dateTimeLabel": "Date et heure : ",
|
||||
"modals.timeblockInfo.titleLabel": "Titre",
|
||||
"modals.timeblockInfo.titleDesc": "Titre de votre bloc de temps",
|
||||
"modals.timeblockInfo.titlePlaceholder": "ex., Session de travail approfondi",
|
||||
"modals.timeblockInfo.descriptionLabel": "Description",
|
||||
"modals.timeblockInfo.descriptionDesc": "Description optionnelle du bloc de temps",
|
||||
"modals.timeblockInfo.descriptionPlaceholder": "Concentrez-vous sur les nouvelles fonctionnalités, sans interruptions",
|
||||
"modals.timeblockInfo.colorLabel": "Couleur",
|
||||
"modals.timeblockInfo.colorDesc": "Couleur optionnelle pour le bloc de temps",
|
||||
"modals.timeblockInfo.colorPlaceholder": "#3b82f6",
|
||||
"modals.timeblockInfo.attachmentsLabel": "Pièces jointes",
|
||||
"modals.timeblockInfo.attachmentsDesc": "Fichiers ou notes liés à ce bloc de temps",
|
||||
"modals.timeblockInfo.addAttachmentButton": "Ajouter une pièce jointe",
|
||||
"modals.timeblockInfo.addAttachmentTooltip": "Sélectionnez un fichier ou une note en utilisant la recherche floue",
|
||||
"modals.timeblockInfo.deleteButton": "Supprimer le bloc de temps",
|
||||
"modals.timeblockInfo.saveButton": "Enregistrer les modifications",
|
||||
"modals.timeblockInfo.deleteConfirmationTitle": "Supprimer le bloc de temps",
|
||||
"modals.timeblockCreation.heading": "Créer un bloc de temps",
|
||||
"modals.timeblockCreation.dateLabel": "Date : ",
|
||||
"modals.timeblockCreation.titleLabel": "Titre",
|
||||
"modals.timeblockCreation.titleDesc": "Titre de votre bloc de temps",
|
||||
"modals.timeblockCreation.titlePlaceholder": "ex., Session de travail approfondi",
|
||||
"modals.timeblockCreation.startTimeLabel": "Heure de début",
|
||||
"modals.timeblockCreation.startTimeDesc": "Quand le bloc de temps commence",
|
||||
"modals.timeblockCreation.startTimePlaceholder": "09:00",
|
||||
"modals.timeblockCreation.endTimeLabel": "Heure de fin",
|
||||
"modals.timeblockCreation.endTimeDesc": "Quand le bloc de temps se termine",
|
||||
"modals.timeblockCreation.endTimePlaceholder": "11:00",
|
||||
"modals.timeblockCreation.descriptionLabel": "Description",
|
||||
"modals.timeblockCreation.descriptionDesc": "Description optionnelle du bloc de temps",
|
||||
"modals.timeblockCreation.descriptionPlaceholder": "Concentrez-vous sur les nouvelles fonctionnalités, sans interruptions",
|
||||
"modals.timeblockCreation.colorLabel": "Couleur",
|
||||
"modals.timeblockCreation.colorDesc": "Couleur optionnelle pour le bloc de temps",
|
||||
"modals.timeblockCreation.colorPlaceholder": "#3b82f6",
|
||||
"modals.timeblockCreation.attachmentsLabel": "Pièces jointes",
|
||||
"modals.timeblockCreation.attachmentsDesc": "Fichiers ou notes à lier à ce bloc de temps",
|
||||
"modals.timeblockCreation.addAttachmentButton": "Ajouter une pièce jointe",
|
||||
"modals.timeblockCreation.addAttachmentTooltip": "Sélectionnez un fichier ou une note en utilisant la recherche floue",
|
||||
"modals.timeblockCreation.createButton": "Créer un bloc de temps",
|
||||
"modals.icsNoteCreation.heading": "Créer à partir d'un événement ICS",
|
||||
"modals.icsNoteCreation.titleLabel": "Titre",
|
||||
"modals.icsNoteCreation.titleDesc": "Titre du nouveau contenu",
|
||||
"modals.icsNoteCreation.folderLabel": "Dossier",
|
||||
"modals.icsNoteCreation.folderDesc": "Dossier de destination (laisser vide pour la racine du coffre)",
|
||||
"modals.icsNoteCreation.folderPlaceholder": "dossier/sous-dossier",
|
||||
"modals.icsNoteCreation.createButton": "Créer",
|
||||
"modals.icsNoteCreation.startLabel": "Début : ",
|
||||
"modals.icsNoteCreation.endLabel": "Fin : ",
|
||||
"modals.icsNoteCreation.locationLabel": "Lieu : ",
|
||||
"modals.icsNoteCreation.calendarLabel": "Calendrier : ",
|
||||
"modals.icsNoteCreation.useTemplateLabel": "Utiliser un modèle",
|
||||
"modals.icsNoteCreation.useTemplateDesc": "Appliquer un modèle lors de la création du contenu",
|
||||
"modals.icsNoteCreation.templatePathLabel": "Chemin du modèle",
|
||||
"modals.icsNoteCreation.templatePathDesc": "Chemin vers le fichier de modèle",
|
||||
"modals.icsNoteCreation.templatePathPlaceholder": "templates/ics-note-template.md",
|
||||
"ui.filterBar.subgroupLabel": "SOUS-GROUPE",
|
||||
"components.dateContextMenu.weekdays": "Jours de semaine",
|
||||
"components.dateContextMenu.clearDate": "Effacer la date",
|
||||
"components.dateContextMenu.today": "Aujourd'hui",
|
||||
"components.dateContextMenu.tomorrow": "Demain",
|
||||
"components.dateContextMenu.thisWeekend": "Ce week-end",
|
||||
"components.dateContextMenu.nextWeek": "La semaine prochaine",
|
||||
"components.dateContextMenu.nextMonth": "Le mois prochain",
|
||||
"components.dateContextMenu.setDateTime": "Définir la date et l'heure",
|
||||
"components.dateContextMenu.dateLabel": "Date",
|
||||
"components.dateContextMenu.timeLabel": "Heure (optionnelle)",
|
||||
"components.subgroupMenuBuilder.none": "Aucun",
|
||||
"components.subgroupMenuBuilder.status": "Statut",
|
||||
"components.subgroupMenuBuilder.priority": "Priorité",
|
||||
"components.subgroupMenuBuilder.context": "Contexte",
|
||||
"components.subgroupMenuBuilder.project": "Projet",
|
||||
"components.subgroupMenuBuilder.dueDate": "Date d'échéance",
|
||||
"components.subgroupMenuBuilder.scheduledDate": "Date programmée",
|
||||
"components.subgroupMenuBuilder.tags": "Étiquettes",
|
||||
"components.subgroupMenuBuilder.completedDate": "Date de finalisation",
|
||||
"components.subgroupMenuBuilder.subgroup": "SOUS-GROUPE",
|
||||
},
|
||||
ja: {
|
||||
// Japanese translations with polite です/ます form
|
||||
"views.agenda.empty.helpText": "期限や予定日を持つタスクを作成するか、ノートを追加してここに表示します。",
|
||||
"views.agenda.contextMenu.showOverdueSection": "期限切れセクションを表示",
|
||||
"views.agenda.contextMenu.showNotes": "ノートを表示",
|
||||
"views.agenda.contextMenu.calendarSubscriptions": "カレンダーサブスクリプション",
|
||||
"views.agenda.periods.thisWeek": "今週",
|
||||
"views.agenda.tipPrefix": "ヒント:",
|
||||
"views.notes.refreshingButton": "更新中...",
|
||||
"views.notes.empty.helpText": "選択した日付のノートが見つかりませんでした。ミニカレンダービューで別の日付を選択するか、ノートを作成してください。",
|
||||
"views.notes.loading": "ノートを読み込み中...",
|
||||
"views.notes.refreshButtonAriaLabel": "ノートリストを更新",
|
||||
"views.kanban.uncategorized": "未分類",
|
||||
"views.kanban.noProject": "プロジェクトなし",
|
||||
"views.kanban.columnTitle": "無題",
|
||||
"notices.icsNoteCreatedSuccess": "ノートが正常に作成されました",
|
||||
"notices.icsCreationModalOpenFailed": "作成モーダルを開けませんでした",
|
||||
"notices.icsNoteLinkSuccess": "ノート「{fileName}」をICSイベントにリンクしました",
|
||||
"notices.icsTaskCreatedSuccess": "タスクを作成しました:{title}",
|
||||
"notices.icsRelatedItemsRefreshed": "関連ノートを更新しました",
|
||||
"notices.icsFileNotFound": "ファイルが見つからないか無効です",
|
||||
"notices.icsFileOpenFailed": "ファイルを開けませんでした",
|
||||
"notices.timeblockAttachmentExists": "「{fileName}」は既に添付されています",
|
||||
"notices.timeblockAttachmentAdded": "「{fileName}」を添付ファイルとして追加しました",
|
||||
"notices.timeblockAttachmentRemoved": "「{fileName}」を添付ファイルから削除しました",
|
||||
"notices.timeblockFileTypeNotSupported": "「{fileName}」を開けません - ファイルタイプがサポートされていません",
|
||||
"notices.timeblockTitleRequired": "タイムブロックのタイトルを入力してください",
|
||||
"notices.timeblockUpdatedSuccess": "タイムブロック「{title}」を正常に更新しました",
|
||||
"notices.timeblockUpdateFailed": "タイムブロックの更新に失敗しました。詳細はコンソールを確認してください。",
|
||||
"notices.timeblockDeletedSuccess": "タイムブロック「{title}」を正常に削除しました",
|
||||
"notices.timeblockDeleteFailed": "タイムブロックの削除に失敗しました。詳細はコンソールを確認してください。",
|
||||
"notices.timeblockRequiredFieldsMissing": "必須フィールドをすべて入力してください",
|
||||
"notices.agendaLoadingFailed": "アジェンダの読み込みエラー。更新をお試しください。",
|
||||
"notices.statsLoadingFailed": "プロジェクトの詳細の読み込みエラー。",
|
||||
"modals.deviceCode.title": "Google Calendar認証",
|
||||
"modals.deviceCode.instructions.intro": "Google Calendarに接続するには、次の手順に従ってください:",
|
||||
"modals.deviceCode.steps.open": "開く",
|
||||
"modals.deviceCode.steps.inBrowser": "ブラウザで",
|
||||
"modals.deviceCode.steps.enterCode": "プロンプトが表示されたら、このコードを入力してください:",
|
||||
"modals.deviceCode.steps.signIn": "Googleアカウントでサインインし、アクセスを許可してください",
|
||||
"modals.deviceCode.steps.returnToObsidian": "Obsidianに戻る(このウィンドウは自動的に閉じます)",
|
||||
"modals.deviceCode.codeLabel": "あなたのコード:",
|
||||
"modals.deviceCode.copyCodeAriaLabel": "コードをコピー",
|
||||
"modals.deviceCode.waitingForAuthorization": "認証を待機中...",
|
||||
"modals.deviceCode.openBrowserButton": "ブラウザを開く",
|
||||
"modals.deviceCode.cancelButton": "キャンセル",
|
||||
"modals.deviceCode.expiresMinutesSeconds": "コードは{minutes}分{seconds}秒後に期限切れになります",
|
||||
"modals.deviceCode.expiresSeconds": "コードは{seconds}秒後に期限切れになります",
|
||||
"modals.icsEventInfo.calendarEventHeading": "カレンダーイベント",
|
||||
"modals.icsEventInfo.titleLabel": "タイトル",
|
||||
"modals.icsEventInfo.calendarLabel": "カレンダー",
|
||||
"modals.icsEventInfo.dateTimeLabel": "日時",
|
||||
"modals.icsEventInfo.locationLabel": "場所",
|
||||
"modals.icsEventInfo.descriptionLabel": "説明",
|
||||
"modals.icsEventInfo.urlLabel": "URL",
|
||||
"modals.icsEventInfo.relatedNotesHeading": "関連するノートとタスク",
|
||||
"modals.icsEventInfo.noRelatedItems": "このイベントに関連するノートまたはタスクが見つかりませんでした。",
|
||||
"modals.icsEventInfo.typeTask": "タスク",
|
||||
"modals.icsEventInfo.typeNote": "ノート",
|
||||
"modals.icsEventInfo.actionsHeading": "アクション",
|
||||
"modals.icsEventInfo.createFromEventLabel": "イベントから作成",
|
||||
"modals.icsEventInfo.createFromEventDesc": "このカレンダーイベントから新しいノートまたはタスクを作成します",
|
||||
"modals.icsEventInfo.linkExistingLabel": "既存をリンク",
|
||||
"modals.icsEventInfo.linkExistingDesc": "既存のノートをこのカレンダーイベントにリンクします",
|
||||
"modals.timeblockInfo.editHeading": "タイムブロックを編集",
|
||||
"modals.timeblockInfo.dateTimeLabel": "日時:",
|
||||
"modals.timeblockInfo.titleLabel": "タイトル",
|
||||
"modals.timeblockInfo.titleDesc": "タイムブロックのタイトル",
|
||||
"modals.timeblockInfo.titlePlaceholder": "例:集中作業セッション",
|
||||
"modals.timeblockInfo.descriptionLabel": "説明",
|
||||
"modals.timeblockInfo.descriptionDesc": "タイムブロックのオプション説明",
|
||||
"modals.timeblockInfo.descriptionPlaceholder": "新機能に集中、中断なし",
|
||||
"modals.timeblockInfo.colorLabel": "色",
|
||||
"modals.timeblockInfo.colorDesc": "タイムブロックのオプションの色",
|
||||
"modals.timeblockInfo.colorPlaceholder": "#3b82f6",
|
||||
"modals.timeblockInfo.attachmentsLabel": "添付ファイル",
|
||||
"modals.timeblockInfo.attachmentsDesc": "このタイムブロックにリンクされたファイルまたはノート",
|
||||
"modals.timeblockInfo.addAttachmentButton": "添付ファイルを追加",
|
||||
"modals.timeblockInfo.addAttachmentTooltip": "ファジー検索を使用してファイルまたはノートを選択",
|
||||
"modals.timeblockInfo.deleteButton": "タイムブロックを削除",
|
||||
"modals.timeblockInfo.saveButton": "変更を保存",
|
||||
"modals.timeblockInfo.deleteConfirmationTitle": "タイムブロックを削除",
|
||||
"modals.timeblockCreation.heading": "タイムブロックを作成",
|
||||
"modals.timeblockCreation.dateLabel": "日付:",
|
||||
"modals.timeblockCreation.titleLabel": "タイトル",
|
||||
"modals.timeblockCreation.titleDesc": "タイムブロックのタイトル",
|
||||
"modals.timeblockCreation.titlePlaceholder": "例:集中作業セッション",
|
||||
"modals.timeblockCreation.startTimeLabel": "開始時刻",
|
||||
"modals.timeblockCreation.startTimeDesc": "タイムブロックが開始する時刻",
|
||||
"modals.timeblockCreation.startTimePlaceholder": "09:00",
|
||||
"modals.timeblockCreation.endTimeLabel": "終了時刻",
|
||||
"modals.timeblockCreation.endTimeDesc": "タイムブロックが終了する時刻",
|
||||
"modals.timeblockCreation.endTimePlaceholder": "11:00",
|
||||
"modals.timeblockCreation.descriptionLabel": "説明",
|
||||
"modals.timeblockCreation.descriptionDesc": "タイムブロックのオプション説明",
|
||||
"modals.timeblockCreation.descriptionPlaceholder": "新機能に集中、中断なし",
|
||||
"modals.timeblockCreation.colorLabel": "色",
|
||||
"modals.timeblockCreation.colorDesc": "タイムブロックのオプションの色",
|
||||
"modals.timeblockCreation.colorPlaceholder": "#3b82f6",
|
||||
"modals.timeblockCreation.attachmentsLabel": "添付ファイル",
|
||||
"modals.timeblockCreation.attachmentsDesc": "このタイムブロックにリンクするファイルまたはノート",
|
||||
"modals.timeblockCreation.addAttachmentButton": "添付ファイルを追加",
|
||||
"modals.timeblockCreation.addAttachmentTooltip": "ファジー検索を使用してファイルまたはノートを選択",
|
||||
"modals.timeblockCreation.createButton": "タイムブロックを作成",
|
||||
"modals.icsNoteCreation.heading": "ICSイベントから作成",
|
||||
"modals.icsNoteCreation.titleLabel": "タイトル",
|
||||
"modals.icsNoteCreation.titleDesc": "新しいコンテンツのタイトル",
|
||||
"modals.icsNoteCreation.folderLabel": "フォルダ",
|
||||
"modals.icsNoteCreation.folderDesc": "保存先フォルダ(空欄の場合はVaultルート)",
|
||||
"modals.icsNoteCreation.folderPlaceholder": "フォルダ/サブフォルダ",
|
||||
"modals.icsNoteCreation.createButton": "作成",
|
||||
"modals.icsNoteCreation.startLabel": "開始:",
|
||||
"modals.icsNoteCreation.endLabel": "終了:",
|
||||
"modals.icsNoteCreation.locationLabel": "場所:",
|
||||
"modals.icsNoteCreation.calendarLabel": "カレンダー:",
|
||||
"modals.icsNoteCreation.useTemplateLabel": "テンプレートを使用",
|
||||
"modals.icsNoteCreation.useTemplateDesc": "コンテンツ作成時にテンプレートを適用",
|
||||
"modals.icsNoteCreation.templatePathLabel": "テンプレートパス",
|
||||
"modals.icsNoteCreation.templatePathDesc": "テンプレートファイルへのパス",
|
||||
"modals.icsNoteCreation.templatePathPlaceholder": "templates/ics-note-template.md",
|
||||
"ui.filterBar.subgroupLabel": "サブグループ",
|
||||
"components.dateContextMenu.weekdays": "平日",
|
||||
"components.dateContextMenu.clearDate": "日付をクリア",
|
||||
"components.dateContextMenu.today": "今日",
|
||||
"components.dateContextMenu.tomorrow": "明日",
|
||||
"components.dateContextMenu.thisWeekend": "今週末",
|
||||
"components.dateContextMenu.nextWeek": "来週",
|
||||
"components.dateContextMenu.nextMonth": "来月",
|
||||
"components.dateContextMenu.setDateTime": "日時を設定",
|
||||
"components.dateContextMenu.dateLabel": "日付",
|
||||
"components.dateContextMenu.timeLabel": "時刻(オプション)",
|
||||
"components.subgroupMenuBuilder.none": "なし",
|
||||
"components.subgroupMenuBuilder.status": "ステータス",
|
||||
"components.subgroupMenuBuilder.priority": "優先度",
|
||||
"components.subgroupMenuBuilder.context": "コンテキスト",
|
||||
"components.subgroupMenuBuilder.project": "プロジェクト",
|
||||
"components.subgroupMenuBuilder.dueDate": "期限",
|
||||
"components.subgroupMenuBuilder.scheduledDate": "予定日",
|
||||
"components.subgroupMenuBuilder.tags": "タグ",
|
||||
"components.subgroupMenuBuilder.completedDate": "完了日",
|
||||
"components.subgroupMenuBuilder.subgroup": "サブグループ",
|
||||
},
|
||||
ru: {
|
||||
// Russian translations with formal address forms
|
||||
"views.agenda.empty.helpText": "Создайте задачи с датами выполнения или планирования, или добавьте заметки, чтобы увидеть их здесь.",
|
||||
"views.agenda.contextMenu.showOverdueSection": "Показать раздел просроченных",
|
||||
"views.agenda.contextMenu.showNotes": "Показать заметки",
|
||||
"views.agenda.contextMenu.calendarSubscriptions": "Подписки календаря",
|
||||
"views.agenda.periods.thisWeek": "Эта неделя",
|
||||
"views.agenda.tipPrefix": "Совет: ",
|
||||
"views.notes.refreshingButton": "Обновление...",
|
||||
"views.notes.empty.helpText": "Заметки для выбранной даты не найдены. Попробуйте выбрать другую дату в мини-календаре или создайте несколько заметок.",
|
||||
"views.notes.loading": "Загрузка заметок...",
|
||||
"views.notes.refreshButtonAriaLabel": "Обновить список заметок",
|
||||
"views.kanban.uncategorized": "Без категории",
|
||||
"views.kanban.noProject": "Без проекта",
|
||||
"views.kanban.columnTitle": "Без названия",
|
||||
"notices.icsNoteCreatedSuccess": "Заметка успешно создана",
|
||||
"notices.icsCreationModalOpenFailed": "Не удалось открыть модальное окно создания",
|
||||
"notices.icsNoteLinkSuccess": "Заметка \"{fileName}\" связана с событием ICS",
|
||||
"notices.icsTaskCreatedSuccess": "Задача создана: {title}",
|
||||
"notices.icsRelatedItemsRefreshed": "Связанные заметки обновлены",
|
||||
"notices.icsFileNotFound": "Файл не найден или недействителен",
|
||||
"notices.icsFileOpenFailed": "Не удалось открыть файл",
|
||||
"notices.timeblockAttachmentExists": "\"{fileName}\" уже прикреплен",
|
||||
"notices.timeblockAttachmentAdded": "\"{fileName}\" добавлен как вложение",
|
||||
"notices.timeblockAttachmentRemoved": "\"{fileName}\" удален из вложений",
|
||||
"notices.timeblockFileTypeNotSupported": "Невозможно открыть \"{fileName}\" - тип файла не поддерживается",
|
||||
"notices.timeblockTitleRequired": "Пожалуйста, введите название для временного блока",
|
||||
"notices.timeblockUpdatedSuccess": "Временной блок \"{title}\" успешно обновлен",
|
||||
"notices.timeblockUpdateFailed": "Не удалось обновить временной блок. Проверьте консоль для подробностей.",
|
||||
"notices.timeblockDeletedSuccess": "Временной блок \"{title}\" успешно удален",
|
||||
"notices.timeblockDeleteFailed": "Не удалось удалить временной блок. Проверьте консоль для подробностей.",
|
||||
"notices.timeblockRequiredFieldsMissing": "Пожалуйста, заполните все обязательные поля",
|
||||
"notices.agendaLoadingFailed": "Ошибка при загрузке повестки. Пожалуйста, попробуйте обновить.",
|
||||
"notices.statsLoadingFailed": "Ошибка при загрузке деталей проекта.",
|
||||
"modals.deviceCode.title": "Авторизация Google Calendar",
|
||||
"modals.deviceCode.instructions.intro": "Чтобы подключить ваш Google Calendar, пожалуйста, выполните следующие шаги:",
|
||||
"modals.deviceCode.steps.open": "Откройте",
|
||||
"modals.deviceCode.steps.inBrowser": "в вашем браузере",
|
||||
"modals.deviceCode.steps.enterCode": "Введите этот код при запросе:",
|
||||
"modals.deviceCode.steps.signIn": "Войдите с помощью вашего аккаунта Google и предоставьте доступ",
|
||||
"modals.deviceCode.steps.returnToObsidian": "Вернитесь в Obsidian (это окно закроется автоматически)",
|
||||
"modals.deviceCode.codeLabel": "Ваш код:",
|
||||
"modals.deviceCode.copyCodeAriaLabel": "Скопировать код",
|
||||
"modals.deviceCode.waitingForAuthorization": "Ожидание авторизации...",
|
||||
"modals.deviceCode.openBrowserButton": "Открыть браузер",
|
||||
"modals.deviceCode.cancelButton": "Отмена",
|
||||
"modals.deviceCode.expiresMinutesSeconds": "Код истекает через {minutes}м {seconds}с",
|
||||
"modals.deviceCode.expiresSeconds": "Код истекает через {seconds}с",
|
||||
"modals.icsEventInfo.calendarEventHeading": "Событие календаря",
|
||||
"modals.icsEventInfo.titleLabel": "Название",
|
||||
"modals.icsEventInfo.calendarLabel": "Календарь",
|
||||
"modals.icsEventInfo.dateTimeLabel": "Дата и время",
|
||||
"modals.icsEventInfo.locationLabel": "Место",
|
||||
"modals.icsEventInfo.descriptionLabel": "Описание",
|
||||
"modals.icsEventInfo.urlLabel": "URL",
|
||||
"modals.icsEventInfo.relatedNotesHeading": "Связанные заметки и задачи",
|
||||
"modals.icsEventInfo.noRelatedItems": "Для этого события не найдено связанных заметок или задач.",
|
||||
"modals.icsEventInfo.typeTask": "Задача",
|
||||
"modals.icsEventInfo.typeNote": "Заметка",
|
||||
"modals.icsEventInfo.actionsHeading": "Действия",
|
||||
"modals.icsEventInfo.createFromEventLabel": "Создать из события",
|
||||
"modals.icsEventInfo.createFromEventDesc": "Создать новую заметку или задачу из этого события календаря",
|
||||
"modals.icsEventInfo.linkExistingLabel": "Связать существующее",
|
||||
"modals.icsEventInfo.linkExistingDesc": "Связать существующую заметку с этим событием календаря",
|
||||
"modals.timeblockInfo.editHeading": "Редактировать временной блок",
|
||||
"modals.timeblockInfo.dateTimeLabel": "Дата и время: ",
|
||||
"modals.timeblockInfo.titleLabel": "Название",
|
||||
"modals.timeblockInfo.titleDesc": "Название вашего временного блока",
|
||||
"modals.timeblockInfo.titlePlaceholder": "напр., Сессия глубокой работы",
|
||||
"modals.timeblockInfo.descriptionLabel": "Описание",
|
||||
"modals.timeblockInfo.descriptionDesc": "Необязательное описание временного блока",
|
||||
"modals.timeblockInfo.descriptionPlaceholder": "Сосредоточиться на новых функциях, без прерываний",
|
||||
"modals.timeblockInfo.colorLabel": "Цвет",
|
||||
"modals.timeblockInfo.colorDesc": "Необязательный цвет для временного блока",
|
||||
"modals.timeblockInfo.colorPlaceholder": "#3b82f6",
|
||||
"modals.timeblockInfo.attachmentsLabel": "Вложения",
|
||||
"modals.timeblockInfo.attachmentsDesc": "Файлы или заметки, связанные с этим временным блоком",
|
||||
"modals.timeblockInfo.addAttachmentButton": "Добавить вложение",
|
||||
"modals.timeblockInfo.addAttachmentTooltip": "Выберите файл или заметку с помощью нечеткого поиска",
|
||||
"modals.timeblockInfo.deleteButton": "Удалить временной блок",
|
||||
"modals.timeblockInfo.saveButton": "Сохранить изменения",
|
||||
"modals.timeblockInfo.deleteConfirmationTitle": "Удалить временной блок",
|
||||
"modals.timeblockCreation.heading": "Создать временной блок",
|
||||
"modals.timeblockCreation.dateLabel": "Дата: ",
|
||||
"modals.timeblockCreation.titleLabel": "Название",
|
||||
"modals.timeblockCreation.titleDesc": "Название вашего временного блока",
|
||||
"modals.timeblockCreation.titlePlaceholder": "напр., Сессия глубокой работы",
|
||||
"modals.timeblockCreation.startTimeLabel": "Время начала",
|
||||
"modals.timeblockCreation.startTimeDesc": "Когда начинается временной блок",
|
||||
"modals.timeblockCreation.startTimePlaceholder": "09:00",
|
||||
"modals.timeblockCreation.endTimeLabel": "Время окончания",
|
||||
"modals.timeblockCreation.endTimeDesc": "Когда заканчивается временной блок",
|
||||
"modals.timeblockCreation.endTimePlaceholder": "11:00",
|
||||
"modals.timeblockCreation.descriptionLabel": "Описание",
|
||||
"modals.timeblockCreation.descriptionDesc": "Необязательное описание временного блока",
|
||||
"modals.timeblockCreation.descriptionPlaceholder": "Сосредоточиться на новых функциях, без прерываний",
|
||||
"modals.timeblockCreation.colorLabel": "Цвет",
|
||||
"modals.timeblockCreation.colorDesc": "Необязательный цвет для временного блока",
|
||||
"modals.timeblockCreation.colorPlaceholder": "#3b82f6",
|
||||
"modals.timeblockCreation.attachmentsLabel": "Вложения",
|
||||
"modals.timeblockCreation.attachmentsDesc": "Файлы или заметки для связи с этим временным блоком",
|
||||
"modals.timeblockCreation.addAttachmentButton": "Добавить вложение",
|
||||
"modals.timeblockCreation.addAttachmentTooltip": "Выберите файл или заметку с помощью нечеткого поиска",
|
||||
"modals.timeblockCreation.createButton": "Создать временной блок",
|
||||
"modals.icsNoteCreation.heading": "Создать из события ICS",
|
||||
"modals.icsNoteCreation.titleLabel": "Название",
|
||||
"modals.icsNoteCreation.titleDesc": "Название нового содержимого",
|
||||
"modals.icsNoteCreation.folderLabel": "Папка",
|
||||
"modals.icsNoteCreation.folderDesc": "Папка назначения (оставьте пустым для корня хранилища)",
|
||||
"modals.icsNoteCreation.folderPlaceholder": "папка/подпапка",
|
||||
"modals.icsNoteCreation.createButton": "Создать",
|
||||
"modals.icsNoteCreation.startLabel": "Начало: ",
|
||||
"modals.icsNoteCreation.endLabel": "Окончание: ",
|
||||
"modals.icsNoteCreation.locationLabel": "Место: ",
|
||||
"modals.icsNoteCreation.calendarLabel": "Календарь: ",
|
||||
"modals.icsNoteCreation.useTemplateLabel": "Использовать шаблон",
|
||||
"modals.icsNoteCreation.useTemplateDesc": "Применить шаблон при создании содержимого",
|
||||
"modals.icsNoteCreation.templatePathLabel": "Путь к шаблону",
|
||||
"modals.icsNoteCreation.templatePathDesc": "Путь к файлу шаблона",
|
||||
"modals.icsNoteCreation.templatePathPlaceholder": "templates/ics-note-template.md",
|
||||
"ui.filterBar.subgroupLabel": "ПОДГРУППА",
|
||||
"components.dateContextMenu.weekdays": "Будние дни",
|
||||
"components.dateContextMenu.clearDate": "Очистить дату",
|
||||
"components.dateContextMenu.today": "Сегодня",
|
||||
"components.dateContextMenu.tomorrow": "Завтра",
|
||||
"components.dateContextMenu.thisWeekend": "Эти выходные",
|
||||
"components.dateContextMenu.nextWeek": "Следующая неделя",
|
||||
"components.dateContextMenu.nextMonth": "Следующий месяц",
|
||||
"components.dateContextMenu.setDateTime": "Установить дату и время",
|
||||
"components.dateContextMenu.dateLabel": "Дата",
|
||||
"components.dateContextMenu.timeLabel": "Время (необязательно)",
|
||||
"components.subgroupMenuBuilder.none": "Нет",
|
||||
"components.subgroupMenuBuilder.status": "Статус",
|
||||
"components.subgroupMenuBuilder.priority": "Приоритет",
|
||||
"components.subgroupMenuBuilder.context": "Контекст",
|
||||
"components.subgroupMenuBuilder.project": "Проект",
|
||||
"components.subgroupMenuBuilder.dueDate": "Срок выполнения",
|
||||
"components.subgroupMenuBuilder.scheduledDate": "Запланированная дата",
|
||||
"components.subgroupMenuBuilder.tags": "Теги",
|
||||
"components.subgroupMenuBuilder.completedDate": "Дата завершения",
|
||||
"components.subgroupMenuBuilder.subgroup": "ПОДГРУППА",
|
||||
},
|
||||
zh: {
|
||||
// Simplified Chinese translations
|
||||
"views.agenda.empty.helpText": "创建具有截止日期或计划日期的任务,或添加笔记以在此处查看它们。",
|
||||
"views.agenda.contextMenu.showOverdueSection": "显示逾期部分",
|
||||
"views.agenda.contextMenu.showNotes": "显示笔记",
|
||||
"views.agenda.contextMenu.calendarSubscriptions": "日历订阅",
|
||||
"views.agenda.periods.thisWeek": "本周",
|
||||
"views.agenda.tipPrefix": "提示:",
|
||||
"views.notes.refreshingButton": "刷新中...",
|
||||
"views.notes.empty.helpText": "未找到所选日期的笔记。请尝试在迷你日历视图中选择其他日期或创建一些笔记。",
|
||||
"views.notes.loading": "加载笔记中...",
|
||||
"views.notes.refreshButtonAriaLabel": "刷新笔记列表",
|
||||
"views.kanban.uncategorized": "未分类",
|
||||
"views.kanban.noProject": "无项目",
|
||||
"views.kanban.columnTitle": "无标题",
|
||||
"notices.icsNoteCreatedSuccess": "笔记创建成功",
|
||||
"notices.icsCreationModalOpenFailed": "无法打开创建模态框",
|
||||
"notices.icsNoteLinkSuccess": "已将笔记"{fileName}"链接到ICS事件",
|
||||
"notices.icsTaskCreatedSuccess": "任务已创建:{title}",
|
||||
"notices.icsRelatedItemsRefreshed": "相关笔记已刷新",
|
||||
"notices.icsFileNotFound": "文件未找到或无效",
|
||||
"notices.icsFileOpenFailed": "无法打开文件",
|
||||
"notices.timeblockAttachmentExists": ""{fileName}"已经附加",
|
||||
"notices.timeblockAttachmentAdded": "已将"{fileName}"添加为附件",
|
||||
"notices.timeblockAttachmentRemoved": "已从附件中移除"{fileName}"",
|
||||
"notices.timeblockFileTypeNotSupported": "无法打开"{fileName}" - 不支持的文件类型",
|
||||
"notices.timeblockTitleRequired": "请为时间块输入标题",
|
||||
"notices.timeblockUpdatedSuccess": "时间块"{title}"更新成功",
|
||||
"notices.timeblockUpdateFailed": "无法更新时间块。请查看控制台以获取详细信息。",
|
||||
"notices.timeblockDeletedSuccess": "时间块"{title}"删除成功",
|
||||
"notices.timeblockDeleteFailed": "无法删除时间块。请查看控制台以获取详细信息。",
|
||||
"notices.timeblockRequiredFieldsMissing": "请填写所有必填字段",
|
||||
"notices.agendaLoadingFailed": "加载议程时出错。请尝试刷新。",
|
||||
"notices.statsLoadingFailed": "加载项目详情时出错。",
|
||||
"modals.deviceCode.title": "Google Calendar授权",
|
||||
"modals.deviceCode.instructions.intro": "要连接您的Google Calendar,请按照以下步骤操作:",
|
||||
"modals.deviceCode.steps.open": "打开",
|
||||
"modals.deviceCode.steps.inBrowser": "在您的浏览器中",
|
||||
"modals.deviceCode.steps.enterCode": "在提示时输入此代码:",
|
||||
"modals.deviceCode.steps.signIn": "使用您的Google帐户登录并授予访问权限",
|
||||
"modals.deviceCode.steps.returnToObsidian": "返回Obsidian(此窗口将自动关闭)",
|
||||
"modals.deviceCode.codeLabel": "您的代码:",
|
||||
"modals.deviceCode.copyCodeAriaLabel": "复制代码",
|
||||
"modals.deviceCode.waitingForAuthorization": "等待授权中...",
|
||||
"modals.deviceCode.openBrowserButton": "打开浏览器",
|
||||
"modals.deviceCode.cancelButton": "取消",
|
||||
"modals.deviceCode.expiresMinutesSeconds": "代码将在{minutes}分{seconds}秒后过期",
|
||||
"modals.deviceCode.expiresSeconds": "代码将在{seconds}秒后过期",
|
||||
"modals.icsEventInfo.calendarEventHeading": "日历事件",
|
||||
"modals.icsEventInfo.titleLabel": "标题",
|
||||
"modals.icsEventInfo.calendarLabel": "日历",
|
||||
"modals.icsEventInfo.dateTimeLabel": "日期和时间",
|
||||
"modals.icsEventInfo.locationLabel": "位置",
|
||||
"modals.icsEventInfo.descriptionLabel": "描述",
|
||||
"modals.icsEventInfo.urlLabel": "URL",
|
||||
"modals.icsEventInfo.relatedNotesHeading": "相关笔记和任务",
|
||||
"modals.icsEventInfo.noRelatedItems": "未找到此事件的相关笔记或任务。",
|
||||
"modals.icsEventInfo.typeTask": "任务",
|
||||
"modals.icsEventInfo.typeNote": "笔记",
|
||||
"modals.icsEventInfo.actionsHeading": "操作",
|
||||
"modals.icsEventInfo.createFromEventLabel": "从事件创建",
|
||||
"modals.icsEventInfo.createFromEventDesc": "从此日历事件创建新笔记或任务",
|
||||
"modals.icsEventInfo.linkExistingLabel": "链接现有",
|
||||
"modals.icsEventInfo.linkExistingDesc": "将现有笔记链接到此日历事件",
|
||||
"modals.timeblockInfo.editHeading": "编辑时间块",
|
||||
"modals.timeblockInfo.dateTimeLabel": "日期和时间:",
|
||||
"modals.timeblockInfo.titleLabel": "标题",
|
||||
"modals.timeblockInfo.titleDesc": "您的时间块标题",
|
||||
"modals.timeblockInfo.titlePlaceholder": "例如,深度工作会话",
|
||||
"modals.timeblockInfo.descriptionLabel": "描述",
|
||||
"modals.timeblockInfo.descriptionDesc": "时间块的可选描述",
|
||||
"modals.timeblockInfo.descriptionPlaceholder": "专注于新功能,无打扰",
|
||||
"modals.timeblockInfo.colorLabel": "颜色",
|
||||
"modals.timeblockInfo.colorDesc": "时间块的可选颜色",
|
||||
"modals.timeblockInfo.colorPlaceholder": "#3b82f6",
|
||||
"modals.timeblockInfo.attachmentsLabel": "附件",
|
||||
"modals.timeblockInfo.attachmentsDesc": "链接到此时间块的文件或笔记",
|
||||
"modals.timeblockInfo.addAttachmentButton": "添加附件",
|
||||
"modals.timeblockInfo.addAttachmentTooltip": "使用模糊搜索选择文件或笔记",
|
||||
"modals.timeblockInfo.deleteButton": "删除时间块",
|
||||
"modals.timeblockInfo.saveButton": "保存更改",
|
||||
"modals.timeblockInfo.deleteConfirmationTitle": "删除时间块",
|
||||
"modals.timeblockCreation.heading": "创建时间块",
|
||||
"modals.timeblockCreation.dateLabel": "日期:",
|
||||
"modals.timeblockCreation.titleLabel": "标题",
|
||||
"modals.timeblockCreation.titleDesc": "您的时间块标题",
|
||||
"modals.timeblockCreation.titlePlaceholder": "例如,深度工作会话",
|
||||
"modals.timeblockCreation.startTimeLabel": "开始时间",
|
||||
"modals.timeblockCreation.startTimeDesc": "时间块开始的时间",
|
||||
"modals.timeblockCreation.startTimePlaceholder": "09:00",
|
||||
"modals.timeblockCreation.endTimeLabel": "结束时间",
|
||||
"modals.timeblockCreation.endTimeDesc": "时间块结束的时间",
|
||||
"modals.timeblockCreation.endTimePlaceholder": "11:00",
|
||||
"modals.timeblockCreation.descriptionLabel": "描述",
|
||||
"modals.timeblockCreation.descriptionDesc": "时间块的可选描述",
|
||||
"modals.timeblockCreation.descriptionPlaceholder": "专注于新功能,无打扰",
|
||||
"modals.timeblockCreation.colorLabel": "颜色",
|
||||
"modals.timeblockCreation.colorDesc": "时间块的可选颜色",
|
||||
"modals.timeblockCreation.colorPlaceholder": "#3b82f6",
|
||||
"modals.timeblockCreation.attachmentsLabel": "附件",
|
||||
"modals.timeblockCreation.attachmentsDesc": "要链接到此时间块的文件或笔记",
|
||||
"modals.timeblockCreation.addAttachmentButton": "添加附件",
|
||||
"modals.timeblockCreation.addAttachmentTooltip": "使用模糊搜索选择文件或笔记",
|
||||
"modals.timeblockCreation.createButton": "创建时间块",
|
||||
"modals.icsNoteCreation.heading": "从ICS事件创建",
|
||||
"modals.icsNoteCreation.titleLabel": "标题",
|
||||
"modals.icsNoteCreation.titleDesc": "新内容的标题",
|
||||
"modals.icsNoteCreation.folderLabel": "文件夹",
|
||||
"modals.icsNoteCreation.folderDesc": "目标文件夹(留空则为库根目录)",
|
||||
"modals.icsNoteCreation.folderPlaceholder": "文件夹/子文件夹",
|
||||
"modals.icsNoteCreation.createButton": "创建",
|
||||
"modals.icsNoteCreation.startLabel": "开始:",
|
||||
"modals.icsNoteCreation.endLabel": "结束:",
|
||||
"modals.icsNoteCreation.locationLabel": "位置:",
|
||||
"modals.icsNoteCreation.calendarLabel": "日历:",
|
||||
"modals.icsNoteCreation.useTemplateLabel": "使用模板",
|
||||
"modals.icsNoteCreation.useTemplateDesc": "创建内容时应用模板",
|
||||
"modals.icsNoteCreation.templatePathLabel": "模板路径",
|
||||
"modals.icsNoteCreation.templatePathDesc": "模板文件的路径",
|
||||
"modals.icsNoteCreation.templatePathPlaceholder": "templates/ics-note-template.md",
|
||||
"ui.filterBar.subgroupLabel": "子组",
|
||||
"components.dateContextMenu.weekdays": "工作日",
|
||||
"components.dateContextMenu.clearDate": "清除日期",
|
||||
"components.dateContextMenu.today": "今天",
|
||||
"components.dateContextMenu.tomorrow": "明天",
|
||||
"components.dateContextMenu.thisWeekend": "本周末",
|
||||
"components.dateContextMenu.nextWeek": "下周",
|
||||
"components.dateContextMenu.nextMonth": "下个月",
|
||||
"components.dateContextMenu.setDateTime": "设置日期和时间",
|
||||
"components.dateContextMenu.dateLabel": "日期",
|
||||
"components.dateContextMenu.timeLabel": "时间(可选)",
|
||||
"components.subgroupMenuBuilder.none": "无",
|
||||
"components.subgroupMenuBuilder.status": "状态",
|
||||
"components.subgroupMenuBuilder.priority": "优先级",
|
||||
"components.subgroupMenuBuilder.context": "上下文",
|
||||
"components.subgroupMenuBuilder.project": "项目",
|
||||
"components.subgroupMenuBuilder.dueDate": "截止日期",
|
||||
"components.subgroupMenuBuilder.scheduledDate": "计划日期",
|
||||
"components.subgroupMenuBuilder.tags": "标签",
|
||||
"components.subgroupMenuBuilder.completedDate": "完成日期",
|
||||
"components.subgroupMenuBuilder.subgroup": "子组",
|
||||
},
|
||||
};
|
||||
|
||||
// Helper to build nested object from dot notation
|
||||
function setNestedValue(obj, path, value) {
|
||||
const parts = path.split('.');
|
||||
const last = parts.pop();
|
||||
let current = obj;
|
||||
for (const part of parts) {
|
||||
if (!current[part]) {
|
||||
current[part] = {};
|
||||
}
|
||||
current = current[part];
|
||||
}
|
||||
current[last] = value;
|
||||
}
|
||||
|
||||
// Process each locale
|
||||
for (const [locale, translationMap] of Object.entries(translations)) {
|
||||
console.log(`\nProcessing ${locale}...`);
|
||||
|
||||
const filePath = path.join(RESOURCES_DIR, `${locale}.ts`);
|
||||
let content = fs.readFileSync(filePath, 'utf8');
|
||||
|
||||
// Parse the existing structure to find insertion points
|
||||
const lines = content.split('\n');
|
||||
|
||||
for (const [key, value] of Object.entries(translationMap)) {
|
||||
const parts = key.split('.');
|
||||
|
||||
// Find where to insert this key
|
||||
// Strategy: Find the parent section and insert alphabetically or at the end
|
||||
let insertIndex = -1;
|
||||
let indent = '';
|
||||
|
||||
// Build the search pattern for the parent
|
||||
const parentPath = parts.slice(0, -1);
|
||||
const lastKey = parts[parts.length - 1];
|
||||
|
||||
// Search for the parent section
|
||||
for (let i = 0; i < lines.length; i++) {
|
||||
const line = lines[i];
|
||||
|
||||
// Check if we're in the right nested section
|
||||
if (parentPath.length > 0) {
|
||||
const parentPattern = parentPath[parentPath.length - 1] + ':';
|
||||
if (line.includes(parentPattern) && line.includes('{')) {
|
||||
// Found the parent, now find where to insert
|
||||
insertIndex = i + 1;
|
||||
// Get indentation
|
||||
const match = line.match(/^(\s*)/);
|
||||
indent = match ? match[1] + '\t' : '\t\t';
|
||||
|
||||
// Find the closing brace of this section
|
||||
let braceCount = 1;
|
||||
for (let j = i + 1; j < lines.length; j++) {
|
||||
if (lines[j].includes('{')) braceCount++;
|
||||
if (lines[j].includes('}')) {
|
||||
braceCount--;
|
||||
if (braceCount === 0) {
|
||||
insertIndex = j;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Escape special characters in value
|
||||
const escapedValue = value.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
|
||||
const newLine = `${indent}${lastKey}: "${escapedValue}",`;
|
||||
|
||||
// Insert the line
|
||||
if (insertIndex > 0) {
|
||||
lines.splice(insertIndex, 0, newLine);
|
||||
console.log(` Added: ${key}`);
|
||||
} else {
|
||||
console.warn(` Warning: Could not find insertion point for ${key}`);
|
||||
}
|
||||
}
|
||||
|
||||
// Write back
|
||||
fs.writeFileSync(filePath, lines.join('\n'));
|
||||
console.log(`✓ Completed ${locale}`);
|
||||
}
|
||||
|
||||
console.log('\n✓ All translations added!');
|
||||
71
scripts/export-missing.mjs
Normal file
71
scripts/export-missing.mjs
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
const RESOURCES_DIR = path.resolve('src/i18n/resources');
|
||||
const MANIFEST_PATH = path.resolve('i18n.manifest.json');
|
||||
const STATE_PATH = path.resolve('i18n.state.json');
|
||||
|
||||
function flatten(tree, prefix = '') {
|
||||
const entries = {};
|
||||
for (const [key, value] of Object.entries(tree)) {
|
||||
const fullKey = prefix ? `${prefix}.${key}` : key;
|
||||
if (typeof value === 'string') {
|
||||
entries[fullKey] = value;
|
||||
} else if (value && typeof value === 'object' && !Array.isArray(value)) {
|
||||
Object.assign(entries, flatten(value, fullKey));
|
||||
}
|
||||
}
|
||||
return entries;
|
||||
}
|
||||
|
||||
async function loadLocaleModule(locale) {
|
||||
const filePath = path.join(RESOURCES_DIR, `${locale}.ts`);
|
||||
let content = fs.readFileSync(filePath, 'utf8');
|
||||
content = content.replace(/^import\s+.*?;$/gm, '');
|
||||
content = content.replace(/export\s+type\s+.*?;$/gm, '');
|
||||
content = content.replace(
|
||||
new RegExp(`export\\s+const\\s+${locale}\\s*:\\s*\\w+\\s*=\\s*`, 'g'),
|
||||
'export default '
|
||||
);
|
||||
content = content.replace(
|
||||
new RegExp(`export\\s+const\\s+${locale}\\s*=\\s*`, 'g'),
|
||||
'export default '
|
||||
);
|
||||
const tempPath = path.join(RESOURCES_DIR, `.${locale}.temp.mjs`);
|
||||
fs.writeFileSync(tempPath, content);
|
||||
try {
|
||||
const absolutePath = path.resolve(tempPath);
|
||||
const module = await import(`file://${absolutePath}?v=${Date.now()}`);
|
||||
return module.default;
|
||||
} finally {
|
||||
if (fs.existsSync(tempPath)) {
|
||||
fs.unlinkSync(tempPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function getLocaleMap(locale) {
|
||||
const module = await loadLocaleModule(locale);
|
||||
return flatten(module);
|
||||
}
|
||||
|
||||
const locale = process.argv[2];
|
||||
if (!locale) {
|
||||
console.error('Usage: node export-missing.mjs <locale>');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const manifest = JSON.parse(fs.readFileSync(MANIFEST_PATH, 'utf8'));
|
||||
const state = JSON.parse(fs.readFileSync(STATE_PATH, 'utf8'));
|
||||
const enMap = await getLocaleMap('en');
|
||||
const targetMap = await getLocaleMap(locale);
|
||||
|
||||
const missing = [];
|
||||
for (const key in manifest) {
|
||||
const entry = state[locale]?.[key];
|
||||
if (!entry || !entry.translation) {
|
||||
missing.push({ key, value: enMap[key] });
|
||||
}
|
||||
}
|
||||
|
||||
console.log(JSON.stringify(missing, null, 2));
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
import { Menu } from "obsidian";
|
||||
import { FilterOptions, FilterQuery, TaskGroupKey } from "../types";
|
||||
import type TaskNotesPlugin from "../main";
|
||||
|
||||
/**
|
||||
* Builder for the SUBGROUP section of the sort/group context menu.
|
||||
|
|
@ -12,18 +13,19 @@ export class SubgroupMenuBuilder {
|
|||
*/
|
||||
static buildOptions(
|
||||
primaryKey: TaskGroupKey,
|
||||
filterOptions: FilterOptions
|
||||
filterOptions: FilterOptions,
|
||||
plugin: TaskNotesPlugin
|
||||
): Record<string, string> {
|
||||
const builtIn: Record<TaskGroupKey, string> = {
|
||||
none: "None",
|
||||
status: "Status",
|
||||
priority: "Priority",
|
||||
context: "Context",
|
||||
project: "Project",
|
||||
due: "Due Date",
|
||||
scheduled: "Scheduled Date",
|
||||
tags: "Tags",
|
||||
completedDate: "Completed Date",
|
||||
none: plugin.i18n.translate("ui.filterBar.group.none"),
|
||||
status: plugin.i18n.translate("ui.filterBar.group.status"),
|
||||
priority: plugin.i18n.translate("ui.filterBar.group.priority"),
|
||||
context: plugin.i18n.translate("ui.filterBar.group.context"),
|
||||
project: plugin.i18n.translate("ui.filterBar.group.project"),
|
||||
due: plugin.i18n.translate("ui.filterBar.group.dueDate"),
|
||||
scheduled: plugin.i18n.translate("ui.filterBar.group.scheduledDate"),
|
||||
tags: plugin.i18n.translate("ui.filterBar.group.tags"),
|
||||
completedDate: plugin.i18n.translate("ui.filterBar.group.completedDate"),
|
||||
} as const;
|
||||
|
||||
const options: Record<string, string> = {};
|
||||
|
|
@ -59,16 +61,17 @@ export class SubgroupMenuBuilder {
|
|||
menu: Menu,
|
||||
currentQuery: Pick<FilterQuery, "groupKey" | "subgroupKey">,
|
||||
filterOptions: FilterOptions,
|
||||
onSelect: (key: TaskGroupKey) => void
|
||||
onSelect: (key: TaskGroupKey) => void,
|
||||
plugin: TaskNotesPlugin
|
||||
): void {
|
||||
const primary = (currentQuery.groupKey || "none") as TaskGroupKey;
|
||||
const subKey = (currentQuery.subgroupKey || "none") as TaskGroupKey;
|
||||
const options = SubgroupMenuBuilder.buildOptions(primary, filterOptions);
|
||||
const options = SubgroupMenuBuilder.buildOptions(primary, filterOptions, plugin);
|
||||
|
||||
// Visual separator and header
|
||||
menu.addSeparator();
|
||||
menu.addItem((item: any) => {
|
||||
item.setTitle("SUBGROUP");
|
||||
item.setTitle(plugin.i18n.translate("ui.filterBar.subgroupLabel"));
|
||||
if (typeof item.setDisabled === "function") item.setDisabled(true);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1206,18 +1206,18 @@ export class TaskContextMenu {
|
|||
const today = new Date();
|
||||
const dayNames = ["SU", "MO", "TU", "WE", "TH", "FR", "SA"];
|
||||
const monthNames = [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December",
|
||||
plugin.i18n.translate("common.months.january"),
|
||||
plugin.i18n.translate("common.months.february"),
|
||||
plugin.i18n.translate("common.months.march"),
|
||||
plugin.i18n.translate("common.months.april"),
|
||||
plugin.i18n.translate("common.months.may"),
|
||||
plugin.i18n.translate("common.months.june"),
|
||||
plugin.i18n.translate("common.months.july"),
|
||||
plugin.i18n.translate("common.months.august"),
|
||||
plugin.i18n.translate("common.months.september"),
|
||||
plugin.i18n.translate("common.months.october"),
|
||||
plugin.i18n.translate("common.months.november"),
|
||||
plugin.i18n.translate("common.months.december"),
|
||||
];
|
||||
const currentDay = dayNames[today.getDay()];
|
||||
const currentDate = today.getDate();
|
||||
|
|
|
|||
|
|
@ -67,7 +67,17 @@ export const de: TranslationTree = {
|
|||
empty: {
|
||||
noItemsScheduled: "Keine Elemente geplant",
|
||||
noItemsFound: "Keine Elemente gefunden",
|
||||
helpText: "Erstellen Sie Aufgaben mit Fälligkeits- oder Planungsdaten oder fügen Sie Notizen hinzu, um sie hier zu sehen.",
|
||||
},
|
||||
contextMenu: {
|
||||
showOverdueSection: "Überfälligkeitsbereich anzeigen",
|
||||
showNotes: "Notizen anzeigen",
|
||||
calendarSubscriptions: "Kalenderabonnements",
|
||||
},
|
||||
periods: {
|
||||
thisWeek: "Diese Woche",
|
||||
},
|
||||
tipPrefix: "Tipp: ",
|
||||
},
|
||||
taskList: {
|
||||
title: "Aufgaben",
|
||||
|
|
@ -77,13 +87,17 @@ export const de: TranslationTree = {
|
|||
},
|
||||
notes: {
|
||||
title: "Notizen",
|
||||
refreshButton: "Wird aktualisiert...",
|
||||
refreshButton: "Aktualisieren",
|
||||
refreshingButton: "Wird aktualisiert...",
|
||||
notices: {
|
||||
indexingDisabled: "Notizindexierung deaktiviert",
|
||||
},
|
||||
empty: {
|
||||
noNotesFound: "Keine Notizen gefunden",
|
||||
helpText: "Keine Notizen für das gewählte Datum gefunden. Versuchen Sie, ein anderes Datum in der Mini-Kalenderansicht auszuwählen oder erstellen Sie einige Notizen.",
|
||||
},
|
||||
loading: "Notizen werden geladen...",
|
||||
refreshButtonAriaLabel: "Notizenliste aktualisieren",
|
||||
},
|
||||
miniCalendar: {
|
||||
title: "Mini-Kalender",
|
||||
|
|
@ -96,6 +110,8 @@ export const de: TranslationTree = {
|
|||
},
|
||||
viewOptions: {
|
||||
calendarSubscriptions: "Kalenderabonnements",
|
||||
googleCalendars: "Google Kalender",
|
||||
microsoftCalendars: "Microsoft Kalender",
|
||||
timeEntries: "Zeiteinträge",
|
||||
timeblocks: "Zeitblöcke",
|
||||
scheduledDates: "Geplante Termine",
|
||||
|
|
@ -126,7 +142,36 @@ export const de: TranslationTree = {
|
|||
timeEntryDeleted: "Zeiteintrag gelöscht",
|
||||
deleteTimeEntryFailed: "Fehler beim Löschen des Zeiteintrags",
|
||||
},
|
||||
timeEntry: {
|
||||
timeEntryEditor: {
|
||||
title: "Zeiteinträge - {taskTitle}",
|
||||
addEntry: "Zeiteintrag hinzufügen",
|
||||
noEntries: "Noch keine Zeiteinträge",
|
||||
deleteEntry: "Eintrag löschen",
|
||||
startTime: "Startzeit",
|
||||
endTime: "Endzeit (leer lassen, falls noch laufend)",
|
||||
duration: "Dauer (Minuten)",
|
||||
durationDesc: "Berechnete Dauer überschreiben",
|
||||
durationPlaceholder: "Dauer in Minuten eingeben",
|
||||
description: "Beschreibung",
|
||||
descriptionPlaceholder: "Woran haben Sie gearbeitet?",
|
||||
calculatedDuration: "Berechnet: {minutes} Minuten",
|
||||
totalTime: "{hours}h {minutes}m gesamt",
|
||||
totalMinutes: "{minutes}m gesamt",
|
||||
saved: "Zeiteinträge gespeichert",
|
||||
saveFailed: "Speichern der Zeiteinträge fehlgeschlagen",
|
||||
openFailed: "Öffnen des Zeiteintrag-Editors fehlgeschlagen",
|
||||
noTasksWithEntries: "Keine Aufgaben mit Zeiteinträgen zum Bearbeiten",
|
||||
validation: {
|
||||
missingStartTime: "Startzeit ist erforderlich",
|
||||
endBeforeStart: "Endzeit muss nach der Startzeit liegen",
|
||||
},
|
||||
},
|
||||
timeTracking: {
|
||||
noTasksAvailable: "Keine Aufgaben zur Zeiterfassung verfügbar",
|
||||
started: "Zeiterfassung gestartet für: {taskTitle}",
|
||||
startFailed: "Starten der Zeiterfassung fehlgeschlagen",
|
||||
},
|
||||
timeEntry: {
|
||||
estimatedSuffix: "geschätzt",
|
||||
trackedSuffix: "erfasst",
|
||||
recurringPrefix: "Wiederkehrend: ",
|
||||
|
|
@ -156,6 +201,7 @@ export const de: TranslationTree = {
|
|||
year: "J",
|
||||
list: "L",
|
||||
customDays: "{count}T",
|
||||
listDays: "{count}d Liste",
|
||||
},
|
||||
settings: {
|
||||
groups: {
|
||||
|
|
@ -164,6 +210,8 @@ export const de: TranslationTree = {
|
|||
layout: "Layout",
|
||||
propertyBasedEvents: "Eigenschaftsbasierte Ereignisse",
|
||||
calendarSubscriptions: "Kalenderabonnements",
|
||||
googleCalendars: "Google Kalender",
|
||||
microsoftCalendars: "Microsoft Kalender",
|
||||
},
|
||||
dateNavigation: {
|
||||
navigateToDate: "Zum Datum navigieren",
|
||||
|
|
@ -188,6 +236,7 @@ export const de: TranslationTree = {
|
|||
layout: {
|
||||
calendarView: "Kalenderansicht",
|
||||
customDayCount: "Benutzerdefinierte Tagesanzahl",
|
||||
listDayCount: "Anzahl der Listentage",
|
||||
dayStartTime: "Tagesbeginn",
|
||||
dayStartTimePlaceholder: "HH:mm:ss (z.B. 08:00:00)",
|
||||
dayEndTime: "Tagesende",
|
||||
|
|
@ -226,6 +275,8 @@ export const de: TranslationTree = {
|
|||
newTask: "Neue Aufgabe",
|
||||
addCard: "+ Karte hinzufügen",
|
||||
noTasks: "Keine Aufgaben",
|
||||
uncategorized: "Nicht kategorisiert",
|
||||
noProject: "Kein Projekt",
|
||||
notices: {
|
||||
loadFailed: "Kanban-Board konnte nicht geladen werden",
|
||||
movedTask: 'Aufgabe verschoben zu "{0}"',
|
||||
|
|
@ -233,6 +284,7 @@ export const de: TranslationTree = {
|
|||
errors: {
|
||||
loadingBoard: "Fehler beim Laden des Boards.",
|
||||
},
|
||||
columnTitle: "Ohne Titel",
|
||||
},
|
||||
pomodoro: {
|
||||
title: "Pomodoro",
|
||||
|
|
@ -332,7 +384,38 @@ export const de: TranslationTree = {
|
|||
},
|
||||
filters: {
|
||||
minTime: "Min. Zeit (Minuten)",
|
||||
allTasks: "Alle Aufgaben",
|
||||
activeOnly: "Nur Aktive",
|
||||
completedOnly: "Nur Abgeschlossene",
|
||||
},
|
||||
refreshButton: "Aktualisieren",
|
||||
timeRanges: {
|
||||
allTime: "Gesamt",
|
||||
last7Days: "Letzte 7 Tage",
|
||||
last30Days: "Letzte 30 Tage",
|
||||
last90Days: "Letzte 90 Tage",
|
||||
customRange: "Benutzerdefinierter Bereich",
|
||||
},
|
||||
resetFiltersButton: "Filter zurücksetzen",
|
||||
dateRangeFrom: "Von",
|
||||
dateRangeTo: "Bis",
|
||||
noProject: "Kein Projekt",
|
||||
cards: {
|
||||
timeTrackedEstimated: "Zeit erfasst / geschätzt",
|
||||
totalTasks: "Aufgaben gesamt",
|
||||
completionRate: "Abschlussrate",
|
||||
activeProjects: "Aktive Projekte",
|
||||
avgTimePerTask: "Ø Zeit pro Aufgabe",
|
||||
},
|
||||
labels: {
|
||||
tasks: "Aufgaben",
|
||||
completed: "Abgeschlossen",
|
||||
projects: "Projekte",
|
||||
},
|
||||
noProjectData: "Keine Projektdaten verfügbar",
|
||||
notAvailable: "N/V",
|
||||
noTasks: "Keine Aufgaben gefunden",
|
||||
loading: "Lädt...",
|
||||
},
|
||||
releaseNotes: {
|
||||
title: "Was ist neu in TaskNotes {version}",
|
||||
|
|
@ -712,6 +795,19 @@ export const de: TranslationTree = {
|
|||
name: "Aufgabeneigenschaftswert",
|
||||
description: 'Der Wert, der eine Notiz als Aufgabe identifiziert (z.B. "task")',
|
||||
},
|
||||
hideIdentifyingTags: {
|
||||
name: "Identifikations-Tags in Aufgabenkarten ausblenden",
|
||||
description:
|
||||
"Wenn aktiviert, werden Tags, die mit dem Aufgabenidentifikations-Tag übereinstimmen (einschließlich hierarchischer Übereinstimmungen wie 'task/project'), in Aufgabenkartenanzeigen ausgeblendet",
|
||||
},
|
||||
},
|
||||
frontmatter: {
|
||||
header: "Frontmatter",
|
||||
description: "Konfigurieren Sie, wie Links in Frontmatter-Eigenschaften formatiert werden.",
|
||||
useMarkdownLinks: {
|
||||
name: "Markdown-Links in Frontmatter verwenden",
|
||||
description: "Markdown-Links ([text](path)) anstelle von Wikilinks ([[link]]) in Frontmatter-Eigenschaften generieren.\\n\\n⚠️ Erfordert das Plugin 'obsidian-frontmatter-markdown-links', um korrekt zu funktionieren.",
|
||||
},
|
||||
},
|
||||
folderManagement: {
|
||||
header: "Ordnerverwaltung",
|
||||
|
|
@ -911,6 +1007,11 @@ export const de: TranslationTree = {
|
|||
noKey: "kein-schlüssel",
|
||||
},
|
||||
deleteTooltip: "Feld löschen",
|
||||
autosuggestFilters: {
|
||||
header: "Autovervollständigungsfilter (Erweitert)",
|
||||
description:
|
||||
"Filtern Sie, welche Dateien in Autovervollständigungsvorschlägen für dieses Feld angezeigt werden",
|
||||
},
|
||||
},
|
||||
},
|
||||
appearance: {
|
||||
|
|
@ -1566,6 +1667,22 @@ export const de: TranslationTree = {
|
|||
},
|
||||
},
|
||||
modals: {
|
||||
taskSelector: {
|
||||
title: "Aufgabe auswählen",
|
||||
placeholder: "Tippen Sie, um nach Aufgaben zu suchen...",
|
||||
instructions: {
|
||||
navigate: "zum Navigieren",
|
||||
select: "zum Auswählen",
|
||||
dismiss: "zum Abbrechen",
|
||||
},
|
||||
notices: {
|
||||
noteNotFound: "Notiz \"{name}\" konnte nicht gefunden werden",
|
||||
},
|
||||
dueDate: {
|
||||
overdue: "Fällig: {date} (überfällig)",
|
||||
today: "Fällig: Heute",
|
||||
},
|
||||
},
|
||||
secretGenerated: {
|
||||
title: "Webhook-Secret generiert",
|
||||
description:
|
||||
|
|
@ -1656,6 +1773,30 @@ export const de: TranslationTree = {
|
|||
notices: {
|
||||
languageChanged: "Sprache geändert zu {language}.",
|
||||
exportTasksFailed: "Export der Aufgaben als ICS-Datei fehlgeschlagen",
|
||||
// ICS Event Info Modal notices
|
||||
icsNoteCreatedSuccess: "Notiz erfolgreich erstellt",
|
||||
icsCreationModalOpenFailed: "Erstellungsmodal konnte nicht geöffnet werden",
|
||||
icsNoteLinkSuccess: 'Notiz "{fileName}" mit ICS Event verknüpft',
|
||||
icsTaskCreatedSuccess: 'Aufgabe erstellt: {title}',
|
||||
icsRelatedItemsRefreshed: "Verknüpfte Notizen aktualisiert",
|
||||
icsFileNotFound: "Datei nicht gefunden oder ungültig",
|
||||
icsFileOpenFailed: "Datei konnte nicht geöffnet werden",
|
||||
// Timeblock Info Modal notices
|
||||
timeblockAttachmentExists: '"{fileName}" ist bereits angehängt',
|
||||
timeblockAttachmentAdded: '"{fileName}" als Anhang hinzugefügt',
|
||||
timeblockAttachmentRemoved: '"{fileName}" aus Anhängen entfernt',
|
||||
timeblockFileTypeNotSupported: '"{fileName}" kann nicht geöffnet werden - Dateityp nicht unterstützt',
|
||||
timeblockTitleRequired: "Bitte geben Sie einen Titel für den Timeblock ein",
|
||||
timeblockUpdatedSuccess: 'Timeblock "{title}" erfolgreich aktualisiert',
|
||||
timeblockUpdateFailed: "Timeblock konnte nicht aktualisiert werden. Prüfen Sie die Konsole für Details.",
|
||||
timeblockDeletedSuccess: 'Timeblock "{title}" erfolgreich gelöscht',
|
||||
timeblockDeleteFailed: "Timeblock konnte nicht gelöscht werden. Prüfen Sie die Konsole für Details.",
|
||||
// Timeblock Creation Modal notices
|
||||
timeblockRequiredFieldsMissing: "Bitte füllen Sie alle erforderlichen Felder aus",
|
||||
// Agenda View notices
|
||||
agendaLoadingFailed: "Fehler beim Laden der Agenda. Bitte versuchen Sie, zu aktualisieren.",
|
||||
// Stats View notices
|
||||
statsLoadingFailed: "Fehler beim Laden der Projektdetails.",
|
||||
},
|
||||
commands: {
|
||||
openCalendarView: "Mini-Kalenderansicht öffnen",
|
||||
|
|
@ -1680,8 +1821,126 @@ export const de: TranslationTree = {
|
|||
refreshCache: "Cache aktualisieren",
|
||||
exportAllTasksIcs: "Alle Aufgaben als ICS-Datei exportieren",
|
||||
viewReleaseNotes: "Versionshinweise anzeigen",
|
||||
startTimeTrackingWithSelector: "Zeiterfassung starten (Aufgabe auswählen)",
|
||||
editTimeEntries: "Zeiteinträge bearbeiten (Aufgabe auswählen)",
|
||||
},
|
||||
modals: {
|
||||
deviceCode: {
|
||||
title: "Google Calendar Autorisierung",
|
||||
instructions: {
|
||||
intro: "Um Ihren Google Calendar zu verbinden, folgen Sie bitte diesen Schritten:",
|
||||
},
|
||||
steps: {
|
||||
open: "Öffnen Sie",
|
||||
inBrowser: "in Ihrem Browser",
|
||||
enterCode: "Geben Sie diesen Code ein, wenn Sie dazu aufgefordert werden:",
|
||||
signIn: "Melden Sie sich mit Ihrem Google-Konto an und gewähren Sie Zugriff",
|
||||
returnToObsidian: "Kehren Sie zu Obsidian zurück (dieses Fenster schließt sich automatisch)",
|
||||
},
|
||||
codeLabel: "Ihr Code:",
|
||||
copyCodeAriaLabel: "Code kopieren",
|
||||
waitingForAuthorization: "Warte auf Autorisierung...",
|
||||
openBrowserButton: "Browser öffnen",
|
||||
cancelButton: "Abbrechen",
|
||||
expiresMinutesSeconds: "Code läuft ab in {minutes}m {seconds}s",
|
||||
expiresSeconds: "Code läuft ab in {seconds}s",
|
||||
},
|
||||
icsEventInfo: {
|
||||
calendarEventHeading: "Kalenderereignis",
|
||||
titleLabel: "Titel",
|
||||
calendarLabel: "Kalender",
|
||||
dateTimeLabel: "Datum & Uhrzeit",
|
||||
locationLabel: "Ort",
|
||||
descriptionLabel: "Beschreibung",
|
||||
urlLabel: "URL",
|
||||
relatedNotesHeading: "Verknüpfte Notizen & Aufgaben",
|
||||
noRelatedItems: "Keine verknüpften Notizen oder Aufgaben für dieses Ereignis gefunden.",
|
||||
typeTask: "Aufgabe",
|
||||
typeNote: "Notiz",
|
||||
actionsHeading: "Aktionen",
|
||||
createFromEventLabel: "Aus Ereignis erstellen",
|
||||
createFromEventDesc: "Eine neue Notiz oder Aufgabe aus diesem Kalenderereignis erstellen",
|
||||
linkExistingLabel: "Vorhandene verknüpfen",
|
||||
linkExistingDesc: "Eine vorhandene Notiz mit diesem Kalenderereignis verknüpfen",
|
||||
},
|
||||
timeblockInfo: {
|
||||
editHeading: "Timeblock bearbeiten",
|
||||
dateTimeLabel: "Datum & Uhrzeit: ",
|
||||
titleLabel: "Titel",
|
||||
titleDesc: "Titel für Ihren Timeblock",
|
||||
titlePlaceholder: "z.B. Deep Work Session",
|
||||
descriptionLabel: "Beschreibung",
|
||||
descriptionDesc: "Optionale Beschreibung für den Timeblock",
|
||||
descriptionPlaceholder: "Fokus auf neue Features, keine Unterbrechungen",
|
||||
colorLabel: "Farbe",
|
||||
colorDesc: "Optionale Farbe für den Timeblock",
|
||||
colorPlaceholder: "#3b82f6",
|
||||
attachmentsLabel: "Anhänge",
|
||||
attachmentsDesc: "Dateien oder Notizen, die mit diesem Timeblock verknüpft sind",
|
||||
addAttachmentButton: "Anhang hinzufügen",
|
||||
addAttachmentTooltip: "Datei oder Notiz mit unscharfer Suche auswählen",
|
||||
deleteButton: "Timeblock löschen",
|
||||
saveButton: "Änderungen speichern",
|
||||
deleteConfirmationTitle: "Timeblock löschen",
|
||||
},
|
||||
timeblockCreation: {
|
||||
heading: "Timeblock erstellen",
|
||||
dateLabel: "Datum: ",
|
||||
titleLabel: "Titel",
|
||||
titleDesc: "Titel für Ihren Timeblock",
|
||||
titlePlaceholder: "z.B. Deep Work Session",
|
||||
startTimeLabel: "Startzeit",
|
||||
startTimeDesc: "Wann der Timeblock beginnt",
|
||||
startTimePlaceholder: "09:00",
|
||||
endTimeLabel: "Endzeit",
|
||||
endTimeDesc: "Wann der Timeblock endet",
|
||||
endTimePlaceholder: "11:00",
|
||||
descriptionLabel: "Beschreibung",
|
||||
descriptionDesc: "Optionale Beschreibung für den Timeblock",
|
||||
descriptionPlaceholder: "Fokus auf neue Features, keine Unterbrechungen",
|
||||
colorLabel: "Farbe",
|
||||
colorDesc: "Optionale Farbe für den Timeblock",
|
||||
colorPlaceholder: "#3b82f6",
|
||||
attachmentsLabel: "Anhänge",
|
||||
attachmentsDesc: "Dateien oder Notizen, die mit diesem Timeblock verknüpft werden sollen",
|
||||
addAttachmentButton: "Anhang hinzufügen",
|
||||
addAttachmentTooltip: "Datei oder Notiz mit unscharfer Suche auswählen",
|
||||
createButton: "Timeblock erstellen",
|
||||
},
|
||||
icsNoteCreation: {
|
||||
heading: "Aus ICS Event erstellen",
|
||||
titleLabel: "Titel",
|
||||
titleDesc: "Titel für den neuen Inhalt",
|
||||
folderLabel: "Ordner",
|
||||
folderDesc: "Zielordner (leer lassen für Vault-Wurzel)",
|
||||
folderPlaceholder: "ordner/unterordner",
|
||||
createButton: "Erstellen",
|
||||
startLabel: "Start: ",
|
||||
endLabel: "Ende: ",
|
||||
locationLabel: "Ort: ",
|
||||
calendarLabel: "Kalender: ",
|
||||
useTemplateLabel: "Vorlage verwenden",
|
||||
useTemplateDesc: "Eine Vorlage beim Erstellen des Inhalts anwenden",
|
||||
templatePathLabel: "Vorlagenpfad",
|
||||
templatePathDesc: "Pfad zur Vorlagendatei",
|
||||
templatePathPlaceholder: "templates/ics-note-template.md",
|
||||
},
|
||||
taskSelector: {
|
||||
title: "Aufgabe auswählen",
|
||||
placeholder: "Tippen Sie, um nach Aufgaben zu suchen...",
|
||||
instructions: {
|
||||
navigate: "zum Navigieren",
|
||||
select: "zum Auswählen",
|
||||
dismiss: "zum Abbrechen",
|
||||
},
|
||||
notices: {
|
||||
noteNotFound: "Notiz \"{name}\" konnte nicht gefunden werden",
|
||||
},
|
||||
dueDate: {
|
||||
overdue: "Fällig: {date} (überfällig)",
|
||||
today: "Fällig: Heute",
|
||||
},
|
||||
},
|
||||
task: {
|
||||
titlePlaceholder: "Was muss getan werden?",
|
||||
titleLabel: "Titel",
|
||||
|
|
@ -1786,6 +2045,7 @@ export const de: TranslationTree = {
|
|||
successShortened:
|
||||
'Aufgabe "{title}" erfolgreich erstellt (Dateiname wegen Länge gekürzt)',
|
||||
failure: "Aufgabe konnte nicht erstellt werden: {message}",
|
||||
blockingUnresolved: "Konnte nicht auflösen: {entries}",
|
||||
},
|
||||
},
|
||||
taskEdit: {
|
||||
|
|
@ -1810,6 +2070,8 @@ export const de: TranslationTree = {
|
|||
updateSuccess: 'Aufgabe "{title}" erfolgreich aktualisiert',
|
||||
updateFailure: "Aufgabe konnte nicht aktualisiert werden: {message}",
|
||||
fileMissing: "Aufgabendatei konnte nicht gefunden werden: {path}",
|
||||
dependenciesUpdateSuccess: "Abhängigkeiten aktualisiert",
|
||||
blockingUnresolved: "Konnte nicht auflösen: {entries}",
|
||||
openNoteFailure: "Aufgabennotiz konnte nicht geöffnet werden",
|
||||
archiveSuccess: "Aufgabe erfolgreich {action}",
|
||||
archiveFailure: "Aufgabe konnte nicht archiviert werden",
|
||||
|
|
@ -1923,6 +2185,41 @@ export const de: TranslationTree = {
|
|||
"Planungsdatum konnte nicht aktualisiert werden. Bitte versuche es erneut.",
|
||||
},
|
||||
},
|
||||
timeEntryEditor: {
|
||||
title: "Zeiteinträge - {taskTitle}",
|
||||
addEntry: "Zeiteintrag hinzufügen",
|
||||
noEntries: "Noch keine Zeiteinträge",
|
||||
deleteEntry: "Eintrag löschen",
|
||||
startTime: "Startzeit",
|
||||
endTime: "Endzeit (leer lassen, falls noch laufend)",
|
||||
duration: "Dauer (Minuten)",
|
||||
durationDesc: "Berechnete Dauer überschreiben",
|
||||
durationPlaceholder: "Dauer in Minuten eingeben",
|
||||
description: "Beschreibung",
|
||||
descriptionPlaceholder: "Woran haben Sie gearbeitet?",
|
||||
calculatedDuration: "Berechnet: {minutes} Minuten",
|
||||
totalTime: "{hours}h {minutes}m gesamt",
|
||||
totalMinutes: "{minutes}m gesamt",
|
||||
saved: "Zeiteinträge gespeichert",
|
||||
saveFailed: "Speichern der Zeiteinträge fehlgeschlagen",
|
||||
openFailed: "Öffnen des Zeiteintrag-Editors fehlgeschlagen",
|
||||
noTasksWithEntries: "Keine Aufgaben mit Zeiteinträgen zum Bearbeiten",
|
||||
validation: {
|
||||
missingStartTime: "Startzeit ist erforderlich",
|
||||
endBeforeStart: "Endzeit muss nach der Startzeit liegen",
|
||||
},
|
||||
},
|
||||
timeTracking: {
|
||||
noTasksAvailable: "Keine Aufgaben zur Zeiterfassung verfügbar",
|
||||
started: "Zeiterfassung gestartet für: {taskTitle}",
|
||||
startFailed: "Starten der Zeiterfassung fehlgeschlagen",
|
||||
},
|
||||
timeEntry: {
|
||||
mustHaveSpecificTime: "Zeiteinträge müssen spezifische Zeiten haben. Bitte wählen Sie einen Zeitbereich in der Wochen- oder Tagesansicht.",
|
||||
noTasksAvailable: "Keine Aufgaben zum Erstellen von Zeiteinträgen verfügbar",
|
||||
created: "Zeiteintrag erstellt für {taskTitle} ({duration} Minuten)",
|
||||
createFailed: "Erstellen des Zeiteintrags fehlgeschlagen",
|
||||
},
|
||||
},
|
||||
contextMenus: {
|
||||
task: {
|
||||
|
|
@ -2337,13 +2634,39 @@ export const de: TranslationTree = {
|
|||
dueDate: "Fälligkeitsdatum",
|
||||
scheduledDate: "Planungsdatum",
|
||||
tags: "Tags",
|
||||
completedDate: "Abschlussdatum",
|
||||
},
|
||||
subgroupLabel: "UNTERGRUPPE",
|
||||
notices: {
|
||||
propertiesMenuFailed: "Eigenschaftenmenü konnte nicht angezeigt werden",
|
||||
},
|
||||
},
|
||||
},
|
||||
components: {
|
||||
dateContextMenu: {
|
||||
weekdays: "Wochentage",
|
||||
clearDate: "Datum löschen",
|
||||
today: "Heute",
|
||||
tomorrow: "Morgen",
|
||||
thisWeekend: "Dieses Wochenende",
|
||||
nextWeek: "Nächste Woche",
|
||||
nextMonth: "Nächsten Monat",
|
||||
setDateTime: "Datum & Zeit setzen",
|
||||
dateLabel: "Datum",
|
||||
timeLabel: "Zeit (optional)",
|
||||
},
|
||||
subgroupMenuBuilder: {
|
||||
none: "Keine",
|
||||
status: "Status",
|
||||
priority: "Priorität",
|
||||
context: "Kontext",
|
||||
project: "Projekt",
|
||||
dueDate: "Fälligkeitsdatum",
|
||||
scheduledDate: "Planungsdatum",
|
||||
tags: "Tags",
|
||||
completedDate: "Abschlussdatum",
|
||||
subgroup: "UNTERGRUPPE",
|
||||
},
|
||||
propertyVisibilityDropdown: {
|
||||
coreProperties: "KERNEIGENSCHAFTEN",
|
||||
organization: "ORGANISATION",
|
||||
|
|
|
|||
|
|
@ -67,7 +67,17 @@ export const en: TranslationTree = {
|
|||
empty: {
|
||||
noItemsScheduled: "No items scheduled",
|
||||
noItemsFound: "No items found",
|
||||
helpText: "Create tasks with due or scheduled dates, or add notes to see them here.",
|
||||
},
|
||||
contextMenu: {
|
||||
showOverdueSection: "Show overdue section",
|
||||
showNotes: "Show notes",
|
||||
calendarSubscriptions: "Calendar subscriptions",
|
||||
},
|
||||
periods: {
|
||||
thisWeek: "This week",
|
||||
},
|
||||
tipPrefix: "Tip: ",
|
||||
},
|
||||
taskList: {
|
||||
title: "Tasks",
|
||||
|
|
@ -77,13 +87,17 @@ export const en: TranslationTree = {
|
|||
},
|
||||
notes: {
|
||||
title: "Notes",
|
||||
refreshButton: "Refreshing...",
|
||||
refreshButton: "Refresh",
|
||||
refreshingButton: "Refreshing...",
|
||||
notices: {
|
||||
indexingDisabled: "Note indexing disabled",
|
||||
},
|
||||
empty: {
|
||||
noNotesFound: "No notes found",
|
||||
helpText: "No notes found for the selected date. Try selecting a different date in the Mini Calendar view or create some notes.",
|
||||
},
|
||||
loading: "Loading notes...",
|
||||
refreshButtonAriaLabel: "Refresh notes list",
|
||||
},
|
||||
miniCalendar: {
|
||||
title: "Mini Calendar",
|
||||
|
|
@ -230,6 +244,8 @@ export const en: TranslationTree = {
|
|||
newTask: "New task",
|
||||
addCard: "+ Add a card",
|
||||
noTasks: "No tasks",
|
||||
uncategorized: "Uncategorized",
|
||||
noProject: "No Project",
|
||||
notices: {
|
||||
loadFailed: "Failed to load Kanban board",
|
||||
movedTask: 'Task moved to "{0}"',
|
||||
|
|
@ -237,6 +253,7 @@ export const en: TranslationTree = {
|
|||
errors: {
|
||||
loadingBoard: "Error loading board.",
|
||||
},
|
||||
columnTitle: "Untitled",
|
||||
},
|
||||
pomodoro: {
|
||||
title: "Pomodoro",
|
||||
|
|
@ -336,7 +353,38 @@ export const en: TranslationTree = {
|
|||
},
|
||||
filters: {
|
||||
minTime: "Min Time (minutes)",
|
||||
allTasks: "All Tasks",
|
||||
activeOnly: "Active Only",
|
||||
completedOnly: "Completed Only",
|
||||
},
|
||||
refreshButton: "Refresh",
|
||||
timeRanges: {
|
||||
allTime: "All Time",
|
||||
last7Days: "Last 7 Days",
|
||||
last30Days: "Last 30 Days",
|
||||
last90Days: "Last 90 Days",
|
||||
customRange: "Custom Range",
|
||||
},
|
||||
resetFiltersButton: "Reset Filters",
|
||||
dateRangeFrom: "From",
|
||||
dateRangeTo: "To",
|
||||
noProject: "No Project",
|
||||
cards: {
|
||||
timeTrackedEstimated: "Time Tracked / Estimated",
|
||||
totalTasks: "Total Tasks",
|
||||
completionRate: "Completion Rate",
|
||||
activeProjects: "Active Projects",
|
||||
avgTimePerTask: "Avg Time per Task",
|
||||
},
|
||||
labels: {
|
||||
tasks: "Tasks",
|
||||
completed: "Completed",
|
||||
projects: "Projects",
|
||||
},
|
||||
noProjectData: "No project data available",
|
||||
notAvailable: "N/A",
|
||||
noTasks: "No tasks found",
|
||||
loading: "Loading...",
|
||||
},
|
||||
releaseNotes: {
|
||||
title: "What's new in TaskNotes {version}",
|
||||
|
|
@ -1636,6 +1684,30 @@ export const en: TranslationTree = {
|
|||
notices: {
|
||||
languageChanged: "Language changed to {language}.",
|
||||
exportTasksFailed: "Failed to export tasks as ICS file",
|
||||
// ICS Event Info Modal notices
|
||||
icsNoteCreatedSuccess: "Note created successfully",
|
||||
icsCreationModalOpenFailed: "Failed to open creation modal",
|
||||
icsNoteLinkSuccess: 'Linked note "{fileName}" to ICS event',
|
||||
icsTaskCreatedSuccess: 'Task created: {title}',
|
||||
icsRelatedItemsRefreshed: "Related notes refreshed",
|
||||
icsFileNotFound: "File not found or invalid",
|
||||
icsFileOpenFailed: "Failed to open file",
|
||||
// Timeblock Info Modal notices
|
||||
timeblockAttachmentExists: '"{fileName}" is already attached',
|
||||
timeblockAttachmentAdded: 'Added "{fileName}" as attachment',
|
||||
timeblockAttachmentRemoved: 'Removed "{fileName}" from attachments',
|
||||
timeblockFileTypeNotSupported: 'Cannot open "{fileName}" - file type not supported',
|
||||
timeblockTitleRequired: "Please enter a title for the timeblock",
|
||||
timeblockUpdatedSuccess: 'Timeblock "{title}" updated successfully',
|
||||
timeblockUpdateFailed: "Failed to update timeblock. Check console for details.",
|
||||
timeblockDeletedSuccess: 'Timeblock "{title}" deleted successfully',
|
||||
timeblockDeleteFailed: "Failed to delete timeblock. Check console for details.",
|
||||
// Timeblock Creation Modal notices
|
||||
timeblockRequiredFieldsMissing: "Please fill in all required fields",
|
||||
// Agenda View notices
|
||||
agendaLoadingFailed: "Error loading agenda. Please try refreshing.",
|
||||
// Stats View notices
|
||||
statsLoadingFailed: "Error loading project details.",
|
||||
},
|
||||
commands: {
|
||||
openCalendarView: "Open mini calendar view",
|
||||
|
|
@ -1664,7 +1736,107 @@ export const en: TranslationTree = {
|
|||
editTimeEntries: "Edit time entries (select task)",
|
||||
},
|
||||
modals: {
|
||||
task: {
|
||||
deviceCode: {
|
||||
title: "Google Calendar Authorization",
|
||||
instructions: {
|
||||
intro: "To connect your Google Calendar, please follow these steps:",
|
||||
},
|
||||
steps: {
|
||||
open: "Open",
|
||||
inBrowser: "in your browser",
|
||||
enterCode: "Enter this code when prompted:",
|
||||
signIn: "Sign in with your Google account and grant access",
|
||||
returnToObsidian: "Return to Obsidian (this window will close automatically)",
|
||||
},
|
||||
codeLabel: "Your Code:",
|
||||
copyCodeAriaLabel: "Copy code",
|
||||
waitingForAuthorization: "Waiting for authorization...",
|
||||
openBrowserButton: "Open Browser",
|
||||
cancelButton: "Cancel",
|
||||
expiresMinutesSeconds: "Code expires in {minutes}m {seconds}s",
|
||||
expiresSeconds: "Code expires in {seconds}s",
|
||||
},
|
||||
icsEventInfo: {
|
||||
calendarEventHeading: "Calendar Event",
|
||||
titleLabel: "Title",
|
||||
calendarLabel: "Calendar",
|
||||
dateTimeLabel: "Date & Time",
|
||||
locationLabel: "Location",
|
||||
descriptionLabel: "Description",
|
||||
urlLabel: "URL",
|
||||
relatedNotesHeading: "Related Notes & Tasks",
|
||||
noRelatedItems: "No related notes or tasks found for this event.",
|
||||
typeTask: "Task",
|
||||
typeNote: "Note",
|
||||
actionsHeading: "Actions",
|
||||
createFromEventLabel: "Create from Event",
|
||||
createFromEventDesc: "Create a new note or task from this calendar event",
|
||||
linkExistingLabel: "Link Existing",
|
||||
linkExistingDesc: "Link an existing note to this calendar event",
|
||||
},
|
||||
timeblockInfo: {
|
||||
editHeading: "Edit Timeblock",
|
||||
dateTimeLabel: "Date & Time: ",
|
||||
titleLabel: "Title",
|
||||
titleDesc: "Title for your timeblock",
|
||||
titlePlaceholder: "e.g., Deep work session",
|
||||
descriptionLabel: "Description",
|
||||
descriptionDesc: "Optional description for the timeblock",
|
||||
descriptionPlaceholder: "Focus on new features, no interruptions",
|
||||
colorLabel: "Color",
|
||||
colorDesc: "Optional color for the timeblock",
|
||||
colorPlaceholder: "#3b82f6",
|
||||
attachmentsLabel: "Attachments",
|
||||
attachmentsDesc: "Files or notes linked to this timeblock",
|
||||
addAttachmentButton: "Add Attachment",
|
||||
addAttachmentTooltip: "Select a file or note using fuzzy search",
|
||||
deleteButton: "Delete Timeblock",
|
||||
saveButton: "Save Changes",
|
||||
deleteConfirmationTitle: "Delete Timeblock",
|
||||
},
|
||||
timeblockCreation: {
|
||||
heading: "Create timeblock",
|
||||
dateLabel: "Date: ",
|
||||
titleLabel: "Title",
|
||||
titleDesc: "Title for your timeblock",
|
||||
titlePlaceholder: "e.g., Deep work session",
|
||||
startTimeLabel: "Start time",
|
||||
startTimeDesc: "When the timeblock starts",
|
||||
startTimePlaceholder: "09:00",
|
||||
endTimeLabel: "End time",
|
||||
endTimeDesc: "When the timeblock ends",
|
||||
endTimePlaceholder: "11:00",
|
||||
descriptionLabel: "Description",
|
||||
descriptionDesc: "Optional description for the timeblock",
|
||||
descriptionPlaceholder: "Focus on new features, no interruptions",
|
||||
colorLabel: "Color",
|
||||
colorDesc: "Optional color for the timeblock",
|
||||
colorPlaceholder: "#3b82f6",
|
||||
attachmentsLabel: "Attachments",
|
||||
attachmentsDesc: "Files or notes to link to this timeblock",
|
||||
addAttachmentButton: "Add Attachment",
|
||||
addAttachmentTooltip: "Select a file or note using fuzzy search",
|
||||
createButton: "Create timeblock",
|
||||
},
|
||||
icsNoteCreation: {
|
||||
heading: "Create from ICS Event",
|
||||
titleLabel: "Title",
|
||||
titleDesc: "Title for the new content",
|
||||
folderLabel: "Folder",
|
||||
folderDesc: "Destination folder (leave empty for vault root)",
|
||||
folderPlaceholder: "folder/subfolder",
|
||||
createButton: "Create",
|
||||
startLabel: "Start: ",
|
||||
endLabel: "End: ",
|
||||
locationLabel: "Location: ",
|
||||
calendarLabel: "Calendar: ",
|
||||
useTemplateLabel: "Use Template",
|
||||
useTemplateDesc: "Apply a template when creating the content",
|
||||
templatePathLabel: "Template Path",
|
||||
templatePathDesc: "Path to the template file",
|
||||
templatePathPlaceholder: "templates/ics-note-template.md",
|
||||
},
|
||||
task: {
|
||||
titlePlaceholder: "What needs to be done?",
|
||||
titleLabel: "Title",
|
||||
titleDetailedPlaceholder: "Task title...",
|
||||
|
|
@ -2360,12 +2532,37 @@ export const en: TranslationTree = {
|
|||
tags: "Tags",
|
||||
completedDate: "Completed Date",
|
||||
},
|
||||
subgroupLabel: "SUBGROUP",
|
||||
notices: {
|
||||
propertiesMenuFailed: "Failed to show properties menu",
|
||||
},
|
||||
},
|
||||
},
|
||||
components: {
|
||||
dateContextMenu: {
|
||||
weekdays: "Weekdays",
|
||||
clearDate: "Clear date",
|
||||
today: "Today",
|
||||
tomorrow: "Tomorrow",
|
||||
thisWeekend: "This weekend",
|
||||
nextWeek: "Next week",
|
||||
nextMonth: "Next month",
|
||||
setDateTime: "Set date & time",
|
||||
dateLabel: "Date",
|
||||
timeLabel: "Time (optional)",
|
||||
},
|
||||
subgroupMenuBuilder: {
|
||||
none: "None",
|
||||
status: "Status",
|
||||
priority: "Priority",
|
||||
context: "Context",
|
||||
project: "Project",
|
||||
dueDate: "Due Date",
|
||||
scheduledDate: "Scheduled Date",
|
||||
tags: "Tags",
|
||||
completedDate: "Completed Date",
|
||||
subgroup: "SUBGROUP",
|
||||
},
|
||||
propertyVisibilityDropdown: {
|
||||
coreProperties: "CORE PROPERTIES",
|
||||
organization: "ORGANIZATION",
|
||||
|
|
|
|||
|
|
@ -67,7 +67,17 @@ export const es: TranslationTree = {
|
|||
empty: {
|
||||
noItemsScheduled: "No hay elementos programados",
|
||||
noItemsFound: "No se encontraron elementos",
|
||||
helpText: "Cree tareas con fechas de vencimiento o programadas, o agregue notas para verlas aquí.",
|
||||
},
|
||||
contextMenu: {
|
||||
showOverdueSection: "Mostrar sección de vencidos",
|
||||
showNotes: "Mostrar notas",
|
||||
calendarSubscriptions: "Suscripciones de calendario",
|
||||
},
|
||||
periods: {
|
||||
thisWeek: "Esta semana",
|
||||
},
|
||||
tipPrefix: "Consejo: ",
|
||||
},
|
||||
taskList: {
|
||||
title: "Tareas",
|
||||
|
|
@ -77,13 +87,17 @@ export const es: TranslationTree = {
|
|||
},
|
||||
notes: {
|
||||
title: "Notas",
|
||||
refreshButton: "Actualizando...",
|
||||
refreshButton: "Actualizar",
|
||||
refreshingButton: "Actualizando...",
|
||||
notices: {
|
||||
indexingDisabled: "Indexación de notas deshabilitada",
|
||||
},
|
||||
empty: {
|
||||
noNotesFound: "No se encontraron notas",
|
||||
helpText: "No se encontraron notas para la fecha seleccionada. Intente seleccionar una fecha diferente en la vista de Mini Calendario o cree algunas notas.",
|
||||
},
|
||||
loading: "Cargando notas...",
|
||||
refreshButtonAriaLabel: "Actualizar lista de notas",
|
||||
},
|
||||
miniCalendar: {
|
||||
title: "Mini Calendario",
|
||||
|
|
@ -156,6 +170,7 @@ export const es: TranslationTree = {
|
|||
year: "A",
|
||||
list: "L",
|
||||
customDays: "{count}D",
|
||||
listDays: "{count}d Lista",
|
||||
},
|
||||
settings: {
|
||||
groups: {
|
||||
|
|
@ -164,6 +179,8 @@ export const es: TranslationTree = {
|
|||
layout: "Diseño",
|
||||
propertyBasedEvents: "Eventos basados en propiedades",
|
||||
calendarSubscriptions: "Suscripciones de calendario",
|
||||
googleCalendars: "Google Calendars",
|
||||
microsoftCalendars: "Microsoft Calendars",
|
||||
},
|
||||
dateNavigation: {
|
||||
navigateToDate: "Navegar a la fecha",
|
||||
|
|
@ -188,6 +205,7 @@ export const es: TranslationTree = {
|
|||
layout: {
|
||||
calendarView: "Vista del calendario",
|
||||
customDayCount: "Número de días personalizado",
|
||||
listDayCount: "Recuento de días de lista",
|
||||
dayStartTime: "Hora de inicio del día",
|
||||
dayStartTimePlaceholder: "HH:mm:ss (ej. 08:00:00)",
|
||||
dayEndTime: "Hora de fin del día",
|
||||
|
|
@ -226,6 +244,8 @@ export const es: TranslationTree = {
|
|||
newTask: "Nueva tarea",
|
||||
addCard: "+ Agregar tarjeta",
|
||||
noTasks: "Sin tareas",
|
||||
uncategorized: "Sin categorizar",
|
||||
noProject: "Sin proyecto",
|
||||
notices: {
|
||||
loadFailed: "Error al cargar el tablero Kanban",
|
||||
movedTask: 'Tarea movida a "{0}"',
|
||||
|
|
@ -233,6 +253,7 @@ export const es: TranslationTree = {
|
|||
errors: {
|
||||
loadingBoard: "Error al cargar el tablero.",
|
||||
},
|
||||
columnTitle: "Sin título",
|
||||
},
|
||||
pomodoro: {
|
||||
title: "Pomodoro",
|
||||
|
|
@ -332,7 +353,38 @@ export const es: TranslationTree = {
|
|||
},
|
||||
filters: {
|
||||
minTime: "Tiempo mínimo (minutos)",
|
||||
allTasks: "Todas las tareas",
|
||||
activeOnly: "Solo activas",
|
||||
completedOnly: "Solo completadas",
|
||||
},
|
||||
refreshButton: "Actualizar",
|
||||
timeRanges: {
|
||||
allTime: "Todo el tiempo",
|
||||
last7Days: "Últimos 7 días",
|
||||
last30Days: "Últimos 30 días",
|
||||
last90Days: "Últimos 90 días",
|
||||
customRange: "Rango personalizado",
|
||||
},
|
||||
resetFiltersButton: "Restablecer filtros",
|
||||
dateRangeFrom: "Desde",
|
||||
dateRangeTo: "Hasta",
|
||||
noProject: "Sin proyecto",
|
||||
cards: {
|
||||
timeTrackedEstimated: "Tiempo registrado / estimado",
|
||||
totalTasks: "Total de tareas",
|
||||
completionRate: "Tasa de completado",
|
||||
activeProjects: "Proyectos activos",
|
||||
avgTimePerTask: "Tiempo promedio por tarea",
|
||||
},
|
||||
labels: {
|
||||
tasks: "Tareas",
|
||||
completed: "Completadas",
|
||||
projects: "Proyectos",
|
||||
},
|
||||
noProjectData: "No hay datos de proyectos disponibles",
|
||||
notAvailable: "N/D",
|
||||
noTasks: "No se encontraron tareas",
|
||||
loading: "Cargando...",
|
||||
},
|
||||
releaseNotes: {
|
||||
title: "Novedades en TaskNotes {version}",
|
||||
|
|
@ -716,6 +768,20 @@ export const es: TranslationTree = {
|
|||
name: "Valor de propiedad de tarea",
|
||||
description: 'El valor que identifica una nota como tarea (ej. "tarea")',
|
||||
},
|
||||
|
||||
hideIdentifyingTags: {
|
||||
name: "Ocultar etiquetas de identificación en tarjetas de tarea",
|
||||
description:
|
||||
"Cuando está habilitado, las etiquetas que coinciden con la etiqueta de identificación de tarea (incluidas las coincidencias jerárquicas como 'task/project') se ocultarán de las pantallas de tarjetas de tarea",
|
||||
},
|
||||
},
|
||||
frontmatter: {
|
||||
header: "Frontmatter",
|
||||
description: "Configure cómo se formatean los enlaces en las propiedades frontmatter.",
|
||||
useMarkdownLinks: {
|
||||
name: "Usar enlaces markdown en frontmatter",
|
||||
description: "Generar enlaces markdown ([texto](ruta)) en lugar de wikilinks ([[enlace]]) en las propiedades frontmatter.\n\n⚠️ Requiere el plugin 'obsidian-frontmatter-markdown-links' para funcionar correctamente.",
|
||||
},
|
||||
},
|
||||
folderManagement: {
|
||||
header: "Gestión de carpetas",
|
||||
|
|
@ -915,6 +981,11 @@ export const es: TranslationTree = {
|
|||
noKey: "sin-clave",
|
||||
},
|
||||
deleteTooltip: "Eliminar campo",
|
||||
autosuggestFilters: {
|
||||
header: "Filtros de auto-sugerencia (Avanzado)",
|
||||
description:
|
||||
"Filtrar qué archivos aparecen en las sugerencias de autocompletar para este campo",
|
||||
},
|
||||
},
|
||||
},
|
||||
appearance: {
|
||||
|
|
@ -1666,6 +1737,30 @@ export const es: TranslationTree = {
|
|||
notices: {
|
||||
languageChanged: "Idioma cambiado a {language}.",
|
||||
exportTasksFailed: "Error al exportar tareas como archivo ICS",
|
||||
// ICS Event Info Modal notices
|
||||
icsNoteCreatedSuccess: "Nota creada exitosamente",
|
||||
icsCreationModalOpenFailed: "Error al abrir modal de creación",
|
||||
icsNoteLinkSuccess: 'Nota "{fileName}" vinculada al evento ICS',
|
||||
icsTaskCreatedSuccess: 'Tarea creada: {title}',
|
||||
icsRelatedItemsRefreshed: "Elementos relacionados actualizados",
|
||||
icsFileNotFound: "Archivo no encontrado o inválido",
|
||||
icsFileOpenFailed: "Error al abrir el archivo",
|
||||
// Timeblock Info Modal notices
|
||||
timeblockAttachmentExists: '"{fileName}" ya está adjunto',
|
||||
timeblockAttachmentAdded: '"{fileName}" agregado como adjunto',
|
||||
timeblockAttachmentRemoved: '"{fileName}" eliminado de los adjuntos',
|
||||
timeblockFileTypeNotSupported: 'No se puede abrir "{fileName}" - tipo de archivo no compatible',
|
||||
timeblockTitleRequired: "Por favor ingrese un título para el bloque de tiempo",
|
||||
timeblockUpdatedSuccess: 'Bloque de tiempo "{title}" actualizado exitosamente',
|
||||
timeblockUpdateFailed: "Error al actualizar el bloque de tiempo. Consulte la consola para más detalles.",
|
||||
timeblockDeletedSuccess: 'Bloque de tiempo "{title}" eliminado exitosamente',
|
||||
timeblockDeleteFailed: "Error al eliminar el bloque de tiempo. Consulte la consola para más detalles.",
|
||||
// Timeblock Creation Modal notices
|
||||
timeblockRequiredFieldsMissing: "Por favor complete todos los campos obligatorios",
|
||||
// Agenda View notices
|
||||
agendaLoadingFailed: "Error al cargar la agenda. Por favor intente actualizar.",
|
||||
// Stats View notices
|
||||
statsLoadingFailed: "Error al cargar los detalles del proyecto.",
|
||||
},
|
||||
commands: {
|
||||
openCalendarView: "Abrir vista de mini calendario",
|
||||
|
|
@ -1689,9 +1784,127 @@ export const es: TranslationTree = {
|
|||
pauseResumePomodoro: "Pausar/reanudar temporizador pomodoro",
|
||||
refreshCache: "Actualizar caché",
|
||||
exportAllTasksIcs: "Exportar todas las tareas como archivo ICS",
|
||||
viewReleaseNotes: "Ver notas de versión",
|
||||
viewReleaseNotes: "Ver notas de la versión",
|
||||
startTimeTrackingWithSelector: "Iniciar seguimiento de tiempo (seleccionar tarea)",
|
||||
editTimeEntries: "Editar entradas de tiempo (seleccionar tarea)",
|
||||
},
|
||||
modals: {
|
||||
deviceCode: {
|
||||
title: "Autorización de Google Calendar",
|
||||
instructions: {
|
||||
intro: "Para conectar su Google Calendar, siga estos pasos:",
|
||||
},
|
||||
steps: {
|
||||
open: "Abrir",
|
||||
inBrowser: "en su navegador",
|
||||
enterCode: "Ingrese este código cuando se le solicite:",
|
||||
signIn: "Inicie sesión con su cuenta de Google y otorgue acceso",
|
||||
returnToObsidian: "Vuelva a Obsidian (esta ventana se cerrará automáticamente)",
|
||||
},
|
||||
codeLabel: "Su código:",
|
||||
copyCodeAriaLabel: "Copiar código",
|
||||
waitingForAuthorization: "Esperando autorización...",
|
||||
openBrowserButton: "Abrir navegador",
|
||||
cancelButton: "Cancelar",
|
||||
expiresMinutesSeconds: "El código expira en {minutes}m {seconds}s",
|
||||
expiresSeconds: "El código expira en {seconds}s",
|
||||
},
|
||||
icsEventInfo: {
|
||||
calendarEventHeading: "Evento de calendario",
|
||||
titleLabel: "Título",
|
||||
calendarLabel: "Calendario",
|
||||
dateTimeLabel: "Fecha y hora",
|
||||
locationLabel: "Ubicación",
|
||||
descriptionLabel: "Descripción",
|
||||
urlLabel: "URL",
|
||||
relatedNotesHeading: "Notas y tareas relacionadas",
|
||||
noRelatedItems: "No se encontraron notas o tareas relacionadas para este evento.",
|
||||
typeTask: "Tarea",
|
||||
typeNote: "Nota",
|
||||
actionsHeading: "Acciones",
|
||||
createFromEventLabel: "Crear desde evento",
|
||||
createFromEventDesc: "Crear una nueva nota o tarea desde este evento de calendario",
|
||||
linkExistingLabel: "Vincular existente",
|
||||
linkExistingDesc: "Vincular una nota existente a este evento de calendario",
|
||||
},
|
||||
timeblockInfo: {
|
||||
editHeading: "Editar bloque de tiempo",
|
||||
dateTimeLabel: "Fecha y hora: ",
|
||||
titleLabel: "Título",
|
||||
titleDesc: "Título para su bloque de tiempo",
|
||||
titlePlaceholder: "ej. Sesión de trabajo profundo",
|
||||
descriptionLabel: "Descripción",
|
||||
descriptionDesc: "Descripción opcional para el bloque de tiempo",
|
||||
descriptionPlaceholder: "Enfoque en nuevas funciones, sin interrupciones",
|
||||
colorLabel: "Color",
|
||||
colorDesc: "Color opcional para el bloque de tiempo",
|
||||
colorPlaceholder: "#3b82f6",
|
||||
attachmentsLabel: "Adjuntos",
|
||||
attachmentsDesc: "Archivos o notas vinculados a este bloque de tiempo",
|
||||
addAttachmentButton: "Agregar adjunto",
|
||||
addAttachmentTooltip: "Seleccionar un archivo o nota usando búsqueda difusa",
|
||||
deleteButton: "Eliminar bloque de tiempo",
|
||||
saveButton: "Guardar cambios",
|
||||
deleteConfirmationTitle: "Eliminar bloque de tiempo",
|
||||
},
|
||||
timeblockCreation: {
|
||||
heading: "Crear bloque de tiempo",
|
||||
dateLabel: "Fecha: ",
|
||||
titleLabel: "Título",
|
||||
titleDesc: "Título para su bloque de tiempo",
|
||||
titlePlaceholder: "ej. Sesión de trabajo profundo",
|
||||
startTimeLabel: "Hora de inicio",
|
||||
startTimeDesc: "Cuándo comienza el bloque de tiempo",
|
||||
startTimePlaceholder: "09:00",
|
||||
endTimeLabel: "Hora de fin",
|
||||
endTimeDesc: "Cuándo termina el bloque de tiempo",
|
||||
endTimePlaceholder: "11:00",
|
||||
descriptionLabel: "Descripción",
|
||||
descriptionDesc: "Descripción opcional para el bloque de tiempo",
|
||||
descriptionPlaceholder: "Enfoque en nuevas funciones, sin interrupciones",
|
||||
colorLabel: "Color",
|
||||
colorDesc: "Color opcional para el bloque de tiempo",
|
||||
colorPlaceholder: "#3b82f6",
|
||||
attachmentsLabel: "Adjuntos",
|
||||
attachmentsDesc: "Archivos o notas para vincular a este bloque de tiempo",
|
||||
addAttachmentButton: "Agregar adjunto",
|
||||
addAttachmentTooltip: "Seleccionar un archivo o nota usando búsqueda difusa",
|
||||
createButton: "Crear bloque de tiempo",
|
||||
},
|
||||
icsNoteCreation: {
|
||||
heading: "Crear desde evento ICS",
|
||||
titleLabel: "Título",
|
||||
titleDesc: "Título para el nuevo contenido",
|
||||
folderLabel: "Carpeta",
|
||||
folderDesc: "Carpeta de destino (dejar vacío para la raíz del vault)",
|
||||
folderPlaceholder: "carpeta/subcarpeta",
|
||||
createButton: "Crear",
|
||||
startLabel: "Inicio: ",
|
||||
endLabel: "Fin: ",
|
||||
locationLabel: "Ubicación: ",
|
||||
calendarLabel: "Calendario: ",
|
||||
useTemplateLabel: "Usar plantilla",
|
||||
useTemplateDesc: "Aplicar una plantilla al crear el contenido",
|
||||
templatePathLabel: "Ruta de plantilla",
|
||||
templatePathDesc: "Ruta al archivo de plantilla",
|
||||
templatePathPlaceholder: "templates/ics-note-template.md",
|
||||
},
|
||||
taskSelector: {
|
||||
title: "Seleccionar tarea",
|
||||
placeholder: "Escribe para buscar tareas...",
|
||||
instructions: {
|
||||
navigate: "para navegar",
|
||||
select: "para seleccionar",
|
||||
dismiss: "para cancelar",
|
||||
},
|
||||
notices: {
|
||||
noteNotFound: "No se pudo encontrar la nota \"{name}\"",
|
||||
},
|
||||
dueDate: {
|
||||
overdue: "Vencimiento: {date} (vencido)",
|
||||
today: "Vencimiento: Hoy",
|
||||
},
|
||||
},
|
||||
task: {
|
||||
titlePlaceholder: "¿Qué necesita hacerse?",
|
||||
titleLabel: "Título",
|
||||
|
|
@ -1796,6 +2009,7 @@ export const es: TranslationTree = {
|
|||
successShortened:
|
||||
'Tarea "{title}" creada exitosamente (nombre de archivo acortado por longitud)',
|
||||
failure: "Error al crear tarea: {message}",
|
||||
blockingUnresolved: "No se pudo resolver: {entries}",
|
||||
},
|
||||
},
|
||||
taskEdit: {
|
||||
|
|
@ -1820,6 +2034,8 @@ export const es: TranslationTree = {
|
|||
updateSuccess: 'Tarea "{title}" actualizada exitosamente',
|
||||
updateFailure: "Error al actualizar tarea: {message}",
|
||||
fileMissing: "No se pudo encontrar el archivo de tarea: {path}",
|
||||
dependenciesUpdateSuccess: "Dependencias actualizadas",
|
||||
blockingUnresolved: "No se pudo resolver: {entries}",
|
||||
openNoteFailure: "Error al abrir nota de tarea",
|
||||
archiveSuccess: "Tarea {action} exitosamente",
|
||||
archiveFailure: "Error al archivar tarea",
|
||||
|
|
@ -1932,6 +2148,41 @@ export const es: TranslationTree = {
|
|||
updateFailed: "Error al actualizar fecha programada. Por favor intenta de nuevo.",
|
||||
},
|
||||
},
|
||||
timeEntryEditor: {
|
||||
title: "Entradas de tiempo - {taskTitle}",
|
||||
addEntry: "Agregar entrada de tiempo",
|
||||
noEntries: "Aún no hay entradas de tiempo",
|
||||
deleteEntry: "Eliminar entrada",
|
||||
startTime: "Hora de inicio",
|
||||
endTime: "Hora de finalización (dejar vacío si aún está en ejecución)",
|
||||
duration: "Duración (minutos)",
|
||||
durationDesc: "Anular duración calculada",
|
||||
durationPlaceholder: "Ingresar duración en minutos",
|
||||
description: "Descripción",
|
||||
descriptionPlaceholder: "¿En qué trabajaste?",
|
||||
calculatedDuration: "Calculado: {minutes} minutos",
|
||||
totalTime: "{hours}h {minutes}m total",
|
||||
totalMinutes: "{minutes}m total",
|
||||
saved: "Entradas de tiempo guardadas",
|
||||
saveFailed: "Error al guardar entradas de tiempo",
|
||||
openFailed: "Error al abrir el editor de entradas de tiempo",
|
||||
noTasksWithEntries: "No hay tareas con entradas de tiempo para editar",
|
||||
validation: {
|
||||
missingStartTime: "Se requiere hora de inicio",
|
||||
endBeforeStart: "La hora de finalización debe ser posterior a la hora de inicio",
|
||||
},
|
||||
},
|
||||
timeTracking: {
|
||||
noTasksAvailable: "No hay tareas disponibles para rastrear tiempo",
|
||||
started: "Seguimiento de tiempo iniciado para: {taskTitle}",
|
||||
startFailed: "Error al iniciar el seguimiento de tiempo",
|
||||
},
|
||||
timeEntry: {
|
||||
mustHaveSpecificTime: "Las entradas de tiempo deben tener horas específicas. Seleccione un rango de tiempo en la vista semanal o diaria.",
|
||||
noTasksAvailable: "No hay tareas disponibles para crear entradas de tiempo",
|
||||
created: "Entrada de tiempo creada para {taskTitle} ({duration} minutos)",
|
||||
createFailed: "Error al crear entrada de tiempo",
|
||||
},
|
||||
},
|
||||
contextMenus: {
|
||||
task: {
|
||||
|
|
@ -2340,13 +2591,39 @@ export const es: TranslationTree = {
|
|||
dueDate: "Fecha de vencimiento",
|
||||
scheduledDate: "Fecha programada",
|
||||
tags: "Etiquetas",
|
||||
completedDate: "Fecha de finalización",
|
||||
},
|
||||
subgroupLabel: "SUBGRUPO",
|
||||
notices: {
|
||||
propertiesMenuFailed: "Error al mostrar menú de propiedades",
|
||||
},
|
||||
},
|
||||
},
|
||||
components: {
|
||||
dateContextMenu: {
|
||||
weekdays: "Días laborables",
|
||||
clearDate: "Borrar fecha",
|
||||
today: "Hoy",
|
||||
tomorrow: "Mañana",
|
||||
thisWeekend: "Este fin de semana",
|
||||
nextWeek: "Próxima semana",
|
||||
nextMonth: "Próximo mes",
|
||||
setDateTime: "Establecer fecha y hora",
|
||||
dateLabel: "Fecha",
|
||||
timeLabel: "Hora (opcional)",
|
||||
},
|
||||
subgroupMenuBuilder: {
|
||||
none: "Ninguno",
|
||||
status: "Estado",
|
||||
priority: "Prioridad",
|
||||
context: "Contexto",
|
||||
project: "Proyecto",
|
||||
dueDate: "Fecha de vencimiento",
|
||||
scheduledDate: "Fecha programada",
|
||||
tags: "Etiquetas",
|
||||
completedDate: "Fecha de finalización",
|
||||
subgroup: "SUBGRUPO",
|
||||
},
|
||||
propertyVisibilityDropdown: {
|
||||
coreProperties: "PROPIEDADES PRINCIPALES",
|
||||
organization: "ORGANIZACIÓN",
|
||||
|
|
|
|||
|
|
@ -67,7 +67,17 @@ export const fr: TranslationTree = {
|
|||
empty: {
|
||||
noItemsScheduled: "Aucun élément planifié",
|
||||
noItemsFound: "Aucun élément trouvé",
|
||||
helpText: "Créez des tâches avec des dates d'échéance ou planifiées, ou ajoutez des notes pour les voir ici.",
|
||||
},
|
||||
contextMenu: {
|
||||
showOverdueSection: "Afficher la section en retard",
|
||||
showNotes: "Afficher les notes",
|
||||
calendarSubscriptions: "Abonnements au calendrier",
|
||||
},
|
||||
periods: {
|
||||
thisWeek: "Cette semaine",
|
||||
},
|
||||
tipPrefix: "Astuce : ",
|
||||
},
|
||||
taskList: {
|
||||
title: "Tâches",
|
||||
|
|
@ -77,13 +87,17 @@ export const fr: TranslationTree = {
|
|||
},
|
||||
notes: {
|
||||
title: "Bloc-notes",
|
||||
refreshButton: "Actualisation...",
|
||||
refreshButton: "Actualiser",
|
||||
refreshingButton: "Actualisation...",
|
||||
notices: {
|
||||
indexingDisabled: "Indexation des notes désactivée",
|
||||
},
|
||||
empty: {
|
||||
noNotesFound: "Aucune note trouvée",
|
||||
helpText: "Aucune note trouvée pour la date sélectionnée. Essayez de sélectionner une date différente dans la vue Mini Calendrier ou créez quelques notes.",
|
||||
},
|
||||
loading: "Chargement des notes...",
|
||||
refreshButtonAriaLabel: "Actualiser la liste des notes",
|
||||
},
|
||||
miniCalendar: {
|
||||
title: "Mini calendrier",
|
||||
|
|
@ -156,6 +170,7 @@ export const fr: TranslationTree = {
|
|||
year: "A",
|
||||
list: "L",
|
||||
customDays: "{count}J",
|
||||
listDays: "{count}j Liste",
|
||||
},
|
||||
settings: {
|
||||
groups: {
|
||||
|
|
@ -164,6 +179,8 @@ export const fr: TranslationTree = {
|
|||
layout: "Mise en page",
|
||||
propertyBasedEvents: "Événements basés sur les propriétés",
|
||||
calendarSubscriptions: "Abonnements au calendrier",
|
||||
googleCalendars: "Google Calendars",
|
||||
microsoftCalendars: "Microsoft Calendars",
|
||||
},
|
||||
dateNavigation: {
|
||||
navigateToDate: "Naviguer vers la date",
|
||||
|
|
@ -188,6 +205,7 @@ export const fr: TranslationTree = {
|
|||
layout: {
|
||||
calendarView: "Vue du calendrier",
|
||||
customDayCount: "Nombre de jours personnalisé",
|
||||
listDayCount: "Nombre de jours de liste",
|
||||
dayStartTime: "Heure de début de journée",
|
||||
dayStartTimePlaceholder: "HH:mm:ss (ex. 08:00:00)",
|
||||
dayEndTime: "Heure de fin de journée",
|
||||
|
|
@ -226,6 +244,8 @@ export const fr: TranslationTree = {
|
|||
newTask: "Nouvelle tâche",
|
||||
addCard: "+ Ajouter une carte",
|
||||
noTasks: "Aucune tâche",
|
||||
uncategorized: "Non catégorisé",
|
||||
noProject: "Aucun projet",
|
||||
notices: {
|
||||
loadFailed: "Échec du chargement du tableau Kanban",
|
||||
movedTask: 'Tâche déplacée vers "{0}"',
|
||||
|
|
@ -233,6 +253,7 @@ export const fr: TranslationTree = {
|
|||
errors: {
|
||||
loadingBoard: "Erreur lors du chargement du tableau.",
|
||||
},
|
||||
columnTitle: "Sans titre",
|
||||
},
|
||||
pomodoro: {
|
||||
title: "Sessions Pomodoro",
|
||||
|
|
@ -332,7 +353,38 @@ export const fr: TranslationTree = {
|
|||
},
|
||||
filters: {
|
||||
minTime: "Temps min (minutes)",
|
||||
allTasks: "Toutes les tâches",
|
||||
activeOnly: "Actives uniquement",
|
||||
completedOnly: "Terminées uniquement",
|
||||
},
|
||||
refreshButton: "Actualiser",
|
||||
timeRanges: {
|
||||
allTime: "Tout le temps",
|
||||
last7Days: "7 derniers jours",
|
||||
last30Days: "30 derniers jours",
|
||||
last90Days: "90 derniers jours",
|
||||
customRange: "Plage personnalisée",
|
||||
},
|
||||
resetFiltersButton: "Réinitialiser les filtres",
|
||||
dateRangeFrom: "De",
|
||||
dateRangeTo: "À",
|
||||
noProject: "Aucun projet",
|
||||
cards: {
|
||||
timeTrackedEstimated: "Temps suivi / estimé",
|
||||
totalTasks: "Total des tâches",
|
||||
completionRate: "Taux de complétion",
|
||||
activeProjects: "Projets actifs",
|
||||
avgTimePerTask: "Temps moyen par tâche",
|
||||
},
|
||||
labels: {
|
||||
tasks: "Tâches",
|
||||
completed: "Terminées",
|
||||
projects: "Projets",
|
||||
},
|
||||
noProjectData: "Aucune donnée de projet disponible",
|
||||
notAvailable: "N/D",
|
||||
noTasks: "Aucune tâche trouvée",
|
||||
loading: "Chargement...",
|
||||
},
|
||||
releaseNotes: {
|
||||
title: "Nouveautés de TaskNotes {version}",
|
||||
|
|
@ -710,6 +762,11 @@ export const fr: TranslationTree = {
|
|||
name: "Tag de tâche",
|
||||
description: "Tag qui identifie les notes comme des tâches (sans #)",
|
||||
},
|
||||
hideIdentifyingTags: {
|
||||
name: "Masquer les tags d'identification dans les cartes de tâches",
|
||||
description:
|
||||
"Lorsque activé, les tags correspondant au tag d'identification de tâche (y compris les correspondances hiérarchiques comme 'task/project') seront masqués dans l'affichage des cartes de tâches",
|
||||
},
|
||||
taskProperty: {
|
||||
name: "Nom de la propriété de tâche",
|
||||
description: 'Le nom de la propriété frontmatter (ex. "category")',
|
||||
|
|
@ -727,6 +784,14 @@ export const fr: TranslationTree = {
|
|||
"Liste séparée par des virgules des dossiers à exclure de l'onglet Notes",
|
||||
},
|
||||
},
|
||||
frontmatter: {
|
||||
header: "Frontmatter",
|
||||
description: "Configurez la façon dont les liens sont formatés dans les propriétés frontmatter.",
|
||||
useMarkdownLinks: {
|
||||
name: "Utiliser des liens markdown dans le frontmatter",
|
||||
description: "Générer des liens markdown ([text](path)) au lieu de wikilinks ([[link]]) dans les propriétés frontmatter.\n\n⚠️ Nécessite le plugin 'obsidian-frontmatter-markdown-links' pour fonctionner correctement.",
|
||||
},
|
||||
},
|
||||
taskInteraction: {
|
||||
header: "Interaction avec les tâches",
|
||||
description: "Configurez le comportement des clics sur les tâches.",
|
||||
|
|
@ -917,6 +982,11 @@ export const fr: TranslationTree = {
|
|||
noKey: "aucune-cle",
|
||||
},
|
||||
deleteTooltip: "Supprimer le champ",
|
||||
autosuggestFilters: {
|
||||
header: "Filtres d'auto-suggestion (Avancé)",
|
||||
description:
|
||||
"Filtrer quels fichiers apparaissent dans les suggestions d'auto-complétion pour ce champ",
|
||||
},
|
||||
},
|
||||
},
|
||||
appearance: {
|
||||
|
|
@ -1667,6 +1737,25 @@ export const fr: TranslationTree = {
|
|||
notices: {
|
||||
languageChanged: "Langue changée pour {language}.",
|
||||
exportTasksFailed: "Échec de l'export des tâches au format ICS",
|
||||
icsNoteCreatedSuccess: "Note créée avec succès",
|
||||
icsCreationModalOpenFailed: "Échec de l'ouverture de la modale de création",
|
||||
icsNoteLinkSuccess: "Note \"{fileName}\" liée à l'événement ICS",
|
||||
icsTaskCreatedSuccess: "Tâche créée : {title}",
|
||||
icsRelatedItemsRefreshed: "Notes associées actualisées",
|
||||
icsFileNotFound: "Fichier introuvable ou invalide",
|
||||
icsFileOpenFailed: "Échec de l'ouverture du fichier",
|
||||
timeblockAttachmentExists: "\"{fileName}\" est déjà attaché",
|
||||
timeblockAttachmentAdded: "\"{fileName}\" ajouté comme pièce jointe",
|
||||
timeblockAttachmentRemoved: "\"{fileName}\" retiré des pièces jointes",
|
||||
timeblockFileTypeNotSupported: "Impossible d'ouvrir \"{fileName}\" - type de fichier non pris en charge",
|
||||
timeblockTitleRequired: "Veuillez saisir un titre pour le bloc de temps",
|
||||
timeblockUpdatedSuccess: "Bloc de temps \"{title}\" mis à jour avec succès",
|
||||
timeblockUpdateFailed: "Échec de la mise à jour du bloc de temps. Consultez la console pour plus de détails.",
|
||||
timeblockDeletedSuccess: "Bloc de temps \"{title}\" supprimé avec succès",
|
||||
timeblockDeleteFailed: "Échec de la suppression du bloc de temps. Consultez la console pour plus de détails.",
|
||||
timeblockRequiredFieldsMissing: "Veuillez remplir tous les champs requis",
|
||||
agendaLoadingFailed: "Erreur lors du chargement de l'agenda. Veuillez essayer d'actualiser.",
|
||||
statsLoadingFailed: "Erreur lors du chargement des détails du projet.",
|
||||
},
|
||||
commands: {
|
||||
openCalendarView: "Ouvrir la vue mini calendrier",
|
||||
|
|
@ -1691,8 +1780,110 @@ export const fr: TranslationTree = {
|
|||
refreshCache: "Actualiser le cache",
|
||||
exportAllTasksIcs: "Exporter toutes les tâches en fichier ICS",
|
||||
viewReleaseNotes: "Voir les notes de version",
|
||||
startTimeTrackingWithSelector: "Démarrer le suivi du temps (sélectionner une tâche)",
|
||||
editTimeEntries: "Modifier les entrées de temps (sélectionner une tâche)",
|
||||
},
|
||||
modals: {
|
||||
deviceCode: {
|
||||
title: "Autorisation Google Calendar",
|
||||
instructions: {
|
||||
intro: "Pour connecter votre Google Calendar, veuillez suivre ces étapes :",
|
||||
},
|
||||
steps: {
|
||||
open: "Ouvrir",
|
||||
inBrowser: "dans votre navigateur",
|
||||
enterCode: "Entrez ce code lorsque demandé :",
|
||||
signIn: "Connectez-vous avec votre compte Google et accordez l'accès",
|
||||
returnToObsidian: "Retournez à Obsidian (cette fenêtre se fermera automatiquement)",
|
||||
},
|
||||
codeLabel: "Votre code :",
|
||||
copyCodeAriaLabel: "Copier le code",
|
||||
waitingForAuthorization: "En attente d'autorisation...",
|
||||
openBrowserButton: "Ouvrir le navigateur",
|
||||
cancelButton: "Annuler",
|
||||
expiresMinutesSeconds: "Le code expire dans {minutes}m {seconds}s",
|
||||
expiresSeconds: "Le code expire dans {seconds}s",
|
||||
},
|
||||
icsEventInfo: {
|
||||
calendarEventHeading: "Événement de calendrier",
|
||||
titleLabel: "Titre",
|
||||
calendarLabel: "Calendrier",
|
||||
dateTimeLabel: "Date et heure",
|
||||
locationLabel: "Lieu",
|
||||
descriptionLabel: "Description",
|
||||
urlLabel: "URL",
|
||||
relatedNotesHeading: "Notes et tâches associées",
|
||||
noRelatedItems: "Aucune note ou tâche associée trouvée pour cet événement.",
|
||||
typeTask: "Tâche",
|
||||
typeNote: "Note",
|
||||
actionsHeading: "Actions",
|
||||
createFromEventLabel: "Créer à partir de l'événement",
|
||||
createFromEventDesc: "Créer une nouvelle note ou tâche à partir de cet événement de calendrier",
|
||||
linkExistingLabel: "Lier existant",
|
||||
linkExistingDesc: "Lier une note existante à cet événement de calendrier",
|
||||
},
|
||||
timeblockInfo: {
|
||||
editHeading: "Modifier le bloc de temps",
|
||||
dateTimeLabel: "Date et heure : ",
|
||||
titleLabel: "Titre",
|
||||
titleDesc: "Titre de votre bloc de temps",
|
||||
titlePlaceholder: "ex., Session de travail approfondi",
|
||||
descriptionLabel: "Description",
|
||||
descriptionDesc: "Description optionnelle du bloc de temps",
|
||||
descriptionPlaceholder: "Concentrez-vous sur les nouvelles fonctionnalités, sans interruptions",
|
||||
colorLabel: "Couleur",
|
||||
colorDesc: "Couleur optionnelle pour le bloc de temps",
|
||||
colorPlaceholder: "#3b82f6",
|
||||
attachmentsLabel: "Pièces jointes",
|
||||
attachmentsDesc: "Fichiers ou notes liés à ce bloc de temps",
|
||||
addAttachmentButton: "Ajouter une pièce jointe",
|
||||
addAttachmentTooltip: "Sélectionnez un fichier ou une note en utilisant la recherche floue",
|
||||
deleteButton: "Supprimer le bloc de temps",
|
||||
saveButton: "Enregistrer les modifications",
|
||||
deleteConfirmationTitle: "Supprimer le bloc de temps",
|
||||
},
|
||||
timeblockCreation: {
|
||||
heading: "Créer un bloc de temps",
|
||||
dateLabel: "Date : ",
|
||||
titleLabel: "Titre",
|
||||
titleDesc: "Titre de votre bloc de temps",
|
||||
titlePlaceholder: "ex., Session de travail approfondi",
|
||||
startTimeLabel: "Heure de début",
|
||||
startTimeDesc: "Quand le bloc de temps commence",
|
||||
startTimePlaceholder: "09:00",
|
||||
endTimeLabel: "Heure de fin",
|
||||
endTimeDesc: "Quand le bloc de temps se termine",
|
||||
endTimePlaceholder: "11:00",
|
||||
descriptionLabel: "Description",
|
||||
descriptionDesc: "Description optionnelle du bloc de temps",
|
||||
descriptionPlaceholder: "Concentrez-vous sur les nouvelles fonctionnalités, sans interruptions",
|
||||
colorLabel: "Couleur",
|
||||
colorDesc: "Couleur optionnelle pour le bloc de temps",
|
||||
colorPlaceholder: "#3b82f6",
|
||||
attachmentsLabel: "Pièces jointes",
|
||||
attachmentsDesc: "Fichiers ou notes à lier à ce bloc de temps",
|
||||
addAttachmentButton: "Ajouter une pièce jointe",
|
||||
addAttachmentTooltip: "Sélectionnez un fichier ou une note en utilisant la recherche floue",
|
||||
createButton: "Créer un bloc de temps",
|
||||
},
|
||||
icsNoteCreation: {
|
||||
heading: "Créer à partir d'un événement ICS",
|
||||
titleLabel: "Titre",
|
||||
titleDesc: "Titre du nouveau contenu",
|
||||
folderLabel: "Dossier",
|
||||
folderDesc: "Dossier de destination (laisser vide pour la racine du coffre)",
|
||||
folderPlaceholder: "dossier/sous-dossier",
|
||||
createButton: "Créer",
|
||||
startLabel: "Début : ",
|
||||
endLabel: "Fin : ",
|
||||
locationLabel: "Lieu : ",
|
||||
calendarLabel: "Calendrier : ",
|
||||
useTemplateLabel: "Utiliser un modèle",
|
||||
useTemplateDesc: "Appliquer un modèle lors de la création du contenu",
|
||||
templatePathLabel: "Chemin du modèle",
|
||||
templatePathDesc: "Chemin vers le fichier de modèle",
|
||||
templatePathPlaceholder: "templates/ics-note-template.md",
|
||||
},
|
||||
task: {
|
||||
titlePlaceholder: "Quel est votre prochain objectif ?",
|
||||
titleLabel: "Titre",
|
||||
|
|
@ -1717,6 +1908,20 @@ export const fr: TranslationTree = {
|
|||
selectTaskTooltip: "Sélectionnez une note de tâche via la recherche floue",
|
||||
removeTaskTooltip: "Retirer la tâche",
|
||||
},
|
||||
organization: {
|
||||
projects: "Projets",
|
||||
subtasks: "Sous-tâches",
|
||||
addToProject: "Ajouter au projet",
|
||||
addToProjectButton: "Ajouter au projet",
|
||||
addSubtasks: "Ajouter des sous-tâches",
|
||||
addSubtasksButton: "Ajouter une sous-tâche",
|
||||
addSubtasksTooltip: "Sélectionner des tâches pour en faire des sous-tâches de cette tâche",
|
||||
removeSubtaskTooltip: "Retirer la sous-tâche",
|
||||
notices: {
|
||||
noEligibleSubtasks: "Aucune tâche éligible disponible pour être assignée comme sous-tâche",
|
||||
subtaskSelectFailed: "Échec de l'ouverture du sélecteur de sous-tâches",
|
||||
},
|
||||
},
|
||||
customFieldsLabel: "Champs personnalisés",
|
||||
actions: {
|
||||
due: "Définir l'échéance",
|
||||
|
|
@ -1922,6 +2127,57 @@ export const fr: TranslationTree = {
|
|||
updateFailed: "Échec de la mise à jour de la date planifiée. Veuillez réessayer.",
|
||||
},
|
||||
},
|
||||
taskSelector: {
|
||||
title: "Sélectionner une tâche",
|
||||
placeholder: "Tapez pour rechercher des tâches...",
|
||||
instructions: {
|
||||
navigate: "pour naviguer",
|
||||
select: "pour sélectionner",
|
||||
dismiss: "pour annuler",
|
||||
},
|
||||
notices: {
|
||||
noteNotFound: 'Impossible de trouver la note "{name}"',
|
||||
},
|
||||
dueDate: {
|
||||
overdue: "Échéance : {date} (en retard)",
|
||||
today: "Échéance : Aujourd'hui",
|
||||
},
|
||||
},
|
||||
timeEntryEditor: {
|
||||
title: "Entrées de temps - {taskTitle}",
|
||||
addEntry: "Ajouter une entrée de temps",
|
||||
noEntries: "Aucune entrée de temps pour le moment",
|
||||
deleteEntry: "Supprimer l'entrée",
|
||||
startTime: "Heure de début",
|
||||
endTime: "Heure de fin (laisser vide si toujours en cours)",
|
||||
duration: "Durée (minutes)",
|
||||
durationDesc: "Remplacer la durée calculée",
|
||||
durationPlaceholder: "Entrer la durée en minutes",
|
||||
description: "Description",
|
||||
descriptionPlaceholder: "Sur quoi avez-vous travaillé ?",
|
||||
calculatedDuration: "Calculé : {minutes} minutes",
|
||||
totalTime: "{hours}h {minutes}m au total",
|
||||
totalMinutes: "{minutes}m au total",
|
||||
saved: "Entrées de temps enregistrées",
|
||||
saveFailed: "Échec de l'enregistrement des entrées de temps",
|
||||
openFailed: "Échec de l'ouverture de l'éditeur d'entrées de temps",
|
||||
noTasksWithEntries: "Aucune tâche n'a d'entrées de temps à modifier",
|
||||
validation: {
|
||||
missingStartTime: "L'heure de début est requise",
|
||||
endBeforeStart: "L'heure de fin doit être après l'heure de début",
|
||||
},
|
||||
},
|
||||
timeTracking: {
|
||||
noTasksAvailable: "Aucune tâche disponible pour le suivi du temps",
|
||||
started: "Suivi du temps démarré pour : {taskTitle}",
|
||||
startFailed: "Échec du démarrage du suivi du temps",
|
||||
},
|
||||
timeEntry: {
|
||||
mustHaveSpecificTime: "Les entrées de temps doivent avoir des heures spécifiques. Veuillez sélectionner une plage horaire dans la vue semaine ou jour.",
|
||||
noTasksAvailable: "Aucune tâche disponible pour créer des entrées de temps",
|
||||
created: "Entrée de temps créée pour {taskTitle} ({duration} minutes)",
|
||||
createFailed: "Échec de la création de l'entrée de temps",
|
||||
},
|
||||
},
|
||||
contextMenus: {
|
||||
task: {
|
||||
|
|
@ -1984,6 +2240,25 @@ export const fr: TranslationTree = {
|
|||
updateFailed: "Impossible de mettre à jour les dépendances",
|
||||
},
|
||||
},
|
||||
organization: {
|
||||
title: "Organisation",
|
||||
projects: "Projets",
|
||||
addToProject: "Ajouter au projet…",
|
||||
subtasks: "Sous-tâches",
|
||||
addSubtasks: "Ajouter des sous-tâches…",
|
||||
notices: {
|
||||
alreadyInProject: "La tâche est déjà dans ce projet",
|
||||
alreadySubtask: "La tâche est déjà une sous-tâche de cette tâche",
|
||||
addedToProject: "Ajoutée au projet : {project}",
|
||||
addedAsSubtask: "{subtask} ajoutée comme sous-tâche de {parent}",
|
||||
addToProjectFailed: "Échec de l'ajout de la tâche au projet",
|
||||
addAsSubtaskFailed: "Échec de l'ajout de la tâche comme sous-tâche",
|
||||
projectSelectFailed: "Échec de l'ouverture du sélecteur de projet",
|
||||
subtaskSelectFailed: "Échec de l'ouverture du sélecteur de sous-tâches",
|
||||
noEligibleSubtasks: "Aucune tâche éligible disponible pour être assignée comme sous-tâche",
|
||||
currentTaskNotFound: "Fichier de tâche actuel introuvable",
|
||||
},
|
||||
},
|
||||
subtasks: {
|
||||
loading: "Chargement des sous-tâches...",
|
||||
noSubtasks: "Aucune sous-tâche trouvée",
|
||||
|
|
@ -2311,11 +2586,15 @@ export const fr: TranslationTree = {
|
|||
dueDate: "Date d'échéance",
|
||||
scheduledDate: "Date planifiée",
|
||||
tags: "Étiquettes",
|
||||
completedDate: "Date de complétion",
|
||||
},
|
||||
notices: {
|
||||
propertiesMenuFailed: "Impossible d'afficher le menu des propriétés",
|
||||
},
|
||||
},
|
||||
filterBar: {
|
||||
subgroupLabel: "SOUS-GROUPE",
|
||||
},
|
||||
},
|
||||
components: {
|
||||
propertyVisibilityDropdown: {
|
||||
|
|
@ -2354,6 +2633,30 @@ export const fr: TranslationTree = {
|
|||
oneDayBefore: "1 jour avant",
|
||||
},
|
||||
},
|
||||
dateContextMenu: {
|
||||
weekdays: "Jours de semaine",
|
||||
clearDate: "Effacer la date",
|
||||
today: "Aujourd'hui",
|
||||
tomorrow: "Demain",
|
||||
thisWeekend: "Ce week-end",
|
||||
nextWeek: "La semaine prochaine",
|
||||
nextMonth: "Le mois prochain",
|
||||
setDateTime: "Définir la date et l'heure",
|
||||
dateLabel: "Date",
|
||||
timeLabel: "Heure (optionnelle)",
|
||||
},
|
||||
subgroupMenuBuilder: {
|
||||
none: "Aucun",
|
||||
status: "Statut",
|
||||
priority: "Priorité",
|
||||
context: "Contexte",
|
||||
project: "Projet",
|
||||
dueDate: "Date d'échéance",
|
||||
scheduledDate: "Date programmée",
|
||||
tags: "Étiquettes",
|
||||
completedDate: "Date de finalisation",
|
||||
subgroup: "SOUS-GROUPE",
|
||||
},
|
||||
recurrenceContextMenu: {
|
||||
daily: "Quotidien",
|
||||
weeklyOn: "Hebdomadaire le {day}",
|
||||
|
|
|
|||
|
|
@ -156,6 +156,7 @@ export const ja: TranslationTree = {
|
|||
year: "年",
|
||||
list: "一覧",
|
||||
customDays: "{count}日",
|
||||
listDays: "{count}日一覧",
|
||||
},
|
||||
settings: {
|
||||
groups: {
|
||||
|
|
@ -164,6 +165,8 @@ export const ja: TranslationTree = {
|
|||
layout: "レイアウト",
|
||||
propertyBasedEvents: "プロパティベースのイベント",
|
||||
calendarSubscriptions: "カレンダー購読",
|
||||
googleCalendars: "Google Calendars",
|
||||
microsoftCalendars: "Microsoft Calendars",
|
||||
},
|
||||
dateNavigation: {
|
||||
navigateToDate: "日付に移動",
|
||||
|
|
@ -188,6 +191,7 @@ export const ja: TranslationTree = {
|
|||
layout: {
|
||||
calendarView: "カレンダービュー",
|
||||
customDayCount: "カスタム日数",
|
||||
listDayCount: "一覧表示日数",
|
||||
dayStartTime: "1日の開始時刻",
|
||||
dayStartTimePlaceholder: "HH:mm:ss(例:08:00:00)",
|
||||
dayEndTime: "1日の終了時刻",
|
||||
|
|
@ -673,7 +677,8 @@ export const ja: TranslationTree = {
|
|||
},
|
||||
archiveFolder: {
|
||||
name: "アーカイブフォルダー",
|
||||
description: "アーカイブ時にタスクを移動するフォルダー",
|
||||
description:
|
||||
"アーカイブ時にタスクを移動するフォルダー。{{year}}、{{month}}、{{priority}}などのテンプレート変数をサポートします。",
|
||||
},
|
||||
},
|
||||
taskIdentification: {
|
||||
|
|
@ -691,6 +696,11 @@ export const ja: TranslationTree = {
|
|||
name: "タスクタグ",
|
||||
description: "ノートをタスクとして識別するタグ(#なし)",
|
||||
},
|
||||
hideIdentifyingTags: {
|
||||
name: "タスクカードで識別タグを非表示",
|
||||
description:
|
||||
"有効にすると、タスク識別タグに一致するタグ('task/project'のような階層的一致を含む)がタスクカード表示から非表示になります",
|
||||
},
|
||||
taskProperty: {
|
||||
name: "タスクプロパティ名",
|
||||
description: 'フロントマタープロパティ名(例:"category")',
|
||||
|
|
@ -707,6 +717,14 @@ export const ja: TranslationTree = {
|
|||
description: "ノートタブから除外するフォルダーのカンマ区切りリスト",
|
||||
},
|
||||
},
|
||||
frontmatter: {
|
||||
header: "Frontmatter",
|
||||
description: "frontmatterプロパティでのリンクのフォーマット方法を設定します。",
|
||||
useMarkdownLinks: {
|
||||
name: "frontmatterでmarkdownリンクを使用",
|
||||
description: "frontmatterプロパティでwikilink([[link]])の代わりにmarkdownリンク([text](path))を生成します。\n\n⚠️ 正しく機能するには'obsidian-frontmatter-markdown-links'プラグインが必要です。",
|
||||
},
|
||||
},
|
||||
taskInteraction: {
|
||||
header: "タスクインタラクション",
|
||||
description: "タスクをクリックする際の動作を設定します。",
|
||||
|
|
@ -896,6 +914,11 @@ export const ja: TranslationTree = {
|
|||
noKey: "no-key",
|
||||
},
|
||||
deleteTooltip: "フィールドを削除",
|
||||
autosuggestFilters: {
|
||||
header: "自動提案フィルター",
|
||||
description:
|
||||
"タスク作成時にカスタムユーザーフィールドの自動提案をフィルターします。各フィールドに対して、提案される値を特定のタグ、フォルダー、またはプロパティ値を持つノートに制限できます。",
|
||||
},
|
||||
},
|
||||
},
|
||||
appearance: {
|
||||
|
|
@ -1087,6 +1110,10 @@ export const ja: TranslationTree = {
|
|||
name: "ステータスバーに追跡タスクを表示",
|
||||
description: "Obsidianのステータスバーに現在追跡中のタスクを表示",
|
||||
},
|
||||
showTaskCardInNote: {
|
||||
name: "ノート内にタスクカードを表示",
|
||||
description: "タスクノートを開いたときにタスクプロパティを表示するインタラクティブカードを表示",
|
||||
},
|
||||
showProjectSubtasksWidget: {
|
||||
name: "プロジェクトサブタスクウィジェットを表示",
|
||||
description: "現在のプロジェクトノートのサブタスクを表示するウィジェットを表示",
|
||||
|
|
@ -1637,6 +1664,8 @@ export const ja: TranslationTree = {
|
|||
refreshCache: "キャッシュを更新",
|
||||
exportAllTasksIcs: "すべてのタスクをICSファイルとしてエクスポート",
|
||||
viewReleaseNotes: "リリースノートを表示",
|
||||
startTimeTrackingWithSelector: "時間追跡を開始(タスクを選択)",
|
||||
editTimeEntries: "時間エントリを編集(タスクを選択)",
|
||||
},
|
||||
modals: {
|
||||
task: {
|
||||
|
|
@ -1655,6 +1684,28 @@ export const ja: TranslationTree = {
|
|||
tagsPlaceholder: "tag1, tag2",
|
||||
timeEstimateLabel: "時間見積もり(分)",
|
||||
timeEstimatePlaceholder: "30",
|
||||
dependencies: {
|
||||
blockedBy: "ブロック元",
|
||||
blocking: "ブロックしている",
|
||||
placeholder: "[[タスクノート]]",
|
||||
addTaskButton: "タスクを追加",
|
||||
selectTaskTooltip: "ファジー検索を使用してタスクノートを選択",
|
||||
removeTaskTooltip: "タスクを削除",
|
||||
},
|
||||
organization: {
|
||||
projects: "プロジェクト",
|
||||
subtasks: "サブタスク",
|
||||
addToProject: "プロジェクトに追加",
|
||||
addToProjectButton: "プロジェクトに追加",
|
||||
addSubtasks: "サブタスクを追加",
|
||||
addSubtasksButton: "サブタスクを追加",
|
||||
addSubtasksTooltip: "このタスクのサブタスクにするタスクを選択",
|
||||
removeSubtaskTooltip: "サブタスクを削除",
|
||||
notices: {
|
||||
noEligibleSubtasks: "サブタスクとして割り当て可能なタスクがありません",
|
||||
subtaskSelectFailed: "サブタスクセレクターを開けませんでした",
|
||||
},
|
||||
},
|
||||
customFieldsLabel: "カスタムフィールド",
|
||||
actions: {
|
||||
due: "期限日を設定",
|
||||
|
|
@ -1706,6 +1757,22 @@ export const ja: TranslationTree = {
|
|||
ordinal: "{number}{suffix}",
|
||||
},
|
||||
},
|
||||
taskSelector: {
|
||||
title: "タスクを選択",
|
||||
placeholder: "タスクを検索...",
|
||||
instructions: {
|
||||
navigate: "移動",
|
||||
select: "選択",
|
||||
dismiss: "キャンセル",
|
||||
},
|
||||
notices: {
|
||||
noteNotFound: 'ノート"{name}"が見つかりませんでした',
|
||||
},
|
||||
dueDate: {
|
||||
overdue: "期限:{date}(期限切れ)",
|
||||
today: "期限:今日",
|
||||
},
|
||||
},
|
||||
taskCreation: {
|
||||
title: "タスクを作成",
|
||||
actions: {
|
||||
|
|
@ -1720,6 +1787,7 @@ export const ja: TranslationTree = {
|
|||
successShortened:
|
||||
'タスク"{title}"が正常に作成されました(長さのためファイル名が短縮されました)',
|
||||
failure: "タスクの作成に失敗しました:{message}",
|
||||
blockingUnresolved: "解決できませんでした:{entries}",
|
||||
},
|
||||
},
|
||||
taskEdit: {
|
||||
|
|
@ -1743,6 +1811,8 @@ export const ja: TranslationTree = {
|
|||
noChanges: "保存する変更がありません",
|
||||
updateSuccess: 'タスク"{title}"が正常に更新されました',
|
||||
updateFailure: "タスクの更新に失敗しました:{message}",
|
||||
dependenciesUpdateSuccess: "依存関係が更新されました",
|
||||
blockingUnresolved: "解決できませんでした:{entries}",
|
||||
fileMissing: "タスクファイルが見つかりませんでした:{path}",
|
||||
openNoteFailure: "タスクノートを開けませんでした",
|
||||
archiveSuccess: "タスクが正常に{action}されました",
|
||||
|
|
@ -1855,6 +1925,41 @@ export const ja: TranslationTree = {
|
|||
updateFailed: "予定日の更新に失敗しました。再試行してください。",
|
||||
},
|
||||
},
|
||||
timeEntryEditor: {
|
||||
title: "時間エントリ - {taskTitle}",
|
||||
addEntry: "時間エントリを追加",
|
||||
noEntries: "まだ時間エントリがありません",
|
||||
deleteEntry: "エントリを削除",
|
||||
startTime: "開始時刻",
|
||||
endTime: "終了時刻(実行中の場合は空白のまま)",
|
||||
duration: "時間(分)",
|
||||
durationDesc: "計算された時間を上書き",
|
||||
durationPlaceholder: "時間を分単位で入力",
|
||||
description: "説明",
|
||||
descriptionPlaceholder: "何に取り組みましたか?",
|
||||
calculatedDuration: "計算:{minutes}分",
|
||||
totalTime: "合計{hours}時間{minutes}分",
|
||||
totalMinutes: "合計{minutes}分",
|
||||
saved: "時間エントリが保存されました",
|
||||
saveFailed: "時間エントリの保存に失敗しました",
|
||||
openFailed: "時間エントリエディターを開けませんでした",
|
||||
noTasksWithEntries: "編集する時間エントリを持つタスクがありません",
|
||||
validation: {
|
||||
missingStartTime: "開始時刻は必須です",
|
||||
endBeforeStart: "終了時刻は開始時刻より後である必要があります",
|
||||
},
|
||||
},
|
||||
timeTracking: {
|
||||
noTasksAvailable: "時間を追跡できるタスクがありません",
|
||||
started: "時間追跡を開始しました:{taskTitle}",
|
||||
startFailed: "時間追跡の開始に失敗しました",
|
||||
},
|
||||
timeEntry: {
|
||||
mustHaveSpecificTime: "時間エントリには具体的な時間が必要です。週表示または日表示で時間範囲を選択してください。",
|
||||
noTasksAvailable: "時間エントリを作成できるタスクがありません",
|
||||
created: "{taskTitle}の時間エントリを作成しました({duration}分)",
|
||||
createFailed: "時間エントリの作成に失敗しました",
|
||||
},
|
||||
},
|
||||
contextMenus: {
|
||||
task: {
|
||||
|
|
@ -1897,6 +2002,45 @@ export const ja: TranslationTree = {
|
|||
clearRecurrence: "繰り返しをクリア",
|
||||
customRecurrence: "カスタム繰り返し...",
|
||||
createSubtask: "サブタスクを作成",
|
||||
dependencies: {
|
||||
title: "依存関係",
|
||||
addBlockedBy: "「ブロック元」を追加…",
|
||||
addBlockedByTitle: "このタスクが依存するタスクを追加",
|
||||
addBlocking: "「ブロックしている」を追加…",
|
||||
addBlockingTitle: "このタスクがブロックするタスクを追加",
|
||||
removeBlockedBy: "ブロック元を削除…",
|
||||
removeBlocking: "ブロックしているを削除…",
|
||||
inputPlaceholder: "[[タスクノート]]",
|
||||
notices: {
|
||||
noEntries: "少なくとも1つのタスクを入力してください",
|
||||
blockedByAdded: "{count}件の依存関係が追加されました",
|
||||
blockedByRemoved: "依存関係が削除されました",
|
||||
blockingAdded: "{count}件の依存タスクが追加されました",
|
||||
blockingRemoved: "依存タスクが削除されました",
|
||||
unresolved: "解決できませんでした:{entries}",
|
||||
noEligibleTasks: "一致するタスクが利用できません",
|
||||
updateFailed: "依存関係の更新に失敗しました",
|
||||
},
|
||||
},
|
||||
organization: {
|
||||
title: "組織",
|
||||
projects: "プロジェクト",
|
||||
addToProject: "プロジェクトに追加…",
|
||||
subtasks: "サブタスク",
|
||||
addSubtasks: "サブタスクを追加…",
|
||||
notices: {
|
||||
alreadyInProject: "タスクは既にこのプロジェクトに含まれています",
|
||||
alreadySubtask: "タスクは既にこのタスクのサブタスクです",
|
||||
addedToProject: "プロジェクトに追加されました:{project}",
|
||||
addedAsSubtask: "{subtask}を{parent}のサブタスクとして追加しました",
|
||||
addToProjectFailed: "タスクをプロジェクトに追加できませんでした",
|
||||
addAsSubtaskFailed: "タスクをサブタスクとして追加できませんでした",
|
||||
projectSelectFailed: "プロジェクトセレクターを開けませんでした",
|
||||
subtaskSelectFailed: "サブタスクセレクターを開けませんでした",
|
||||
noEligibleSubtasks: "サブタスクとして割り当て可能なタスクがありません",
|
||||
currentTaskNotFound: "現在のタスクファイルが見つかりませんでした",
|
||||
},
|
||||
},
|
||||
subtasks: {
|
||||
loading: "サブタスクを読み込み中...",
|
||||
noSubtasks: "サブタスクが見つかりません",
|
||||
|
|
@ -2221,6 +2365,7 @@ export const ja: TranslationTree = {
|
|||
dueDate: "期限日",
|
||||
scheduledDate: "予定日",
|
||||
tags: "タグ",
|
||||
completedDate: "完了日",
|
||||
},
|
||||
notices: {
|
||||
propertiesMenuFailed: "プロパティメニューの表示に失敗しました",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -112,14 +112,13 @@ export const zh: TranslationTree = {
|
|||
icsServiceNotAvailable: "ICS订阅服务不可用",
|
||||
calendarRefreshedAll: "所有日历订阅已成功刷新",
|
||||
refreshFailed: "刷新部分日历订阅失败",
|
||||
timeblockSpecificTime:
|
||||
"时间块必须有具体时间。请在周视图或日视图中选择时间范围。",
|
||||
timeblockMoved: '时间块"{title}"已移动到{date}',
|
||||
timeblockUpdated: '时间块"{title}"的时间已更新',
|
||||
timeblockSpecificTime: "时间块必须有具体时间。请在周视图或日视图中选择时间范围。",
|
||||
timeblockMoved: "时间块\"{title}\"已移动到{date}",
|
||||
timeblockUpdated: "时间块\"{title}\"的时间已更新",
|
||||
timeblockMoveFailed: "移动时间块失败:{message}",
|
||||
timeblockResized: '时间块"{title}"的持续时间已更新',
|
||||
timeblockResized: "时间块\"{title}\"的持续时间已更新",
|
||||
timeblockResizeFailed: "调整时间块大小失败:{message}",
|
||||
taskScheduled: '任务"{title}"已安排到{date}',
|
||||
taskScheduled: "任务\"{title}\"已安排到{date}",
|
||||
scheduleTaskFailed: "安排任务失败",
|
||||
endTimeAfterStart: "结束时间必须晚于开始时间",
|
||||
timeEntryNotFound: "未找到时间条目",
|
||||
|
|
@ -140,8 +139,7 @@ export const zh: TranslationTree = {
|
|||
openTask: "打开任务",
|
||||
deleteTimeEntry: "删除时间条目",
|
||||
deleteTimeEntryTitle: "删除时间条目",
|
||||
deleteTimeEntryConfirm:
|
||||
"确定要删除此时间条目{duration}吗?此操作无法撤销。",
|
||||
deleteTimeEntryConfirm: "确定要删除此时间条目{duration}吗?此操作无法撤销。",
|
||||
deleteButton: "删除",
|
||||
cancelButton: "取消",
|
||||
},
|
||||
|
|
@ -156,6 +154,7 @@ export const zh: TranslationTree = {
|
|||
year: "年",
|
||||
list: "列表",
|
||||
customDays: "{count}天",
|
||||
listDays: "{count}天 列表",
|
||||
},
|
||||
settings: {
|
||||
groups: {
|
||||
|
|
@ -164,6 +163,8 @@ export const zh: TranslationTree = {
|
|||
layout: "布局",
|
||||
propertyBasedEvents: "基于属性的事件",
|
||||
calendarSubscriptions: "日历订阅",
|
||||
googleCalendars: "Google 日历",
|
||||
microsoftCalendars: "Microsoft 日历",
|
||||
},
|
||||
dateNavigation: {
|
||||
navigateToDate: "导航到日期",
|
||||
|
|
@ -207,6 +208,7 @@ export const zh: TranslationTree = {
|
|||
initialScrollTime: "初始滚动时间",
|
||||
initialScrollTimePlaceholder: "HH:mm:ss(例如:08:00:00)",
|
||||
minimumEventHeight: "最小事件高度(px)",
|
||||
listDayCount: "列表天数",
|
||||
},
|
||||
propertyBasedEvents: {
|
||||
startDateProperty: "开始日期属性",
|
||||
|
|
@ -228,7 +230,7 @@ export const zh: TranslationTree = {
|
|||
noTasks: "没有任务",
|
||||
notices: {
|
||||
loadFailed: "看板加载失败",
|
||||
movedTask: '任务已移动到"{0}"',
|
||||
movedTask: "任务已移动到\"{0}\"",
|
||||
},
|
||||
errors: {
|
||||
loadingBoard: "加载看板时出错。",
|
||||
|
|
@ -476,8 +478,7 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
timeblocking: {
|
||||
header: "时间块",
|
||||
description:
|
||||
"配置时间块功能,在日记中进行轻量级调度。在高级日历视图中,按住Shift + 点击并拖拽创建时间块。",
|
||||
description: "配置时间块功能,在日记中进行轻量级调度。在高级日历视图中,按住Shift + 点击并拖拽创建时间块。",
|
||||
enableName: "启用时间块",
|
||||
enableDesc: "启用时间块功能,在日记中进行轻量级调度",
|
||||
showBlocksName: "显示时间块",
|
||||
|
|
@ -608,8 +609,7 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
bodyTemplateFile: {
|
||||
name: "正文模板文件",
|
||||
description:
|
||||
"任务正文内容的模板文件路径。支持模板变量如{{title}}、{{date}}、{{time}}、{{priority}}、{{status}}等。",
|
||||
description: "任务正文内容的模板文件路径。支持模板变量如{{title}}、{{date}}、{{time}}、{{priority}}、{{status}}等。",
|
||||
placeholder: "Templates/Task Template.md",
|
||||
ariaLabel: "正文模板文件路径",
|
||||
},
|
||||
|
|
@ -658,7 +658,7 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
archiveFolder: {
|
||||
name: "归档文件夹",
|
||||
description: "归档时移动任务到的文件夹",
|
||||
description: "归档时将任务移动到的文件夹。支持模板变量,如 {{year}}、{{month}}、{{priority}} 等。",
|
||||
},
|
||||
},
|
||||
taskIdentification: {
|
||||
|
|
@ -678,11 +678,15 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
taskProperty: {
|
||||
name: "任务属性名称",
|
||||
description: '前置属性名称(例如,"category")',
|
||||
description: "前置属性名称(例如,\"category\")",
|
||||
},
|
||||
taskPropertyValue: {
|
||||
name: "任务属性值",
|
||||
description: '识别笔记为任务的值(例如,"task")',
|
||||
description: "识别笔记为任务的值(例如,\"task\")",
|
||||
},
|
||||
hideIdentifyingTags: {
|
||||
name: "在任务卡片中隐藏识别标签",
|
||||
description: "启用后,与任务识别标签匹配的标签(包括层次匹配,如 'task/project')将在任务卡片显示中隐藏",
|
||||
},
|
||||
},
|
||||
folderManagement: {
|
||||
|
|
@ -722,16 +726,23 @@ export const zh: TranslationTree = {
|
|||
buttonText: "查看版本说明",
|
||||
},
|
||||
},
|
||||
frontmatter: {
|
||||
header: "Frontmatter",
|
||||
description: "配置 frontmatter 属性中链接的格式。",
|
||||
useMarkdownLinks: {
|
||||
name: "在 frontmatter 中使用 markdown 链接",
|
||||
description: "在 frontmatter 属性中生成 markdown 链接 ([文本](路径)) 而不是 wikilinks ([[链接]])。\\n\\n⚠️ 需要 'obsidian-frontmatter-markdown-links' 插件才能正常工作。",
|
||||
},
|
||||
},
|
||||
},
|
||||
taskProperties: {
|
||||
taskStatuses: {
|
||||
header: "任务状态",
|
||||
description:
|
||||
"自定义任务可用的状态选项。这些状态控制任务生命周期并确定何时任务被视为完成。",
|
||||
description: "自定义任务可用的状态选项。这些状态控制任务生命周期并确定何时任务被视为完成。",
|
||||
howTheyWork: {
|
||||
title: "状态如何工作:",
|
||||
value: '值:存储在任务文件中的内部标识符(例如,"进行中")',
|
||||
label: '标签:在界面中显示的显示名称(例如,"进行中")',
|
||||
value: "值:存储在任务文件中的内部标识符(例如,\"进行中\")",
|
||||
label: "标签:在界面中显示的显示名称(例如,\"进行中\")",
|
||||
color: "颜色:状态点和徽章的视觉指示器颜色",
|
||||
completed: "已完成:选中时,具有此状态的任务被视为已完成,可能以不同方式过滤",
|
||||
autoArchive: "自动归档:启用时,任务将在指定延迟后自动归档(1-1440分钟)",
|
||||
|
|
@ -742,7 +753,7 @@ export const zh: TranslationTree = {
|
|||
description: "为您的任务创建新的状态选项",
|
||||
buttonText: "添加状态",
|
||||
},
|
||||
validationNote: '注意:您必须至少有2个状态,并且至少一个状态必须标记为"已完成"。',
|
||||
validationNote: "注意:您必须至少有2个状态,并且至少一个状态必须标记为\"已完成\"。",
|
||||
emptyState: "未配置自定义状态。添加状态以开始。",
|
||||
emptyStateButton: "添加状态",
|
||||
fields: {
|
||||
|
|
@ -760,20 +771,18 @@ export const zh: TranslationTree = {
|
|||
badges: {
|
||||
completed: "已完成",
|
||||
},
|
||||
deleteConfirm: '您确定要删除状态"{label}"吗?',
|
||||
deleteConfirm: "您确定要删除状态\"{label}\"吗?",
|
||||
},
|
||||
taskPriorities: {
|
||||
header: "任务优先级",
|
||||
description:
|
||||
"自定义任务可用的优先级级别。优先级权重确定任务视图中的排序顺序和视觉层次。",
|
||||
description: "自定义任务可用的优先级级别。优先级权重确定任务视图中的排序顺序和视觉层次。",
|
||||
howTheyWork: {
|
||||
title: "优先级如何工作:",
|
||||
value: '值:存储在任务文件中的内部标识符(例如,"高")',
|
||||
label: '显示标签:在界面中显示的显示名称(例如,"高优先级")',
|
||||
value: "值:存储在任务文件中的内部标识符(例如,\"高\")",
|
||||
label: "显示标签:在界面中显示的显示名称(例如,\"高优先级\")",
|
||||
color: "颜色:优先级点和徽章的视觉指示器颜色",
|
||||
weight: "权重:用于排序的数值(权重高的优先出现在列表中)",
|
||||
weightNote:
|
||||
"任务按优先级权重降序自动排序(最高权重优先)。权重可以是任何正数。",
|
||||
weightNote: "任务按优先级权重降序自动排序(最高权重优先)。权重可以是任何正数。",
|
||||
},
|
||||
addNew: {
|
||||
name: "添加新优先级",
|
||||
|
|
@ -799,8 +808,7 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
fieldMapping: {
|
||||
header: "字段映射",
|
||||
warning:
|
||||
"⚠️ 警告:TaskNotes将使用这些属性名称进行读取和写入。在创建任务后更改这些可能导致不一致。",
|
||||
warning: "⚠️ 警告:TaskNotes将使用这些属性名称进行读取和写入。在创建任务后更改这些可能导致不一致。",
|
||||
description: "配置TaskNotes应为每个字段使用的前置属性。",
|
||||
resetButton: {
|
||||
name: "重置字段映射",
|
||||
|
|
@ -841,8 +849,7 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
customUserFields: {
|
||||
header: "自定义用户字段",
|
||||
description:
|
||||
"定义自定义前置属性,作为类型感知过滤选项出现在各个视图中。每行:显示名称、属性名称、类型。",
|
||||
description: "定义自定义前置属性,作为类型感知过滤选项出现在各个视图中。每行:显示名称、属性名称、类型。",
|
||||
addNew: {
|
||||
name: "添加新用户字段",
|
||||
description: "创建将出现在过滤器和视图中的新自定义字段",
|
||||
|
|
@ -871,6 +878,10 @@ export const zh: TranslationTree = {
|
|||
noKey: "无键",
|
||||
},
|
||||
deleteTooltip: "删除字段",
|
||||
autosuggestFilters: {
|
||||
header: "自动建议过滤器(高级)",
|
||||
description: "过滤在此字段的自动完成建议中显示的文件",
|
||||
},
|
||||
},
|
||||
},
|
||||
appearance: {
|
||||
|
|
@ -923,11 +934,9 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
customTemplate: {
|
||||
name: "自定义文件名模板",
|
||||
description:
|
||||
"自定义文件名的模板。可用变量:{title}、{titleLower}、{titleUpper}、{titleSnake}、{titleKebab}、{titleCamel}、{titlePascal}、{date}、{shortDate}、{time}、{time12}、{time24}、{timestamp}、{dateTime}、{year}、{month}、{monthName}、{monthNameShort}、{day}、{dayName}、{dayNameShort}、{hour}、{hour12}、{minute}、{second}、{milliseconds}、{ms}、{ampm}、{week}、{quarter}、{unix}、{unixMs}、{timezone}、{timezoneShort}、{utcOffset}、{utcOffsetShort}、{utcZ}、{zettel}、{nano}、{priority}、{priorityShort}、{status}、{statusShort}、{dueDate}、{scheduledDate}",
|
||||
description: "自定义文件名的模板。可用变量:{title}、{titleLower}、{titleUpper}、{titleSnake}、{titleKebab}、{titleCamel}、{titlePascal}、{date}、{shortDate}、{time}、{time12}、{time24}、{timestamp}、{dateTime}、{year}、{month}、{monthName}、{monthNameShort}、{day}、{dayName}、{dayNameShort}、{hour}、{hour12}、{minute}、{second}、{milliseconds}、{ms}、{ampm}、{week}、{quarter}、{unix}、{unixMs}、{timezone}、{timezoneShort}、{utcOffset}、{utcOffsetShort}、{utcZ}、{zettel}、{nano}、{priority}、{priorityShort}、{status}、{statusShort}、{dueDate}、{scheduledDate}",
|
||||
placeholder: "{date}-{title}-{dueDate}",
|
||||
helpText:
|
||||
"注意:{dueDate}和{scheduledDate}格式为YYYY-MM-DD,如果未设置则为空。",
|
||||
helpText: "注意:{dueDate}和{scheduledDate}格式为YYYY-MM-DD,如果未设置则为空。",
|
||||
},
|
||||
},
|
||||
displayFormatting: {
|
||||
|
|
@ -987,15 +996,13 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
calendarLocale: {
|
||||
name: "日历区域设置",
|
||||
description:
|
||||
'日期格式和日历系统的日历区域设置(例如,"en"、"fa"表示波斯语/波斯文、"de"表示德语)。留空以从浏览器自动检测。',
|
||||
description: "日期格式和日历系统的日历区域设置(例如,\"en\"、\"fa\"表示波斯语/波斯文、\"de\"表示德语)。留空以从浏览器自动检测。",
|
||||
placeholder: "自动检测",
|
||||
},
|
||||
},
|
||||
defaultEventVisibility: {
|
||||
header: "默认事件可见性",
|
||||
description:
|
||||
"配置打开高级日历时默认可见的事件类型。用户仍可在日历视图中切换这些开/关。",
|
||||
description: "配置打开高级日历时默认可见的事件类型。用户仍可在日历视图中切换这些开/关。",
|
||||
showScheduledTasks: {
|
||||
name: "显示安排的任务",
|
||||
description: "默认显示有安排日期的任务",
|
||||
|
|
@ -1048,6 +1055,11 @@ export const zh: TranslationTree = {
|
|||
description: "打开时间线视图时滚动到的时间(HH:MM格式)",
|
||||
placeholder: "09:00",
|
||||
},
|
||||
eventMinHeight: {
|
||||
name: "事件最小高度",
|
||||
description: "时间轴视图中事件的最小高度(像素)",
|
||||
placeholder: "15",
|
||||
},
|
||||
},
|
||||
uiElements: {
|
||||
header: "界面元素",
|
||||
|
|
@ -1088,6 +1100,10 @@ export const zh: TranslationTree = {
|
|||
right: "右侧",
|
||||
},
|
||||
},
|
||||
showTaskCardInNote: {
|
||||
name: "在笔记中显示任务卡片",
|
||||
description: "在任务笔记顶部显示任务卡片小部件,显示任务详情和操作",
|
||||
},
|
||||
},
|
||||
projectAutosuggest: {
|
||||
header: "项目自动建议",
|
||||
|
|
@ -1124,14 +1140,12 @@ export const zh: TranslationTree = {
|
|||
displayRows: {
|
||||
row1: {
|
||||
name: "第1行",
|
||||
description:
|
||||
"格式:{property|flags}。属性:title、aliases、file.path、file.parent。标志:n(Label)显示标签,s使其可搜索。示例:{title|n(Title)|s}",
|
||||
description: "格式:{property|flags}。属性:title、aliases、file.path、file.parent。标志:n(Label)显示标签,s使其可搜索。示例:{title|n(Title)|s}",
|
||||
placeholder: "{title|n(Title)}",
|
||||
},
|
||||
row2: {
|
||||
name: "第2行(可选)",
|
||||
description:
|
||||
"常见模式:{aliases|n(Aliases)}、{file.parent|n(Folder)}、literal:自定义文本",
|
||||
description: "常见模式:{aliases|n(Aliases)}、{file.parent|n(Folder)}、literal:自定义文本",
|
||||
placeholder: "{aliases|n(Aliases)}",
|
||||
},
|
||||
row3: {
|
||||
|
|
@ -1143,7 +1157,7 @@ export const zh: TranslationTree = {
|
|||
quickReference: {
|
||||
header: "快速参考",
|
||||
properties: "可用属性:title、aliases、file.path、file.parent或任何前置字段",
|
||||
labels: '添加标签:{title|n(Title)} → "Title: My Project"',
|
||||
labels: "添加标签:{title|n(Title)} → \"Title: My Project\"",
|
||||
searchable: "使其可搜索:{description|s}在+搜索中包含描述",
|
||||
staticText: "静态文本:literal:My Custom Label",
|
||||
alwaysSearchable: "文件名、标题和别名默认始终可搜索。",
|
||||
|
|
@ -1178,12 +1192,10 @@ export const zh: TranslationTree = {
|
|||
integrations: {
|
||||
basesIntegration: {
|
||||
header: "Bases集成",
|
||||
description:
|
||||
"配置与Obsidian Bases插件的集成。这是一个实验性功能,目前依赖于未记录的Obsidian API。行为可能会改变或中断。",
|
||||
description: "配置与Obsidian Bases插件的集成。这是一个实验性功能,目前依赖于未记录的Obsidian API。行为可能会改变或中断。",
|
||||
enable: {
|
||||
name: "启用Bases集成",
|
||||
description:
|
||||
"启用TaskNotes视图在Obsidian Bases插件中使用。必须启用Bases插件才能工作。",
|
||||
description: "启用TaskNotes视图在Obsidian Bases插件中使用。必须启用Bases插件才能工作。",
|
||||
},
|
||||
notices: {
|
||||
enabled: "Bases集成已启用。请重启Obsidian以完成设置。",
|
||||
|
|
@ -1240,10 +1252,10 @@ export const zh: TranslationTree = {
|
|||
refreshSuccess: "所有日历订阅刷新成功",
|
||||
refreshFailure: "刷新某些日历订阅失败",
|
||||
updateFailure: "更新订阅失败",
|
||||
deleteSuccess: '删除订阅"{name}"',
|
||||
deleteSuccess: "删除订阅\"{name}\"",
|
||||
deleteFailure: "删除订阅失败",
|
||||
enableFirst: "请先启用订阅",
|
||||
refreshSubscriptionSuccess: '刷新"{name}"',
|
||||
refreshSubscriptionSuccess: "刷新\"{name}\"",
|
||||
refreshSubscriptionFailure: "刷新订阅失败",
|
||||
},
|
||||
labels: {
|
||||
|
|
@ -1281,7 +1293,7 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
confirmDelete: {
|
||||
title: "删除订阅",
|
||||
message: '您确定要删除订阅"{name}"吗?此操作无法撤销。',
|
||||
message: "您确定要删除订阅\"{name}\"吗?此操作无法撤销。",
|
||||
confirmText: "删除",
|
||||
},
|
||||
},
|
||||
|
|
@ -1489,8 +1501,7 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
customHeaders: {
|
||||
name: "包含自定义标头",
|
||||
description:
|
||||
"包含TaskNotes标头(事件类型、签名、交付ID)。对于Discord、Slack和其他具有严格CORS策略的服务,请关闭。",
|
||||
description: "包含TaskNotes标头(事件类型、签名、交付ID)。对于Discord、Slack和其他具有严格CORS策略的服务,请关闭。",
|
||||
},
|
||||
buttons: {
|
||||
cancel: "取消",
|
||||
|
|
@ -1517,8 +1528,7 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
customHeaders: {
|
||||
name: "包含自定义标头",
|
||||
description:
|
||||
"包含TaskNotes标头(事件类型、签名、交付ID)。对于Discord、Slack和其他具有严格CORS策略的服务,请关闭。",
|
||||
description: "包含TaskNotes标头(事件类型、签名、交付ID)。对于Discord、Slack和其他具有严格CORS策略的服务,请关闭。",
|
||||
},
|
||||
transformHelp: {
|
||||
title: "转换文件允许您自定义webhook载荷:",
|
||||
|
|
@ -1582,6 +1592,8 @@ export const zh: TranslationTree = {
|
|||
refreshCache: "刷新缓存",
|
||||
exportAllTasksIcs: "导出所有任务为ICS文件",
|
||||
viewReleaseNotes: "查看版本说明",
|
||||
startTimeTrackingWithSelector: "开始时间跟踪(选择任务)",
|
||||
editTimeEntries: "编辑时间条目(选择任务)",
|
||||
},
|
||||
modals: {
|
||||
task: {
|
||||
|
|
@ -1650,6 +1662,28 @@ export const zh: TranslationTree = {
|
|||
untilSuffix: "直到{date}",
|
||||
ordinal: "{number}{suffix}",
|
||||
},
|
||||
dependencies: {
|
||||
blockedBy: "被阻塞",
|
||||
blocking: "阻塞中",
|
||||
placeholder: "[[任务笔记]]",
|
||||
addTaskButton: "添加任务",
|
||||
selectTaskTooltip: "使用模糊搜索选择任务笔记",
|
||||
removeTaskTooltip: "删除任务",
|
||||
},
|
||||
organization: {
|
||||
projects: "项目",
|
||||
subtasks: "子任务",
|
||||
addToProject: "添加到项目",
|
||||
addToProjectButton: "添加到项目",
|
||||
addSubtasks: "添加子任务",
|
||||
addSubtasksButton: "添加子任务",
|
||||
addSubtasksTooltip: "选择任务将其设为此任务的子任务",
|
||||
removeSubtaskTooltip: "删除子任务",
|
||||
notices: {
|
||||
noEligibleSubtasks: "没有可用的任务可指定为子任务",
|
||||
subtaskSelectFailed: "无法打开子任务选择器",
|
||||
},
|
||||
},
|
||||
},
|
||||
taskCreation: {
|
||||
title: "创建任务",
|
||||
|
|
@ -1661,9 +1695,10 @@ export const zh: TranslationTree = {
|
|||
nlPlaceholder: "明天下午3点@家买杂货 #差事\n\n在这里添加详情...",
|
||||
notices: {
|
||||
titleRequired: "请输入任务标题",
|
||||
success: '任务"{title}"创建成功',
|
||||
successShortened: '任务"{title}"创建成功(因长度而缩短文件名)',
|
||||
success: "任务\"{title}\"创建成功",
|
||||
successShortened: "任务\"{title}\"创建成功(因长度而缩短文件名)",
|
||||
failure: "创建任务失败:{message}",
|
||||
blockingUnresolved: "无法解析:{entries}",
|
||||
},
|
||||
},
|
||||
taskEdit: {
|
||||
|
|
@ -1685,12 +1720,14 @@ export const zh: TranslationTree = {
|
|||
notices: {
|
||||
titleRequired: "请输入任务标题",
|
||||
noChanges: "没有要保存的更改",
|
||||
updateSuccess: '任务"{title}"更新成功',
|
||||
updateSuccess: "任务\"{title}\"更新成功",
|
||||
updateFailure: "更新任务失败:{message}",
|
||||
fileMissing: "找不到任务文件:{path}",
|
||||
openNoteFailure: "打开任务笔记失败",
|
||||
archiveSuccess: "任务{action}成功",
|
||||
archiveFailure: "归档任务失败",
|
||||
dependenciesUpdateSuccess: "依赖关系已更新",
|
||||
blockingUnresolved: "无法解析:{entries}",
|
||||
},
|
||||
archiveAction: {
|
||||
archived: "已归档",
|
||||
|
|
@ -1703,8 +1740,7 @@ export const zh: TranslationTree = {
|
|||
switch: "切换到日记存储?",
|
||||
},
|
||||
message: {
|
||||
migrate:
|
||||
"这将把现有的番茄钟会话数据迁移到日记前置数据。数据将按日期分组并存储在每个日记中。",
|
||||
migrate: "这将把现有的番茄钟会话数据迁移到日记前置数据。数据将按日期分组并存储在每个日记中。",
|
||||
switch: "番茄钟会话数据将存储在日记前置数据中,而不是插件数据文件中。",
|
||||
},
|
||||
whatThisMeans: "这意味着:",
|
||||
|
|
@ -1798,6 +1834,57 @@ export const zh: TranslationTree = {
|
|||
updateFailed: "更新安排日期失败。请重试。",
|
||||
},
|
||||
},
|
||||
taskSelector: {
|
||||
title: "选择任务",
|
||||
placeholder: "输入以搜索任务...",
|
||||
instructions: {
|
||||
navigate: "导航",
|
||||
select: "选择",
|
||||
dismiss: "取消",
|
||||
},
|
||||
notices: {
|
||||
noteNotFound: "找不到笔记 \"{name}\"",
|
||||
},
|
||||
dueDate: {
|
||||
overdue: "截止日期:{date}(逾期)",
|
||||
today: "截止日期:今天",
|
||||
},
|
||||
},
|
||||
timeEntryEditor: {
|
||||
title: "时间条目 - {taskTitle}",
|
||||
addEntry: "添加时间条目",
|
||||
noEntries: "暂无时间条目",
|
||||
deleteEntry: "删除条目",
|
||||
startTime: "开始时间",
|
||||
endTime: "结束时间(如仍在进行则留空)",
|
||||
duration: "持续时间(分钟)",
|
||||
durationDesc: "覆盖计算的持续时间",
|
||||
durationPlaceholder: "输入持续时间(分钟)",
|
||||
description: "描述",
|
||||
descriptionPlaceholder: "你在做什么?",
|
||||
calculatedDuration: "计算结果:{minutes} 分钟",
|
||||
totalTime: "总计 {hours}小时 {minutes}分钟",
|
||||
totalMinutes: "总计 {minutes}分钟",
|
||||
saved: "时间条目已保存",
|
||||
saveFailed: "无法保存时间条目",
|
||||
openFailed: "无法打开时间条目编辑器",
|
||||
noTasksWithEntries: "没有任务有时间条目可供编辑",
|
||||
validation: {
|
||||
missingStartTime: "需要开始时间",
|
||||
endBeforeStart: "结束时间必须在开始时间之后",
|
||||
},
|
||||
},
|
||||
timeTracking: {
|
||||
noTasksAvailable: "没有可用的任务进行时间跟踪",
|
||||
started: "开始跟踪时间:{taskTitle}",
|
||||
startFailed: "无法开始时间跟踪",
|
||||
},
|
||||
timeEntry: {
|
||||
mustHaveSpecificTime: "时间条目必须有具体时间。请在周视图或日视图中选择时间范围。",
|
||||
noTasksAvailable: "没有可用的任务创建时间条目",
|
||||
created: "已为 {taskTitle} 创建时间条目({duration} 分钟)",
|
||||
createFailed: "无法创建时间条目",
|
||||
},
|
||||
},
|
||||
contextMenus: {
|
||||
task: {
|
||||
|
|
@ -1824,7 +1911,7 @@ export const zh: TranslationTree = {
|
|||
renamePlaceholder: "输入新名称",
|
||||
delete: "删除",
|
||||
deleteTitle: "删除文件",
|
||||
deleteMessage: '您确定要删除"{name}"吗?',
|
||||
deleteMessage: "您确定要删除\"{name}\"吗?",
|
||||
deleteConfirm: "删除",
|
||||
copyPath: "复制路径",
|
||||
copyUrl: "复制Obsidian URL",
|
||||
|
|
@ -1864,12 +1951,51 @@ export const zh: TranslationTree = {
|
|||
archiveFailure: "切换任务归档失败:{message}",
|
||||
copyTitleSuccess: "任务标题已复制到剪贴板",
|
||||
copyFailure: "复制到剪贴板失败",
|
||||
renameSuccess: '重命名为"{name}"',
|
||||
renameSuccess: "重命名为\"{name}\"",
|
||||
renameFailure: "重命名文件失败",
|
||||
copyPathSuccess: "文件路径已复制到剪贴板",
|
||||
copyUrlSuccess: "Obsidian URL已复制到剪贴板",
|
||||
updateRecurrenceFailure: "更新任务重复失败:{message}",
|
||||
},
|
||||
dependencies: {
|
||||
title: "依赖关系",
|
||||
addBlockedBy: "添加\"被阻塞\"…",
|
||||
addBlockedByTitle: "添加此任务依赖的任务",
|
||||
addBlocking: "添加\"阻塞中\"…",
|
||||
addBlockingTitle: "添加此任务阻塞的任务",
|
||||
removeBlockedBy: "删除\"被阻塞\"…",
|
||||
removeBlocking: "删除\"阻塞中\"…",
|
||||
inputPlaceholder: "[[任务笔记]]",
|
||||
notices: {
|
||||
noEntries: "请至少输入一个任务",
|
||||
blockedByAdded: "已添加 {count} 个依赖关系",
|
||||
blockedByRemoved: "已删除依赖关系",
|
||||
blockingAdded: "已添加 {count} 个被依赖的任务",
|
||||
blockingRemoved: "已删除被依赖的任务",
|
||||
unresolved: "无法解析:{entries}",
|
||||
noEligibleTasks: "没有匹配的可用任务",
|
||||
updateFailed: "无法更新依赖关系",
|
||||
},
|
||||
},
|
||||
organization: {
|
||||
title: "组织",
|
||||
projects: "项目",
|
||||
addToProject: "添加到项目…",
|
||||
subtasks: "子任务",
|
||||
addSubtasks: "添加子任务…",
|
||||
notices: {
|
||||
alreadyInProject: "任务已在此项目中",
|
||||
alreadySubtask: "任务已是此任务的子任务",
|
||||
addedToProject: "已添加到项目:{project}",
|
||||
addedAsSubtask: "已将 {subtask} 添加为 {parent} 的子任务",
|
||||
addToProjectFailed: "无法将任务添加到项目",
|
||||
addAsSubtaskFailed: "无法将任务添加为子任务",
|
||||
projectSelectFailed: "无法打开项目选择器",
|
||||
subtaskSelectFailed: "无法打开子任务选择器",
|
||||
noEligibleSubtasks: "没有可用的任务可指定为子任务",
|
||||
currentTaskNotFound: "找不到当前任务文件",
|
||||
},
|
||||
},
|
||||
},
|
||||
ics: {
|
||||
showDetails: "显示详情",
|
||||
|
|
@ -1891,7 +2017,7 @@ export const zh: TranslationTree = {
|
|||
taskCreateFailure: "从事件创建任务失败",
|
||||
noteCreated: "笔记创建成功",
|
||||
creationFailure: "打开创建模态框失败",
|
||||
linkSuccess: '已将笔记"{name}"链接到事件',
|
||||
linkSuccess: "已将笔记\"{name}\"链接到事件",
|
||||
linkFailure: "链接笔记失败",
|
||||
linkSelectionFailure: "打开笔记选择失败",
|
||||
},
|
||||
|
|
@ -1949,12 +2075,10 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
icsSubscription: {
|
||||
notices: {
|
||||
calendarNotFound:
|
||||
'找不到日历"{name}"(404)。请检查ICS URL是否正确且日历可公开访问。',
|
||||
calendarAccessDenied:
|
||||
'日历"{name}"访问被拒绝(500)。这可能是由于Microsoft Outlook服务器限制。尝试从日历设置重新生成ICS URL。',
|
||||
fetchRemoteFailed: '获取远程日历"{name}"失败:{error}',
|
||||
readLocalFailed: '读取本地日历"{name}"失败:{error}',
|
||||
calendarNotFound: "找不到日历\"{name}\"(404)。请检查ICS URL是否正确且日历可公开访问。",
|
||||
calendarAccessDenied: "日历\"{name}\"访问被拒绝(500)。这可能是由于Microsoft Outlook服务器限制。尝试从日历设置重新生成ICS URL。",
|
||||
fetchRemoteFailed: "获取远程日历\"{name}\"失败:{error}",
|
||||
readLocalFailed: "读取本地日历\"{name}\"失败:{error}",
|
||||
},
|
||||
},
|
||||
calendarExport: {
|
||||
|
|
@ -2000,8 +2124,7 @@ export const zh: TranslationTree = {
|
|||
noCheckboxTasks: "在当前笔记中未找到复选框任务。",
|
||||
convertingTasks: "正在转换{count}个任务{plural}...",
|
||||
conversionSuccess: "✅ 成功将{count}个任务{plural}转换为TaskNotes!",
|
||||
partialConversion:
|
||||
"转换了{successCount}个任务{successPlural}。{failureCount}个失败。",
|
||||
partialConversion: "转换了{successCount}个任务{successPlural}。{failureCount}个失败。",
|
||||
batchConversionFailed: "批量转换失败。请重试。",
|
||||
invalidParameters: "无效的输入参数。",
|
||||
emptyLine: "当前行为空或不包含有效内容。",
|
||||
|
|
@ -2009,7 +2132,7 @@ export const zh: TranslationTree = {
|
|||
invalidTaskData: "无效的任务数据。",
|
||||
replaceLineFailed: "替换任务行失败。",
|
||||
conversionComplete: "任务已转换:{title}",
|
||||
conversionCompleteShortened: '任务已转换:"{title}"(因长度而缩短文件名)',
|
||||
conversionCompleteShortened: "任务已转换:\"{title}\"(因长度而缩短文件名)",
|
||||
fileExists: "此名称的文件已存在。请重试或重命名任务。",
|
||||
conversionFailed: "转换任务失败。请重试。",
|
||||
},
|
||||
|
|
@ -2035,8 +2158,6 @@ export const zh: TranslationTree = {
|
|||
},
|
||||
notification: {
|
||||
notices: {
|
||||
// NotificationService使用Notice进行应用内通知
|
||||
// 但消息来自提醒内容,所以没有硬编码字符串需要翻译
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
@ -2133,7 +2254,7 @@ export const zh: TranslationTree = {
|
|||
loadSavedView: "加载保存的视图:{name}",
|
||||
deleteView: "删除视图",
|
||||
deleteViewTitle: "删除视图",
|
||||
deleteViewMessage: '您确定要删除视图"{name}"吗?',
|
||||
deleteViewMessage: "您确定要删除视图\"{name}\"吗?",
|
||||
manageAllReminders: "管理所有提醒...",
|
||||
clearAllReminders: "清除所有提醒",
|
||||
customRecurrence: "自定义重复...",
|
||||
|
|
@ -2158,6 +2279,7 @@ export const zh: TranslationTree = {
|
|||
dueDate: "到期日期",
|
||||
scheduledDate: "安排日期",
|
||||
tags: "标签",
|
||||
completedDate: "完成日期",
|
||||
},
|
||||
notices: {
|
||||
propertiesMenuFailed: "显示属性菜单失败",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
import { Modal, App, setIcon } from "obsidian";
|
||||
import TaskNotesPlugin from "../main";
|
||||
import { TranslationKey } from "../i18n";
|
||||
|
||||
interface DeviceCodeInfo {
|
||||
userCode: string;
|
||||
|
|
@ -11,20 +13,25 @@ interface DeviceCodeInfo {
|
|||
* Modal that displays the OAuth Device Flow code and instructions
|
||||
*/
|
||||
export class DeviceCodeModal extends Modal {
|
||||
private plugin: TaskNotesPlugin;
|
||||
private deviceCode: DeviceCodeInfo;
|
||||
private onCancel: () => void;
|
||||
private countdownInterval?: NodeJS.Timeout;
|
||||
private expiresAt: number;
|
||||
private translate: (key: TranslationKey, variables?: Record<string, any>) => string;
|
||||
|
||||
constructor(
|
||||
app: App,
|
||||
plugin: TaskNotesPlugin,
|
||||
deviceCode: DeviceCodeInfo,
|
||||
onCancel: () => void
|
||||
) {
|
||||
super(app);
|
||||
this.plugin = plugin;
|
||||
this.deviceCode = deviceCode;
|
||||
this.onCancel = onCancel;
|
||||
this.expiresAt = Date.now() + (deviceCode.expiresIn * 1000);
|
||||
this.translate = plugin.i18n.translate.bind(plugin.i18n);
|
||||
}
|
||||
|
||||
onOpen(): void {
|
||||
|
|
@ -36,40 +43,40 @@ export class DeviceCodeModal extends Modal {
|
|||
const header = contentEl.createDiv({ cls: "tasknotes-device-code-header" });
|
||||
const headerIcon = header.createSpan({ cls: "tasknotes-device-code-icon" });
|
||||
setIcon(headerIcon, "shield-check");
|
||||
header.createEl("h2", { text: "Google Calendar Authorization", cls: "tasknotes-device-code-title" });
|
||||
header.createEl("h2", { text: this.translate("modals.deviceCode.title"), cls: "tasknotes-device-code-title" });
|
||||
|
||||
// Instructions
|
||||
const instructions = contentEl.createDiv({ cls: "tasknotes-device-code-instructions" });
|
||||
instructions.createEl("p", {
|
||||
text: "To connect your Google Calendar, please follow these steps:",
|
||||
text: this.translate("modals.deviceCode.instructions.intro"),
|
||||
});
|
||||
|
||||
// Steps
|
||||
const stepsList = instructions.createEl("ol", { cls: "tasknotes-device-code-steps" });
|
||||
|
||||
const step1 = stepsList.createEl("li");
|
||||
step1.createSpan({ text: "Open " });
|
||||
step1.createSpan({ text: this.translate("modals.deviceCode.steps.open") + " " });
|
||||
const linkSpan = step1.createEl("a", {
|
||||
text: this.deviceCode.verificationUrl,
|
||||
href: this.deviceCode.verificationUrl,
|
||||
cls: "tasknotes-device-code-link"
|
||||
});
|
||||
linkSpan.setAttribute("target", "_blank");
|
||||
step1.createSpan({ text: " in your browser" });
|
||||
step1.createSpan({ text: " " + this.translate("modals.deviceCode.steps.inBrowser") });
|
||||
|
||||
const step2 = stepsList.createEl("li");
|
||||
step2.createSpan({ text: "Enter this code when prompted:" });
|
||||
step2.createSpan({ text: this.translate("modals.deviceCode.steps.enterCode") });
|
||||
|
||||
const step3 = stepsList.createEl("li");
|
||||
step3.createSpan({ text: "Sign in with your Google account and grant access" });
|
||||
step3.createSpan({ text: this.translate("modals.deviceCode.steps.signIn") });
|
||||
|
||||
const step4 = stepsList.createEl("li");
|
||||
step4.createSpan({ text: "Return to Obsidian (this window will close automatically)" });
|
||||
step4.createSpan({ text: this.translate("modals.deviceCode.steps.returnToObsidian") });
|
||||
|
||||
// Code display
|
||||
const codeContainer = contentEl.createDiv({ cls: "tasknotes-device-code-container" });
|
||||
const codeLabel = codeContainer.createEl("div", {
|
||||
text: "Your Code:",
|
||||
text: this.translate("modals.deviceCode.codeLabel"),
|
||||
cls: "tasknotes-device-code-label"
|
||||
});
|
||||
|
||||
|
|
@ -81,7 +88,7 @@ export class DeviceCodeModal extends Modal {
|
|||
|
||||
const copyIcon = codeBox.createEl("button", {
|
||||
cls: "tasknotes-device-code-copy",
|
||||
attr: { "aria-label": "Copy code" }
|
||||
attr: { "aria-label": this.translate("modals.deviceCode.copyCodeAriaLabel") }
|
||||
});
|
||||
setIcon(copyIcon, "copy");
|
||||
copyIcon.addEventListener("click", () => {
|
||||
|
|
@ -120,7 +127,7 @@ export class DeviceCodeModal extends Modal {
|
|||
setIcon(statusIcon, "loader");
|
||||
statusIcon.addClass("tasknotes-device-code-spinner");
|
||||
statusContainer.createEl("span", {
|
||||
text: "Waiting for authorization...",
|
||||
text: this.translate("modals.deviceCode.waitingForAuthorization"),
|
||||
cls: "tasknotes-device-code-status-text"
|
||||
});
|
||||
|
||||
|
|
@ -129,7 +136,7 @@ export class DeviceCodeModal extends Modal {
|
|||
|
||||
// Open browser button
|
||||
const openButton = buttonContainer.createEl("button", {
|
||||
text: "Open Browser",
|
||||
text: this.translate("modals.deviceCode.openBrowserButton"),
|
||||
cls: "mod-cta"
|
||||
});
|
||||
const openIcon = openButton.createSpan({ cls: "tasknotes-device-code-button-icon" });
|
||||
|
|
@ -142,7 +149,7 @@ export class DeviceCodeModal extends Modal {
|
|||
|
||||
// Cancel button
|
||||
const cancelButton = buttonContainer.createEl("button", {
|
||||
text: "Cancel",
|
||||
text: this.translate("modals.deviceCode.cancelButton"),
|
||||
cls: "tasknotes-device-code-cancel"
|
||||
});
|
||||
const cancelIcon = cancelButton.createSpan({ cls: "tasknotes-device-code-button-icon" });
|
||||
|
|
@ -378,9 +385,9 @@ export class DeviceCodeModal extends Modal {
|
|||
const seconds = Math.floor((remaining % 60000) / 1000);
|
||||
|
||||
if (minutes > 0) {
|
||||
return `Code expires in ${minutes}m ${seconds}s`;
|
||||
return this.translate("modals.deviceCode.expiresMinutesSeconds", { minutes, seconds });
|
||||
} else {
|
||||
return `Code expires in ${seconds}s`;
|
||||
return this.translate("modals.deviceCode.expiresSeconds", { seconds });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import { ICSEvent, TaskInfo, NoteInfo } from "../types";
|
|||
import { ICSNoteCreationModal } from "./ICSNoteCreationModal";
|
||||
import { ICSNoteLinkModal } from "./ICSNoteLinkModal";
|
||||
import { SafeAsync } from "../utils/safeAsync";
|
||||
import { TranslationKey } from "../i18n";
|
||||
|
||||
/**
|
||||
* Modal for displaying ICS event information with note/task creation capabilities
|
||||
|
|
@ -14,12 +15,14 @@ export class ICSEventInfoModal extends Modal {
|
|||
private icsEvent: ICSEvent;
|
||||
private subscriptionName?: string;
|
||||
private relatedNotes: (TaskInfo | NoteInfo)[] = [];
|
||||
private translate: (key: TranslationKey, variables?: Record<string, any>) => string;
|
||||
|
||||
constructor(app: App, plugin: TaskNotesPlugin, icsEvent: ICSEvent, subscriptionName?: string) {
|
||||
super(app);
|
||||
this.plugin = plugin;
|
||||
this.icsEvent = icsEvent;
|
||||
this.subscriptionName = subscriptionName;
|
||||
this.translate = plugin.i18n.translate.bind(plugin.i18n);
|
||||
}
|
||||
|
||||
async onOpen() {
|
||||
|
|
@ -34,14 +37,14 @@ export class ICSEventInfoModal extends Modal {
|
|||
await this.loadRelatedNotes();
|
||||
|
||||
// Header
|
||||
new Setting(contentEl).setName("Calendar Event").setHeading();
|
||||
new Setting(contentEl).setName(this.translate("modals.icsEventInfo.calendarEventHeading")).setHeading();
|
||||
|
||||
// Event title
|
||||
new Setting(contentEl).setName("Title").setDesc(this.icsEvent.title || "Untitled Event");
|
||||
new Setting(contentEl).setName(this.translate("modals.icsEventInfo.titleLabel")).setDesc(this.icsEvent.title || this.translate("ui.icsCard.untitledEvent"));
|
||||
|
||||
// Calendar source
|
||||
if (this.subscriptionName) {
|
||||
new Setting(contentEl).setName("Calendar").setDesc(this.subscriptionName);
|
||||
new Setting(contentEl).setName(this.translate("modals.icsEventInfo.calendarLabel")).setDesc(this.subscriptionName);
|
||||
}
|
||||
|
||||
// Date/time
|
||||
|
|
@ -69,21 +72,21 @@ export class ICSEventInfoModal extends Modal {
|
|||
}
|
||||
}
|
||||
|
||||
new Setting(contentEl).setName("Date & Time").setDesc(dateText);
|
||||
new Setting(contentEl).setName(this.translate("modals.icsEventInfo.dateTimeLabel")).setDesc(dateText);
|
||||
|
||||
// Location
|
||||
if (this.icsEvent.location) {
|
||||
new Setting(contentEl).setName("Location").setDesc(this.icsEvent.location);
|
||||
new Setting(contentEl).setName(this.translate("modals.icsEventInfo.locationLabel")).setDesc(this.icsEvent.location);
|
||||
}
|
||||
|
||||
// Description
|
||||
if (this.icsEvent.description) {
|
||||
new Setting(contentEl).setName("Description").setDesc(this.icsEvent.description);
|
||||
new Setting(contentEl).setName(this.translate("modals.icsEventInfo.descriptionLabel")).setDesc(this.icsEvent.description);
|
||||
}
|
||||
|
||||
// URL
|
||||
if (this.icsEvent.url) {
|
||||
const urlSetting = new Setting(contentEl).setName("URL");
|
||||
const urlSetting = new Setting(contentEl).setName(this.translate("modals.icsEventInfo.urlLabel"));
|
||||
const link = urlSetting.descEl.createEl("a", {
|
||||
cls: "external-link",
|
||||
href: this.icsEvent.url,
|
||||
|
|
@ -93,16 +96,17 @@ export class ICSEventInfoModal extends Modal {
|
|||
}
|
||||
|
||||
// Related notes section
|
||||
new Setting(contentEl).setName("Related Notes & Tasks").setHeading();
|
||||
new Setting(contentEl).setName(this.translate("modals.icsEventInfo.relatedNotesHeading")).setHeading();
|
||||
|
||||
if (this.relatedNotes.length === 0) {
|
||||
new Setting(contentEl).setDesc("No related notes or tasks found for this event.");
|
||||
new Setting(contentEl).setDesc(this.translate("modals.icsEventInfo.noRelatedItems"));
|
||||
} else {
|
||||
this.relatedNotes.forEach((note) => {
|
||||
const isTask = this.isTaskNote(note);
|
||||
const typeLabel = isTask ? this.translate("modals.icsEventInfo.typeTask") : this.translate("modals.icsEventInfo.typeNote");
|
||||
new Setting(contentEl)
|
||||
.setName(note.title)
|
||||
.setDesc(`Type: ${isTask ? "Task" : "Note"}`)
|
||||
.setDesc(`Type: ${typeLabel}`)
|
||||
.addButton((button) => {
|
||||
button.setButtonText("Open").onClick(async () => {
|
||||
await this.safeOpenFile(note.path);
|
||||
|
|
@ -113,11 +117,11 @@ export class ICSEventInfoModal extends Modal {
|
|||
}
|
||||
|
||||
// Actions section
|
||||
new Setting(contentEl).setName("Actions").setHeading();
|
||||
new Setting(contentEl).setName(this.translate("modals.icsEventInfo.actionsHeading")).setHeading();
|
||||
|
||||
new Setting(contentEl)
|
||||
.setName("Create from Event")
|
||||
.setDesc("Create a new note or task from this calendar event")
|
||||
.setName(this.translate("modals.icsEventInfo.createFromEventLabel"))
|
||||
.setDesc(this.translate("modals.icsEventInfo.createFromEventDesc"))
|
||||
.addButton((button) => {
|
||||
button.setButtonText("Create Note").onClick(() => {
|
||||
console.log("Create Note clicked");
|
||||
|
|
@ -132,8 +136,8 @@ export class ICSEventInfoModal extends Modal {
|
|||
});
|
||||
|
||||
new Setting(contentEl)
|
||||
.setName("Link Existing")
|
||||
.setDesc("Link an existing note to this calendar event")
|
||||
.setName(this.translate("modals.icsEventInfo.linkExistingLabel"))
|
||||
.setDesc(this.translate("modals.icsEventInfo.linkExistingDesc"))
|
||||
.addButton((button) => {
|
||||
button.setButtonText("Link Note").onClick(() => {
|
||||
console.log("Link Note clicked");
|
||||
|
|
@ -167,7 +171,7 @@ export class ICSEventInfoModal extends Modal {
|
|||
icsEvent: this.icsEvent,
|
||||
subscriptionName: this.subscriptionName || "Unknown Calendar",
|
||||
onContentCreated: async (file: TFile, info: NoteInfo) => {
|
||||
new Notice("Note created successfully");
|
||||
new Notice(this.translate("notices.icsNoteCreatedSuccess"));
|
||||
this.refreshRelatedNotes();
|
||||
await this.safeOpenFile(file.path);
|
||||
},
|
||||
|
|
@ -176,7 +180,7 @@ export class ICSEventInfoModal extends Modal {
|
|||
modal.open();
|
||||
} catch (error) {
|
||||
console.error("Error opening creation modal:", error);
|
||||
new Notice("Failed to open creation modal");
|
||||
new Notice(this.translate("notices.icsCreationModalOpenFailed"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -191,7 +195,7 @@ export class ICSEventInfoModal extends Modal {
|
|||
file.path,
|
||||
this.icsEvent
|
||||
);
|
||||
new Notice(`Linked note "${file.name}" to ICS event`);
|
||||
new Notice(this.translate("notices.icsNoteLinkSuccess", { fileName: file.name }));
|
||||
this.refreshRelatedNotes();
|
||||
},
|
||||
{
|
||||
|
|
@ -211,7 +215,7 @@ export class ICSEventInfoModal extends Modal {
|
|||
await SafeAsync.execute(
|
||||
async () => {
|
||||
const result = await this.plugin.icsNoteService.createTaskFromICS(this.icsEvent);
|
||||
new Notice(`Task created: ${result.taskInfo.title}`);
|
||||
new Notice(this.translate("notices.icsTaskCreatedSuccess", { taskTitle: result.taskInfo.title }));
|
||||
|
||||
// Open the created task file
|
||||
await this.safeOpenFile(result.file.path);
|
||||
|
|
@ -230,7 +234,7 @@ export class ICSEventInfoModal extends Modal {
|
|||
async () => {
|
||||
await this.loadRelatedNotes();
|
||||
await this.renderContent();
|
||||
new Notice("Related notes refreshed");
|
||||
new Notice(this.translate("notices.icsRelatedItemsRefreshed"));
|
||||
},
|
||||
{
|
||||
errorMessage: "Failed to refresh related notes",
|
||||
|
|
@ -256,12 +260,12 @@ export class ICSEventInfoModal extends Modal {
|
|||
if (file instanceof TFile) {
|
||||
await this.app.workspace.getLeaf().openFile(file);
|
||||
} else {
|
||||
new Notice("File not found or invalid");
|
||||
new Notice(this.translate("notices.icsFileNotFound"));
|
||||
console.error("Invalid file path or file not found:", filePath);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Error opening file:", error);
|
||||
new Notice("Failed to open file");
|
||||
new Notice(this.translate("notices.icsFileOpenFailed"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import TaskNotesPlugin from "../main";
|
|||
import { ICSEvent, NoteInfo } from "../types";
|
||||
import { format } from "date-fns";
|
||||
import { SafeAsync } from "../utils/safeAsync";
|
||||
import { TranslationKey } from "../i18n";
|
||||
|
||||
export interface ICSNoteCreationOptions {
|
||||
icsEvent: ICSEvent;
|
||||
|
|
@ -18,6 +19,7 @@ export class ICSNoteCreationModal extends Modal {
|
|||
private folder = "";
|
||||
private template = "";
|
||||
private useTemplate = false;
|
||||
private translate: (key: TranslationKey, variables?: Record<string, any>) => string;
|
||||
|
||||
// UI elements
|
||||
private titleInput: HTMLInputElement;
|
||||
|
|
@ -30,6 +32,7 @@ export class ICSNoteCreationModal extends Modal {
|
|||
super(app);
|
||||
this.plugin = plugin;
|
||||
this.options = options;
|
||||
this.translate = plugin.i18n.translate.bind(plugin.i18n);
|
||||
|
||||
// Set initial values
|
||||
this.title = this.generateDefaultTitle();
|
||||
|
|
@ -52,7 +55,7 @@ export class ICSNoteCreationModal extends Modal {
|
|||
|
||||
// Modal header
|
||||
const header = contentEl.createDiv("modal-header");
|
||||
header.createEl("h2", { text: "Create from ICS Event" });
|
||||
header.createEl("h2", { text: this.translate("modals.icsNoteCreation.heading") });
|
||||
|
||||
// Event info preview
|
||||
const eventPreview = contentEl.createDiv("ics-event-preview");
|
||||
|
|
@ -62,8 +65,8 @@ export class ICSNoteCreationModal extends Modal {
|
|||
|
||||
// Title input
|
||||
new Setting(contentEl)
|
||||
.setName("Title")
|
||||
.setDesc("Title for the new content")
|
||||
.setName(this.translate("modals.icsNoteCreation.titleLabel"))
|
||||
.setDesc(this.translate("modals.icsNoteCreation.titleDesc"))
|
||||
.addText((text) => {
|
||||
this.titleInput = text.inputEl;
|
||||
text.setValue(this.title).onChange((value) => {
|
||||
|
|
@ -74,12 +77,12 @@ export class ICSNoteCreationModal extends Modal {
|
|||
|
||||
// Folder input
|
||||
new Setting(contentEl)
|
||||
.setName("Folder")
|
||||
.setDesc("Destination folder (leave empty for vault root)")
|
||||
.setName(this.translate("modals.icsNoteCreation.folderLabel"))
|
||||
.setDesc(this.translate("modals.icsNoteCreation.folderDesc"))
|
||||
.addText((text) => {
|
||||
this.folderInput = text.inputEl;
|
||||
text.setValue(this.folder)
|
||||
.setPlaceholder("folder/subfolder")
|
||||
.setPlaceholder(this.translate("modals.icsNoteCreation.folderPlaceholder"))
|
||||
.onChange((value) => {
|
||||
this.folder = value;
|
||||
this.updatePreview();
|
||||
|
|
@ -98,7 +101,7 @@ export class ICSNoteCreationModal extends Modal {
|
|||
const buttonContainer = contentEl.createDiv("modal-button-container");
|
||||
|
||||
const createButton = buttonContainer.createEl("button", {
|
||||
text: "Create",
|
||||
text: this.translate("modals.icsNoteCreation.createButton"),
|
||||
cls: "mod-cta",
|
||||
});
|
||||
createButton.onclick = (e) => {
|
||||
|
|
@ -109,7 +112,7 @@ export class ICSNoteCreationModal extends Modal {
|
|||
};
|
||||
|
||||
const cancelButton = buttonContainer.createEl("button", {
|
||||
text: "Cancel",
|
||||
text: this.translate("common.cancel"),
|
||||
});
|
||||
cancelButton.onclick = (e) => {
|
||||
e.preventDefault();
|
||||
|
|
@ -136,7 +139,7 @@ export class ICSNoteCreationModal extends Modal {
|
|||
: icsEvent.start;
|
||||
const startDate = new Date(startDateStr);
|
||||
const startDiv = details.createDiv();
|
||||
startDiv.createEl("strong", { text: "Start: " });
|
||||
startDiv.createEl("strong", { text: this.translate("modals.icsNoteCreation.startLabel") });
|
||||
startDiv.appendText(format(startDate, "PPPp"));
|
||||
}
|
||||
|
||||
|
|
@ -146,18 +149,18 @@ export class ICSNoteCreationModal extends Modal {
|
|||
: icsEvent.end;
|
||||
const endDate = new Date(endDateStr);
|
||||
const endDiv = details.createDiv();
|
||||
endDiv.createEl("strong", { text: "End: " });
|
||||
endDiv.createEl("strong", { text: this.translate("modals.icsNoteCreation.endLabel") });
|
||||
endDiv.appendText(format(endDate, "PPPp"));
|
||||
}
|
||||
|
||||
if (icsEvent.location) {
|
||||
const locationDiv = details.createDiv();
|
||||
locationDiv.createEl("strong", { text: "Location: " });
|
||||
locationDiv.createEl("strong", { text: this.translate("modals.icsNoteCreation.locationLabel") });
|
||||
locationDiv.appendText(icsEvent.location);
|
||||
}
|
||||
|
||||
const calendarDiv = details.createDiv();
|
||||
calendarDiv.createEl("strong", { text: "Calendar: " });
|
||||
calendarDiv.createEl("strong", { text: this.translate("modals.icsNoteCreation.calendarLabel") });
|
||||
calendarDiv.appendText(subscriptionName);
|
||||
}
|
||||
|
||||
|
|
@ -165,8 +168,8 @@ export class ICSNoteCreationModal extends Modal {
|
|||
this.templateContainer.empty();
|
||||
|
||||
new Setting(this.templateContainer)
|
||||
.setName("Use Template")
|
||||
.setDesc("Apply a template when creating the content")
|
||||
.setName(this.translate("modals.icsNoteCreation.useTemplateLabel"))
|
||||
.setDesc(this.translate("modals.icsNoteCreation.useTemplateDesc"))
|
||||
.addToggle((toggle) => {
|
||||
toggle.setValue(this.useTemplate).onChange((value) => {
|
||||
this.useTemplate = value;
|
||||
|
|
@ -177,12 +180,12 @@ export class ICSNoteCreationModal extends Modal {
|
|||
|
||||
if (this.useTemplate) {
|
||||
new Setting(this.templateContainer)
|
||||
.setName("Template Path")
|
||||
.setDesc("Path to the template file")
|
||||
.setName(this.translate("modals.icsNoteCreation.templatePathLabel"))
|
||||
.setDesc(this.translate("modals.icsNoteCreation.templatePathDesc"))
|
||||
.addText((text) => {
|
||||
this.templateInput = text.inputEl;
|
||||
text.setValue(this.template)
|
||||
.setPlaceholder("templates/ics-note-template.md")
|
||||
.setPlaceholder(this.translate("modals.icsNoteCreation.templatePathPlaceholder"))
|
||||
.onChange((value) => {
|
||||
this.template = value;
|
||||
this.updatePreview();
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ import {
|
|||
getAllDailyNotes,
|
||||
appHasDailyNotesPluginLoaded,
|
||||
} from "obsidian-daily-notes-interface";
|
||||
import { TranslationKey } from "../i18n";
|
||||
|
||||
export interface TimeblockCreationOptions {
|
||||
date: string; // YYYY-MM-DD format
|
||||
|
|
@ -30,6 +31,7 @@ export interface TimeblockCreationOptions {
|
|||
export class TimeblockCreationModal extends Modal {
|
||||
plugin: TaskNotesPlugin;
|
||||
options: TimeblockCreationOptions;
|
||||
private translate: (key: TranslationKey, variables?: Record<string, any>) => string;
|
||||
|
||||
// Form fields
|
||||
private titleInput: HTMLInputElement;
|
||||
|
|
@ -46,6 +48,7 @@ export class TimeblockCreationModal extends Modal {
|
|||
super(app);
|
||||
this.plugin = plugin;
|
||||
this.options = options;
|
||||
this.translate = plugin.i18n.translate.bind(plugin.i18n);
|
||||
}
|
||||
|
||||
onOpen() {
|
||||
|
|
@ -53,22 +56,22 @@ export class TimeblockCreationModal extends Modal {
|
|||
contentEl.empty();
|
||||
contentEl.addClass("timeblock-creation-modal");
|
||||
|
||||
new Setting(contentEl).setName("Create timeblock").setHeading();
|
||||
new Setting(contentEl).setName(this.translate("modals.timeblockCreation.heading")).setHeading();
|
||||
|
||||
// Date display (read-only)
|
||||
const dateDisplay = contentEl.createDiv({ cls: "timeblock-date-display" });
|
||||
dateDisplay.createEl("strong", { text: "Date: " });
|
||||
dateDisplay.createEl("strong", { text: this.translate("modals.timeblockCreation.dateLabel") });
|
||||
// Parse the date string to get a proper date object for display (using local for UI)
|
||||
const dateObj = parseDateAsLocal(this.options.date);
|
||||
dateDisplay.createSpan({ text: dateObj.toLocaleDateString() });
|
||||
|
||||
// Title field
|
||||
new Setting(contentEl)
|
||||
.setName("Title")
|
||||
.setDesc("Title for your timeblock")
|
||||
.setName(this.translate("modals.timeblockCreation.titleLabel"))
|
||||
.setDesc(this.translate("modals.timeblockCreation.titleDesc"))
|
||||
.addText((text) => {
|
||||
this.titleInput = text.inputEl;
|
||||
text.setPlaceholder("e.g., Deep work session")
|
||||
text.setPlaceholder(this.translate("modals.timeblockCreation.titlePlaceholder"))
|
||||
.setValue(this.options.prefilledTitle || "")
|
||||
.onChange(() => this.validateForm());
|
||||
// Focus on title input
|
||||
|
|
@ -79,22 +82,22 @@ export class TimeblockCreationModal extends Modal {
|
|||
const timeContainer = contentEl.createDiv({ cls: "timeblock-time-container" });
|
||||
|
||||
new Setting(timeContainer)
|
||||
.setName("Start time")
|
||||
.setDesc("When the timeblock starts")
|
||||
.setName(this.translate("modals.timeblockCreation.startTimeLabel"))
|
||||
.setDesc(this.translate("modals.timeblockCreation.startTimeDesc"))
|
||||
.addText((text) => {
|
||||
this.startTimeInput = text.inputEl;
|
||||
text.setPlaceholder("09:00")
|
||||
text.setPlaceholder(this.translate("modals.timeblockCreation.startTimePlaceholder"))
|
||||
.setValue(this.options.startTime || "")
|
||||
.onChange(() => this.validateForm());
|
||||
this.startTimeInput.type = "time";
|
||||
});
|
||||
|
||||
new Setting(timeContainer)
|
||||
.setName("End time")
|
||||
.setDesc("When the timeblock ends")
|
||||
.setName(this.translate("modals.timeblockCreation.endTimeLabel"))
|
||||
.setDesc(this.translate("modals.timeblockCreation.endTimeDesc"))
|
||||
.addText((text) => {
|
||||
this.endTimeInput = text.inputEl;
|
||||
text.setPlaceholder("11:00")
|
||||
text.setPlaceholder(this.translate("modals.timeblockCreation.endTimePlaceholder"))
|
||||
.setValue(this.options.endTime || "")
|
||||
.onChange(() => this.validateForm());
|
||||
this.endTimeInput.type = "time";
|
||||
|
|
@ -102,32 +105,32 @@ export class TimeblockCreationModal extends Modal {
|
|||
|
||||
// Description (optional)
|
||||
new Setting(contentEl)
|
||||
.setName("Description")
|
||||
.setDesc("Optional description for the timeblock")
|
||||
.setName(this.translate("modals.timeblockCreation.descriptionLabel"))
|
||||
.setDesc(this.translate("modals.timeblockCreation.descriptionDesc"))
|
||||
.addTextArea((text) => {
|
||||
this.descriptionInput = text.inputEl;
|
||||
text.setPlaceholder("Focus on new features, no interruptions").setValue("");
|
||||
text.setPlaceholder(this.translate("modals.timeblockCreation.descriptionPlaceholder")).setValue("");
|
||||
this.descriptionInput.rows = 3;
|
||||
});
|
||||
|
||||
// Color (optional)
|
||||
new Setting(contentEl)
|
||||
.setName("Color")
|
||||
.setDesc("Optional color for the timeblock")
|
||||
.setName(this.translate("modals.timeblockCreation.colorLabel"))
|
||||
.setDesc(this.translate("modals.timeblockCreation.colorDesc"))
|
||||
.addText((text) => {
|
||||
this.colorInput = text.inputEl;
|
||||
text.setPlaceholder("#3b82f6").setValue("#6366f1"); // Default indigo color
|
||||
text.setPlaceholder(this.translate("modals.timeblockCreation.colorPlaceholder")).setValue("#6366f1"); // Default indigo color
|
||||
this.colorInput.type = "color";
|
||||
});
|
||||
|
||||
// Attachments (optional)
|
||||
new Setting(contentEl)
|
||||
.setName("Attachments")
|
||||
.setDesc("Files or notes to link to this timeblock")
|
||||
.setName(this.translate("modals.timeblockCreation.attachmentsLabel"))
|
||||
.setDesc(this.translate("modals.timeblockCreation.attachmentsDesc"))
|
||||
.addButton((button) => {
|
||||
button
|
||||
.setButtonText("Add Attachment")
|
||||
.setTooltip("Select a file or note using fuzzy search")
|
||||
.setButtonText(this.translate("modals.timeblockCreation.addAttachmentButton"))
|
||||
.setTooltip(this.translate("modals.timeblockCreation.addAttachmentTooltip"))
|
||||
.onClick(() => {
|
||||
const modal = new AttachmentSelectModal(this.app, this.plugin, (file) => {
|
||||
this.addAttachment(file);
|
||||
|
|
@ -143,11 +146,11 @@ export class TimeblockCreationModal extends Modal {
|
|||
// Buttons
|
||||
const buttonContainer = contentEl.createDiv({ cls: "timeblock-modal-buttons" });
|
||||
|
||||
const cancelButton = buttonContainer.createEl("button", { text: "Cancel" });
|
||||
const cancelButton = buttonContainer.createEl("button", { text: this.translate("common.cancel") });
|
||||
cancelButton.addEventListener("click", () => this.close());
|
||||
|
||||
const createButton = buttonContainer.createEl("button", {
|
||||
text: "Create timeblock",
|
||||
text: this.translate("modals.timeblockCreation.createButton"),
|
||||
cls: "mod-cta timeblock-create-button",
|
||||
});
|
||||
createButton.addEventListener("click", () => this.handleSubmit());
|
||||
|
|
@ -194,7 +197,7 @@ export class TimeblockCreationModal extends Modal {
|
|||
const description = this.descriptionInput.value.trim();
|
||||
const color = this.colorInput.value;
|
||||
if (!title || !startTime || !endTime) {
|
||||
new Notice("Please fill in all required fields");
|
||||
new Notice(this.translate("notices.timeblockRequiredFieldsMissing"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -308,13 +311,13 @@ export class TimeblockCreationModal extends Modal {
|
|||
private addAttachment(file: TAbstractFile): void {
|
||||
// Avoid duplicates
|
||||
if (this.selectedAttachments.some((existing) => existing.path === file.path)) {
|
||||
new Notice(`"${file.name}" is already attached`);
|
||||
new Notice(this.translate("notices.timeblockAttachmentExists", { fileName: file.name }));
|
||||
return;
|
||||
}
|
||||
|
||||
this.selectedAttachments.push(file);
|
||||
this.renderAttachmentsList();
|
||||
new Notice(`Added "${file.name}" as attachment`);
|
||||
new Notice(this.translate("notices.timeblockAttachmentAdded", { fileName: file.name }));
|
||||
}
|
||||
|
||||
private removeAttachment(file: TAbstractFile): void {
|
||||
|
|
@ -322,7 +325,7 @@ export class TimeblockCreationModal extends Modal {
|
|||
(existing) => existing.path !== file.path
|
||||
);
|
||||
this.renderAttachmentsList();
|
||||
new Notice(`Removed "${file.name}" from attachments`);
|
||||
new Notice(this.translate("notices.timeblockAttachmentRemoved", { fileName: file.name }));
|
||||
}
|
||||
|
||||
private renderAttachmentsList(): void {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ import {
|
|||
appHasDailyNotesPluginLoaded,
|
||||
} from "obsidian-daily-notes-interface";
|
||||
import { formatDateForStorage } from "../utils/dateUtils";
|
||||
import { TranslationKey } from "../i18n";
|
||||
|
||||
export interface TimeBlock {
|
||||
title: string;
|
||||
|
|
@ -37,6 +38,7 @@ export class TimeblockInfoModal extends Modal {
|
|||
private timeblockDate: string;
|
||||
private plugin: TaskNotesPlugin;
|
||||
private originalTimeblock: TimeBlock;
|
||||
private translate: (key: TranslationKey, variables?: Record<string, any>) => string;
|
||||
|
||||
// Form fields
|
||||
private titleInput: HTMLInputElement;
|
||||
|
|
@ -60,6 +62,7 @@ export class TimeblockInfoModal extends Modal {
|
|||
this.originalTimeblock = timeblock; // Keep original for comparison
|
||||
this.eventDate = eventDate;
|
||||
this.timeblockDate = timeblockDate || formatDateForStorage(eventDate);
|
||||
this.translate = plugin.i18n.translate.bind(plugin.i18n);
|
||||
}
|
||||
|
||||
async onOpen() {
|
||||
|
|
@ -67,32 +70,32 @@ export class TimeblockInfoModal extends Modal {
|
|||
contentEl.empty();
|
||||
contentEl.addClass("timeblock-info-modal");
|
||||
|
||||
new Setting(contentEl).setName("Edit Timeblock").setHeading();
|
||||
new Setting(contentEl).setName(this.translate("modals.timeblockInfo.editHeading")).setHeading();
|
||||
|
||||
// Date and time display (read-only)
|
||||
const dateDisplay = contentEl.createDiv({ cls: "timeblock-date-display" });
|
||||
dateDisplay.createEl("strong", { text: "Date & Time: " });
|
||||
dateDisplay.createEl("strong", { text: this.translate("modals.timeblockInfo.dateTimeLabel") });
|
||||
const dateText = `${this.eventDate.toLocaleDateString()} from ${this.timeblock.startTime} to ${this.timeblock.endTime}`;
|
||||
dateDisplay.createSpan({ text: dateText });
|
||||
|
||||
// Title field (editable)
|
||||
new Setting(contentEl)
|
||||
.setName("Title")
|
||||
.setDesc("Title for your timeblock")
|
||||
.setName(this.translate("modals.timeblockInfo.titleLabel"))
|
||||
.setDesc(this.translate("modals.timeblockInfo.titleDesc"))
|
||||
.addText((text) => {
|
||||
this.titleInput = text.inputEl;
|
||||
text.setPlaceholder("e.g., Deep work session")
|
||||
text.setPlaceholder(this.translate("modals.timeblockInfo.titlePlaceholder"))
|
||||
.setValue(this.timeblock.title || "")
|
||||
.onChange(() => this.validateForm());
|
||||
});
|
||||
|
||||
// Description (editable)
|
||||
new Setting(contentEl)
|
||||
.setName("Description")
|
||||
.setDesc("Optional description for the timeblock")
|
||||
.setName(this.translate("modals.timeblockInfo.descriptionLabel"))
|
||||
.setDesc(this.translate("modals.timeblockInfo.descriptionDesc"))
|
||||
.addTextArea((text) => {
|
||||
this.descriptionInput = text.inputEl;
|
||||
text.setPlaceholder("Focus on new features, no interruptions").setValue(
|
||||
text.setPlaceholder(this.translate("modals.timeblockInfo.descriptionPlaceholder")).setValue(
|
||||
this.timeblock.description || ""
|
||||
);
|
||||
this.descriptionInput.rows = 3;
|
||||
|
|
@ -100,22 +103,22 @@ export class TimeblockInfoModal extends Modal {
|
|||
|
||||
// Color (editable)
|
||||
new Setting(contentEl)
|
||||
.setName("Color")
|
||||
.setDesc("Optional color for the timeblock")
|
||||
.setName(this.translate("modals.timeblockInfo.colorLabel"))
|
||||
.setDesc(this.translate("modals.timeblockInfo.colorDesc"))
|
||||
.addText((text) => {
|
||||
this.colorInput = text.inputEl;
|
||||
text.setPlaceholder("#3b82f6").setValue(this.timeblock.color || "#6366f1");
|
||||
text.setPlaceholder(this.translate("modals.timeblockInfo.colorPlaceholder")).setValue(this.timeblock.color || "#6366f1");
|
||||
this.colorInput.type = "color";
|
||||
});
|
||||
|
||||
// Attachments (editable)
|
||||
new Setting(contentEl)
|
||||
.setName("Attachments")
|
||||
.setDesc("Files or notes linked to this timeblock")
|
||||
.setName(this.translate("modals.timeblockInfo.attachmentsLabel"))
|
||||
.setDesc(this.translate("modals.timeblockInfo.attachmentsDesc"))
|
||||
.addButton((button) => {
|
||||
button
|
||||
.setButtonText("Add Attachment")
|
||||
.setTooltip("Select a file or note using fuzzy search")
|
||||
.setButtonText(this.translate("modals.timeblockInfo.addAttachmentButton"))
|
||||
.setTooltip(this.translate("modals.timeblockInfo.addAttachmentTooltip"))
|
||||
.onClick(() => {
|
||||
const modal = new AttachmentSelectModal(this.app, this.plugin, (file) => {
|
||||
this.addAttachment(file);
|
||||
|
|
@ -140,7 +143,7 @@ export class TimeblockInfoModal extends Modal {
|
|||
|
||||
// Delete button (left side)
|
||||
const deleteButton = buttonContainer.createEl("button", {
|
||||
text: "Delete Timeblock",
|
||||
text: this.translate("modals.timeblockInfo.deleteButton"),
|
||||
cls: "mod-warning timeblock-delete-button",
|
||||
});
|
||||
deleteButton.addEventListener("click", () => this.handleDelete());
|
||||
|
|
@ -150,11 +153,11 @@ export class TimeblockInfoModal extends Modal {
|
|||
rightButtons.style.display = "flex";
|
||||
rightButtons.style.gap = "8px";
|
||||
|
||||
const cancelButton = rightButtons.createEl("button", { text: "Cancel" });
|
||||
const cancelButton = rightButtons.createEl("button", { text: this.translate("common.cancel") });
|
||||
cancelButton.addEventListener("click", () => this.close());
|
||||
|
||||
const saveButton = rightButtons.createEl("button", {
|
||||
text: "Save Changes",
|
||||
text: this.translate("modals.timeblockInfo.saveButton"),
|
||||
cls: "mod-cta timeblock-save-button",
|
||||
});
|
||||
saveButton.addEventListener("click", () => this.handleSave());
|
||||
|
|
@ -196,13 +199,13 @@ export class TimeblockInfoModal extends Modal {
|
|||
private addAttachment(file: TAbstractFile): void {
|
||||
// Avoid duplicates
|
||||
if (this.selectedAttachments.some((existing) => existing.path === file.path)) {
|
||||
new Notice(`"${file.name}" is already attached`);
|
||||
new Notice(this.translate("notices.timeblockAttachmentExists", { fileName: file.name }));
|
||||
return;
|
||||
}
|
||||
|
||||
this.selectedAttachments.push(file);
|
||||
this.renderAttachmentsList();
|
||||
new Notice(`Added "${file.name}" as attachment`);
|
||||
new Notice(this.translate("notices.timeblockAttachmentAdded", { fileName: file.name }));
|
||||
}
|
||||
|
||||
private removeAttachment(file: TAbstractFile): void {
|
||||
|
|
@ -210,14 +213,14 @@ export class TimeblockInfoModal extends Modal {
|
|||
(existing) => existing.path !== file.path
|
||||
);
|
||||
this.renderAttachmentsList();
|
||||
new Notice(`Removed "${file.name}" from attachments`);
|
||||
new Notice(this.translate("notices.timeblockAttachmentRemoved", { fileName: file.name }));
|
||||
}
|
||||
|
||||
private openAttachment(file: TAbstractFile): void {
|
||||
if (file instanceof TFile) {
|
||||
this.app.workspace.getLeaf(false).openFile(file);
|
||||
} else {
|
||||
new Notice(`Cannot open "${file.name}" - file type not supported`);
|
||||
new Notice(this.translate("notices.timeblockFileTypeNotSupported", { fileName: file.name }));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -271,7 +274,7 @@ export class TimeblockInfoModal extends Modal {
|
|||
// Validate inputs
|
||||
const title = this.titleInput.value.trim();
|
||||
if (!title) {
|
||||
new Notice("Please enter a title for the timeblock");
|
||||
new Notice(this.translate("notices.timeblockTitleRequired"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -292,11 +295,11 @@ export class TimeblockInfoModal extends Modal {
|
|||
// Refresh calendar views
|
||||
this.plugin.emitter.trigger("data-changed");
|
||||
|
||||
new Notice(`Timeblock "${title}" updated successfully`);
|
||||
new Notice(this.translate("notices.timeblockUpdatedSuccess", { title }));
|
||||
this.close();
|
||||
} catch (error) {
|
||||
console.error("Error updating timeblock:", error);
|
||||
new Notice("Failed to update timeblock. Check console for details.");
|
||||
new Notice(this.translate("notices.timeblockUpdateFailed"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -377,18 +380,18 @@ export class TimeblockInfoModal extends Modal {
|
|||
// Refresh calendar views
|
||||
this.plugin.emitter.trigger("data-changed");
|
||||
|
||||
new Notice(`Timeblock "${this.timeblock.title}" deleted successfully`);
|
||||
new Notice(this.translate("notices.timeblockDeletedSuccess", { title: this.timeblock.title }));
|
||||
this.close();
|
||||
} catch (error) {
|
||||
console.error("Error deleting timeblock:", error);
|
||||
new Notice("Failed to delete timeblock. Check console for details.");
|
||||
new Notice(this.translate("notices.timeblockDeleteFailed"));
|
||||
}
|
||||
}
|
||||
|
||||
private async showDeleteConfirmation(): Promise<boolean> {
|
||||
return new Promise((resolve) => {
|
||||
const modal = new Modal(this.app);
|
||||
modal.titleEl.setText("Delete Timeblock");
|
||||
modal.titleEl.setText(this.translate("modals.timeblockInfo.deleteConfirmationTitle"));
|
||||
|
||||
const content = modal.contentEl;
|
||||
content.createEl("p", {
|
||||
|
|
@ -405,7 +408,7 @@ export class TimeblockInfoModal extends Modal {
|
|||
buttonContainer.style.gap = "8px";
|
||||
buttonContainer.style.marginTop = "20px";
|
||||
|
||||
const cancelBtn = buttonContainer.createEl("button", { text: "Cancel" });
|
||||
const cancelBtn = buttonContainer.createEl("button", { text: this.translate("common.cancel") });
|
||||
cancelBtn.addEventListener("click", () => {
|
||||
modal.close();
|
||||
resolve(false);
|
||||
|
|
|
|||
|
|
@ -280,6 +280,7 @@ export class OAuthService {
|
|||
let cancelled = false;
|
||||
const modal = new DeviceCodeModal(
|
||||
this.plugin.app,
|
||||
this.plugin,
|
||||
{
|
||||
userCode: user_code,
|
||||
verificationUrl: verification_uri,
|
||||
|
|
|
|||
|
|
@ -2172,7 +2172,8 @@ export class FilterBar extends EventEmitter {
|
|||
(this.currentQuery as any).subgroupKey = key as any;
|
||||
this.emitImmediateQueryChange();
|
||||
this.updateDisplaySection();
|
||||
}
|
||||
},
|
||||
this.plugin
|
||||
);
|
||||
|
||||
// Show menu at mouse position
|
||||
|
|
|
|||
|
|
@ -660,7 +660,7 @@ export class AgendaView extends ItemView implements OptimizedView {
|
|||
{ value: "7", text: "7 days" },
|
||||
{ value: "14", text: "14 days" },
|
||||
{ value: "30", text: "30 days" },
|
||||
{ value: "week", text: "This week" },
|
||||
{ value: "week", text: this.translate("views.agenda.periods.thisWeek") },
|
||||
];
|
||||
|
||||
periods.forEach((period) => {
|
||||
|
|
@ -1258,10 +1258,10 @@ export class AgendaView extends ItemView implements OptimizedView {
|
|||
cls: "agenda-view__empty-description",
|
||||
});
|
||||
const tipMessage = emptyMessage.createEl("p", { cls: "agenda-view__empty-tip" });
|
||||
tipMessage.createEl("span", { text: "Tip: " });
|
||||
tipMessage.createEl("span", { text: this.translate("views.agenda.tipPrefix") });
|
||||
tipMessage.appendChild(
|
||||
document.createTextNode(
|
||||
"Create tasks with due or scheduled dates, or add notes to see them here."
|
||||
this.translate("views.agenda.empty.helpText")
|
||||
)
|
||||
);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -1158,7 +1158,7 @@ export class KanbanView extends ItemView implements OptimizedView {
|
|||
"no-date",
|
||||
];
|
||||
if (sentinelValues.includes(id)) {
|
||||
return "Uncategorized";
|
||||
return this.plugin.i18n.translate("views.kanban.uncategorized");
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
|
@ -1169,10 +1169,10 @@ export class KanbanView extends ItemView implements OptimizedView {
|
|||
case "priority":
|
||||
return this.plugin.priorityManager.getPriorityConfig(id)?.label || id;
|
||||
case "context":
|
||||
return id === "uncategorized" ? "Uncategorized" : `@${id}`;
|
||||
return id === "uncategorized" ? this.plugin.i18n.translate("views.kanban.uncategorized") : `@${id}`;
|
||||
case "project":
|
||||
if (id === "No Project") {
|
||||
return "No Project";
|
||||
return this.plugin.i18n.translate("views.kanban.noProject");
|
||||
}
|
||||
// For project paths, display the absolute path
|
||||
return id;
|
||||
|
|
|
|||
|
|
@ -126,11 +126,11 @@ export class NotesView extends ItemView {
|
|||
|
||||
// Add refresh button
|
||||
const refreshButton = actionsContainer.createEl("button", {
|
||||
text: "Refresh",
|
||||
text: this.plugin.i18n.translate("views.notes.refreshButton"),
|
||||
cls: "notes-view__refresh-button",
|
||||
attr: {
|
||||
"aria-label": "Refresh notes list",
|
||||
title: "Refresh notes list",
|
||||
"aria-label": this.plugin.i18n.translate("views.notes.refreshButtonAriaLabel"),
|
||||
title: this.plugin.i18n.translate("views.notes.refreshButtonAriaLabel"),
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -141,7 +141,7 @@ export class NotesView extends ItemView {
|
|||
refreshButton.classList.add("is-loading");
|
||||
refreshButton.disabled = true;
|
||||
const originalText = refreshButton.textContent;
|
||||
refreshButton.textContent = this.plugin.i18n.translate("views.notes.refreshButton");
|
||||
refreshButton.textContent = this.plugin.i18n.translate("views.notes.refreshingButton");
|
||||
|
||||
try {
|
||||
// Force refresh through CacheManager
|
||||
|
|
@ -160,7 +160,7 @@ export class NotesView extends ItemView {
|
|||
|
||||
// Add loading indicator
|
||||
this.loadingIndicator = notesList.createDiv({ cls: "notes-view__loading is-hidden" });
|
||||
this.loadingIndicator.createSpan({ text: "Loading notes..." });
|
||||
this.loadingIndicator.createSpan({ text: this.plugin.i18n.translate("views.notes.loading") });
|
||||
|
||||
// Show loading state
|
||||
this.isNotesLoading = true;
|
||||
|
|
@ -192,7 +192,7 @@ export class NotesView extends ItemView {
|
|||
.setName(this.plugin.i18n.translate("views.notes.empty.noNotesFound"))
|
||||
.setHeading();
|
||||
emptyState.createEl("p", {
|
||||
text: "No notes found for the selected date. Try selecting a different date in the Mini Calendar view or create some notes.",
|
||||
text: this.plugin.i18n.translate("views.notes.empty.helpText"),
|
||||
cls: "notes-view__empty-description",
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ export class StatsView extends ItemView {
|
|||
// Refresh button
|
||||
const refreshButton = header.createEl("button", {
|
||||
cls: "stats-refresh-button stats-view__refresh-button",
|
||||
text: "Refresh",
|
||||
text: this.plugin.i18n.translate("views.stats.refreshButton"),
|
||||
});
|
||||
this.registerDomEvent(refreshButton, "click", () => {
|
||||
this.refreshStats();
|
||||
|
|
@ -643,9 +643,10 @@ export class StatsView extends ItemView {
|
|||
}
|
||||
|
||||
// Sort by total time spent descending, with "No Project" at the end (like FilterService)
|
||||
const noProjectLabel = this.plugin.i18n.translate("views.stats.noProject");
|
||||
projectStats.sort((a, b) => {
|
||||
if (a.projectName === "No Project") return 1;
|
||||
if (b.projectName === "No Project") return -1;
|
||||
if (a.projectName === noProjectLabel) return 1;
|
||||
if (b.projectName === noProjectLabel) return -1;
|
||||
return b.totalTimeSpent - a.totalTimeSpent;
|
||||
});
|
||||
|
||||
|
|
@ -672,11 +673,11 @@ export class StatsView extends ItemView {
|
|||
cls: "stats-view__filter-select",
|
||||
});
|
||||
const dateOptions = [
|
||||
{ value: "all", text: "All Time" },
|
||||
{ value: "7days", text: "Last 7 Days" },
|
||||
{ value: "30days", text: "Last 30 Days" },
|
||||
{ value: "90days", text: "Last 90 Days" },
|
||||
{ value: "custom", text: "Custom Range" },
|
||||
{ value: "all", text: this.plugin.i18n.translate("views.stats.timeRanges.allTime") },
|
||||
{ value: "7days", text: this.plugin.i18n.translate("views.stats.timeRanges.last7Days") },
|
||||
{ value: "30days", text: this.plugin.i18n.translate("views.stats.timeRanges.last30Days") },
|
||||
{ value: "90days", text: this.plugin.i18n.translate("views.stats.timeRanges.last90Days") },
|
||||
{ value: "custom", text: this.plugin.i18n.translate("views.stats.timeRanges.customRange") },
|
||||
];
|
||||
|
||||
for (const option of dateOptions) {
|
||||
|
|
@ -723,7 +724,7 @@ export class StatsView extends ItemView {
|
|||
|
||||
const resetButton = buttonsContainer.createEl("button", {
|
||||
cls: "stats-view__filter-button stats-view__filter-button--reset",
|
||||
text: "Reset Filters",
|
||||
text: this.plugin.i18n.translate("views.stats.resetFiltersButton"),
|
||||
});
|
||||
|
||||
this.registerDomEvent(resetButton, "click", () => {
|
||||
|
|
@ -752,7 +753,7 @@ export class StatsView extends ItemView {
|
|||
const startDateContainer = customDatesContainer.createDiv({
|
||||
cls: "stats-view__date-input-container",
|
||||
});
|
||||
startDateContainer.createDiv({ cls: "stats-view__date-label", text: "From" });
|
||||
startDateContainer.createDiv({ cls: "stats-view__date-label", text: this.plugin.i18n.translate("views.stats.dateRangeFrom") });
|
||||
const startInput = startDateContainer.createEl("input", {
|
||||
cls: "stats-view__date-input",
|
||||
type: "date",
|
||||
|
|
@ -762,7 +763,7 @@ export class StatsView extends ItemView {
|
|||
const endDateContainer = customDatesContainer.createDiv({
|
||||
cls: "stats-view__date-input-container",
|
||||
});
|
||||
endDateContainer.createDiv({ cls: "stats-view__date-label", text: "To" });
|
||||
endDateContainer.createDiv({ cls: "stats-view__date-label", text: this.plugin.i18n.translate("views.stats.dateRangeTo") });
|
||||
const endInput = endDateContainer.createEl("input", {
|
||||
cls: "stats-view__date-input",
|
||||
type: "date",
|
||||
|
|
@ -817,7 +818,7 @@ export class StatsView extends ItemView {
|
|||
private getTaskProjects(task: TaskInfo): string[] {
|
||||
try {
|
||||
if (!task || !Array.isArray(task.projects)) {
|
||||
return ["No Project"];
|
||||
return [this.plugin.i18n.translate("views.stats.noProject")];
|
||||
}
|
||||
|
||||
const filteredProjects = filterEmptyProjects(task.projects);
|
||||
|
|
@ -826,9 +827,9 @@ export class StatsView extends ItemView {
|
|||
.map((project) => this.consolidateProjectName(project))
|
||||
.filter((project) => typeof project === "string" && project.length > 0);
|
||||
}
|
||||
return ["No Project"];
|
||||
return [this.plugin.i18n.translate("views.stats.noProject")];
|
||||
} catch (error) {
|
||||
return ["No Project"];
|
||||
return [this.plugin.i18n.translate("views.stats.noProject")];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -892,7 +893,7 @@ export class StatsView extends ItemView {
|
|||
totalTimeValue.textContent = `${formatTime(stats.totalTimeSpent)} / ${formatTime(stats.totalTimeEstimate)}`;
|
||||
totalTimeCard.createDiv({
|
||||
cls: "overview-label stats-view__overview-label",
|
||||
text: "Time Tracked / Estimated",
|
||||
text: this.plugin.i18n.translate("views.stats.cards.timeTrackedEstimated"),
|
||||
});
|
||||
|
||||
// Total Tasks
|
||||
|
|
@ -905,7 +906,7 @@ export class StatsView extends ItemView {
|
|||
totalTasksValue.textContent = stats.totalTasks.toString();
|
||||
totalTasksCard.createDiv({
|
||||
cls: "overview-label stats-view__overview-label",
|
||||
text: "Total Tasks",
|
||||
text: this.plugin.i18n.translate("views.stats.cards.totalTasks"),
|
||||
});
|
||||
|
||||
// Completion Rate
|
||||
|
|
@ -918,7 +919,7 @@ export class StatsView extends ItemView {
|
|||
completionValue.textContent = `${Math.round(stats.completionRate)}%`;
|
||||
completionCard.createDiv({
|
||||
cls: "overview-label stats-view__overview-label",
|
||||
text: "Completion Rate",
|
||||
text: this.plugin.i18n.translate("views.stats.cards.completionRate"),
|
||||
});
|
||||
|
||||
// Active Projects
|
||||
|
|
@ -931,7 +932,7 @@ export class StatsView extends ItemView {
|
|||
projectsValue.textContent = stats.activeProjects.toString();
|
||||
projectsCard.createDiv({
|
||||
cls: "overview-label stats-view__overview-label",
|
||||
text: "Active Projects",
|
||||
text: this.plugin.i18n.translate("views.stats.cards.activeProjects"),
|
||||
});
|
||||
|
||||
// Average Time per Task
|
||||
|
|
@ -944,7 +945,7 @@ export class StatsView extends ItemView {
|
|||
avgTimeValue.textContent = formatTime(stats.avgTimePerTask);
|
||||
avgTimeCard.createDiv({
|
||||
cls: "overview-label stats-view__overview-label",
|
||||
text: "Avg Time per Task",
|
||||
text: this.plugin.i18n.translate("views.stats.cards.avgTimePerTask"),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -966,7 +967,7 @@ export class StatsView extends ItemView {
|
|||
});
|
||||
timeCard.createDiv({
|
||||
cls: "stat-label stats-view__stat-label",
|
||||
text: "Time Tracked / Estimated",
|
||||
text: this.plugin.i18n.translate("views.stats.cards.timeTrackedEstimated"),
|
||||
});
|
||||
|
||||
// Tasks
|
||||
|
|
@ -975,7 +976,7 @@ export class StatsView extends ItemView {
|
|||
cls: "stat-value stats-view__stat-value",
|
||||
text: stats.overall.totalTasks.toString(),
|
||||
});
|
||||
tasksCard.createDiv({ cls: "stat-label stats-view__stat-label", text: "Tasks" });
|
||||
tasksCard.createDiv({ cls: "stat-label stats-view__stat-label", text: this.plugin.i18n.translate("views.stats.labels.tasks") });
|
||||
|
||||
// Completed
|
||||
const completedCard = container.createDiv({ cls: "stats-stat-card stats-view__stat-card" });
|
||||
|
|
@ -983,7 +984,7 @@ export class StatsView extends ItemView {
|
|||
cls: "stat-value stats-view__stat-value",
|
||||
text: stats.overall.completedTasks.toString(),
|
||||
});
|
||||
completedCard.createDiv({ cls: "stat-label stats-view__stat-label", text: "Completed" });
|
||||
completedCard.createDiv({ cls: "stat-label stats-view__stat-label", text: this.plugin.i18n.translate("views.stats.labels.completed") });
|
||||
|
||||
// Projects
|
||||
const projectsCard = container.createDiv({ cls: "stats-stat-card stats-view__stat-card" });
|
||||
|
|
@ -991,7 +992,7 @@ export class StatsView extends ItemView {
|
|||
cls: "stat-value stats-view__stat-value",
|
||||
text: stats.overall.activeProjects.toString(),
|
||||
});
|
||||
projectsCard.createDiv({ cls: "stat-label stats-view__stat-label", text: "Projects" });
|
||||
projectsCard.createDiv({ cls: "stat-label stats-view__stat-label", text: this.plugin.i18n.translate("views.stats.labels.projects") });
|
||||
}
|
||||
|
||||
private async renderProjectStats(container: HTMLElement, projects: ProjectStats[]) {
|
||||
|
|
@ -1000,7 +1001,7 @@ export class StatsView extends ItemView {
|
|||
if (projects.length === 0) {
|
||||
container.createDiv({
|
||||
cls: "stats-no-data stats-view__no-data",
|
||||
text: "No project data available",
|
||||
text: this.plugin.i18n.translate("views.stats.noProjectData"),
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
@ -1013,12 +1014,12 @@ export class StatsView extends ItemView {
|
|||
};
|
||||
|
||||
const formatDate = (dateString?: string): string => {
|
||||
if (!dateString) return "N/A";
|
||||
if (!dateString) return this.plugin.i18n.translate("views.stats.notAvailable");
|
||||
try {
|
||||
const date = new Date(dateString);
|
||||
return format(date, "MMM d, yyyy");
|
||||
} catch {
|
||||
return "N/A";
|
||||
return this.plugin.i18n.translate("views.stats.notAvailable");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -1030,7 +1031,7 @@ export class StatsView extends ItemView {
|
|||
];
|
||||
|
||||
// Add special class for "No Project" items
|
||||
if (project.projectName === "No Project") {
|
||||
if (project.projectName === this.plugin.i18n.translate("views.stats.noProject")) {
|
||||
projectClasses.push("stats-view__project-item--no-project");
|
||||
}
|
||||
|
||||
|
|
@ -1319,7 +1320,7 @@ export class StatsView extends ItemView {
|
|||
|
||||
// Modal content
|
||||
const content = modal.createDiv({ cls: "stats-view__modal-content" });
|
||||
content.textContent = "Loading...";
|
||||
content.textContent = this.plugin.i18n.translate("views.stats.loading");
|
||||
|
||||
// Event handlers
|
||||
this.registerDomEvent(closeBtn, "click", () => this.closeDrilldownModal());
|
||||
|
|
@ -1343,7 +1344,7 @@ export class StatsView extends ItemView {
|
|||
this.renderDrilldownContent(content, drilldownData);
|
||||
} catch (error) {
|
||||
console.error("Error loading drill-down data:", error);
|
||||
content.textContent = "Error loading project details.";
|
||||
content.textContent = this.plugin.i18n.translate("notices.statsLoadingFailed");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1568,9 +1569,9 @@ export class StatsView extends ItemView {
|
|||
// Add filter controls for tasks
|
||||
const taskFilters = tasksHeaderContainer.createDiv({ cls: "stats-view__task-filters" });
|
||||
const statusFilter = taskFilters.createEl("select", { cls: "stats-view__filter-select" });
|
||||
statusFilter.createEl("option", { value: "all", text: "All Tasks" });
|
||||
statusFilter.createEl("option", { value: "active", text: "Active Only" });
|
||||
statusFilter.createEl("option", { value: "completed", text: "Completed Only" });
|
||||
statusFilter.createEl("option", { value: "all", text: this.plugin.i18n.translate("views.stats.filters.allTasks") });
|
||||
statusFilter.createEl("option", { value: "active", text: this.plugin.i18n.translate("views.stats.filters.activeOnly") });
|
||||
statusFilter.createEl("option", { value: "completed", text: this.plugin.i18n.translate("views.stats.filters.completedOnly") });
|
||||
|
||||
const taskList = tasksSection.createDiv({ cls: "stats-view__task-list" });
|
||||
|
||||
|
|
@ -1612,7 +1613,7 @@ export class StatsView extends ItemView {
|
|||
});
|
||||
|
||||
if (filteredTasks.length === 0) {
|
||||
taskList.createDiv({ cls: "stats-view__no-data", text: "No tasks found" });
|
||||
taskList.createDiv({ cls: "stats-view__no-data", text: this.plugin.i18n.translate("views.stats.noTasks") });
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -754,7 +754,7 @@ export class TaskListView extends ItemView implements OptimizedView {
|
|||
if (totalTasks === 0) {
|
||||
container.empty();
|
||||
this.taskElements.clear();
|
||||
container.createEl("p", { text: "No tasks found for the selected filters." });
|
||||
container.createEl("p", { text: this.plugin.i18n.translate("views.taskList.noTasksFound") });
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue