forked from callumalpass/tasknotes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapply-translations.js
More file actions
275 lines (269 loc) · 8.51 KB
/
apply-translations.js
File metadata and controls
275 lines (269 loc) · 8.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
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.');