-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalization.cs
More file actions
483 lines (465 loc) · 23.3 KB
/
Copy pathLocalization.cs
File metadata and controls
483 lines (465 loc) · 23.3 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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
using System.Globalization;
namespace CpuMonitorNotifier.Localization;
/// <summary>Язык интерфейса. <see cref="Auto"/> — по языку системы.</summary>
internal enum AppLanguage
{
Auto,
English,
Russian,
German,
Spanish,
French,
Portuguese,
Chinese,
Japanese,
}
/// <summary>
/// Лёгкая локализация: словарь строк на язык, English как основной и запасной.
/// Ключи плоские (например, "menu.settings"); подстановки — через string.Format.
/// </summary>
internal static class Loc
{
/// <summary>Название продукта (не переводится).</summary>
public const string AppName = "CorePulse";
// назначается в статическом конструкторе — после инициализации словарей ниже
private static Dictionary<string, string> _current = null!;
static Loc() => _current = English;
/// <summary>Родные названия языков для выпадающего списка (Auto подставляется отдельно).</summary>
public static readonly (AppLanguage Lang, string Native)[] LanguageChoices =
{
(AppLanguage.English, "English"),
(AppLanguage.Russian, "Русский"),
(AppLanguage.German, "Deutsch"),
(AppLanguage.Spanish, "Español"),
(AppLanguage.French, "Français"),
(AppLanguage.Portuguese, "Português"),
(AppLanguage.Chinese, "中文"),
(AppLanguage.Japanese, "日本語"),
};
/// <summary>Устанавливает текущий язык (для Auto определяет по CurrentUICulture).</summary>
public static void Apply(AppLanguage lang)
{
if (lang == AppLanguage.Auto)
lang = Detect();
_current = Tables.TryGetValue(lang, out var t) ? t : English;
}
/// <summary>Возвращает строку по ключу; при отсутствии — English, затем сам ключ.</summary>
public static string T(string key) =>
_current.TryGetValue(key, out var v) ? v
: English.TryGetValue(key, out var e) ? e
: key;
private static AppLanguage Detect() => CultureInfo.CurrentUICulture.TwoLetterISOLanguageName switch
{
"ru" => AppLanguage.Russian,
"de" => AppLanguage.German,
"es" => AppLanguage.Spanish,
"fr" => AppLanguage.French,
"pt" => AppLanguage.Portuguese,
"zh" => AppLanguage.Chinese,
"ja" => AppLanguage.Japanese,
_ => AppLanguage.English,
};
private static readonly Dictionary<string, string> English = new()
{
["app.paused"] = "{0} — paused",
["menu.settings"] = "Settings…",
["menu.test"] = "Test notification",
["menu.history"] = "History…",
["menu.pause"] = "Pause monitoring",
["menu.exit"] = "Exit",
["history.title"] = "{0} — History",
["history.tab.offenders"] = "Top offenders (this session)",
["history.tab.alerts"] = "Alerts",
["history.chart"] = "Hottest core — recent load",
["history.col.process"] = "Process",
["history.col.coremin"] = "Core-minutes",
["history.col.peak"] = "Peak",
["history.col.lastseen"] = "Last seen",
["history.col.time"] = "Time",
["history.col.cores"] = "Cores",
["history.col.load"] = "Load",
["history.col.duration"] = "Duration",
["settings.title"] = "{0} — Settings",
["settings.iconStyle"] = "Tray icon style:",
["settings.threshold"] = "Core load threshold, %:",
["settings.duration"] = "Time before alert, s:",
["settings.cooldown"] = "Cooldown between alerts, min:",
["settings.pollInterval"] = "Poll interval, s:",
["settings.notifications"] = "Show notifications",
["settings.autostart"] = "Start with Windows",
["settings.language"] = "Language:",
["settings.languageAuto"] = "System default",
["settings.ok"] = "OK",
["settings.cancel"] = "Cancel",
["style.ring"] = "Ring + %",
["style.segments"] = "Segmented ring",
["style.speedometer"] = "Speedometer",
["style.liquid"] = "Liquid + %",
["style.dots"] = "Dots grid",
["toast.title.one"] = "Core {0} under load for {1}",
["toast.title.many"] = "Cores {0} under load for {1}",
["toast.culprit"] = "Likely culprit: {0}",
["toast.culprit.none"] = "Culprit not identified (possibly a system or protected process)",
["toast.button.taskmgr"] = "Task Manager",
["toast.core.load"] = "{0} ({1}% of a core)",
["tooltip.proc"] = "Core {0}: {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "Core {0}: {1}% | CPU {2}%",
["duration.min"] = "{0} min",
["duration.sec"] = "{0} s",
["error.startFailed"] = "Failed to start monitoring:\n\n{0}",
};
private static readonly Dictionary<string, string> Russian = new()
{
["app.paused"] = "{0} — пауза",
["menu.settings"] = "Настройки…",
["menu.test"] = "Проверить уведомление",
["menu.history"] = "История…",
["menu.pause"] = "Пауза мониторинга",
["menu.exit"] = "Выход",
["history.title"] = "{0} — история",
["history.tab.offenders"] = "Главные нагрузчики за сессию",
["history.tab.alerts"] = "Алерты",
["history.chart"] = "Самое горячее ядро — недавняя нагрузка",
["history.col.process"] = "Процесс",
["history.col.coremin"] = "Core-минуты",
["history.col.peak"] = "Пик",
["history.col.lastseen"] = "Последний раз",
["history.col.time"] = "Время",
["history.col.cores"] = "Ядра",
["history.col.load"] = "Нагрузка",
["history.col.duration"] = "Длительность",
["settings.title"] = "{0} — настройки",
["settings.iconStyle"] = "Стиль иконки в трее:",
["settings.threshold"] = "Порог нагрузки ядра, %:",
["settings.duration"] = "Длительность до алерта, с:",
["settings.cooldown"] = "Пауза между уведомлениями, мин:",
["settings.pollInterval"] = "Интервал опроса, с:",
["settings.notifications"] = "Показывать уведомления",
["settings.autostart"] = "Запускать при входе в Windows",
["settings.language"] = "Язык:",
["settings.languageAuto"] = "Как в системе",
["settings.ok"] = "ОК",
["settings.cancel"] = "Отмена",
["style.ring"] = "Кольцо + %",
["style.segments"] = "Сегментное кольцо",
["style.speedometer"] = "Спидометр",
["style.liquid"] = "Жидкость + %",
["style.dots"] = "Сетка кругов",
["toast.title.one"] = "Ядро {0} под нагрузкой уже {1}",
["toast.title.many"] = "Ядра {0} под нагрузкой уже {1}",
["toast.culprit"] = "Вероятный виновник: {0}",
["toast.culprit.none"] = "Виновник не определён (возможно, системный или защищённый процесс)",
["toast.button.taskmgr"] = "Диспетчер задач",
["toast.core.load"] = "{0} ({1}% ядра)",
["tooltip.proc"] = "Ядро {0}: {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "Ядро {0}: {1}% | CPU {2}%",
["duration.min"] = "{0} мин",
["duration.sec"] = "{0} с",
["error.startFailed"] = "Не удалось запустить мониторинг:\n\n{0}",
};
private static readonly Dictionary<string, string> German = new()
{
["app.paused"] = "{0} — pausiert",
["menu.settings"] = "Einstellungen…",
["menu.test"] = "Testbenachrichtigung",
["menu.history"] = "Verlauf…",
["menu.pause"] = "Überwachung pausieren",
["menu.exit"] = "Beenden",
["history.title"] = "{0} — Verlauf",
["history.tab.offenders"] = "Top-Verbraucher (diese Sitzung)",
["history.tab.alerts"] = "Warnungen",
["history.chart"] = "Heißester Kern — jüngste Last",
["history.col.process"] = "Prozess",
["history.col.coremin"] = "Kern-Minuten",
["history.col.peak"] = "Spitze",
["history.col.lastseen"] = "Zuletzt gesehen",
["history.col.time"] = "Zeit",
["history.col.cores"] = "Kerne",
["history.col.load"] = "Last",
["history.col.duration"] = "Dauer",
["settings.title"] = "{0} — Einstellungen",
["settings.iconStyle"] = "Symbolstil in der Taskleiste:",
["settings.threshold"] = "Kernauslastungsschwelle, %:",
["settings.duration"] = "Zeit bis zur Warnung, s:",
["settings.cooldown"] = "Pause zwischen Warnungen, Min.:",
["settings.pollInterval"] = "Abtastintervall, s:",
["settings.notifications"] = "Benachrichtigungen anzeigen",
["settings.autostart"] = "Mit Windows starten",
["settings.language"] = "Sprache:",
["settings.languageAuto"] = "Systemstandard",
["settings.ok"] = "OK",
["settings.cancel"] = "Abbrechen",
["style.ring"] = "Ring + %",
["style.segments"] = "Segmentring",
["style.speedometer"] = "Tacho",
["style.liquid"] = "Flüssigkeit + %",
["style.dots"] = "Punktraster",
["toast.title.one"] = "Kern {0} seit {1} ausgelastet",
["toast.title.many"] = "Kerne {0} seit {1} ausgelastet",
["toast.culprit"] = "Wahrscheinlicher Verursacher: {0}",
["toast.culprit.none"] = "Verursacher nicht ermittelt (evtl. System- oder geschützter Prozess)",
["toast.button.taskmgr"] = "Task-Manager",
["toast.core.load"] = "{0} ({1}% eines Kerns)",
["tooltip.proc"] = "Kern {0}: {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "Kern {0}: {1}% | CPU {2}%",
["duration.min"] = "{0} Min.",
["duration.sec"] = "{0} s",
["error.startFailed"] = "Überwachung konnte nicht gestartet werden:\n\n{0}",
};
private static readonly Dictionary<string, string> Spanish = new()
{
["app.paused"] = "{0} — en pausa",
["menu.settings"] = "Configuración…",
["menu.test"] = "Probar notificación",
["menu.history"] = "Historial…",
["menu.pause"] = "Pausar monitorización",
["menu.exit"] = "Salir",
["history.title"] = "{0} — Historial",
["history.tab.offenders"] = "Mayores consumidores (esta sesión)",
["history.tab.alerts"] = "Alertas",
["history.chart"] = "Núcleo más caliente — carga reciente",
["history.col.process"] = "Proceso",
["history.col.coremin"] = "Núcleo-minutos",
["history.col.peak"] = "Pico",
["history.col.lastseen"] = "Visto por última vez",
["history.col.time"] = "Hora",
["history.col.cores"] = "Núcleos",
["history.col.load"] = "Carga",
["history.col.duration"] = "Duración",
["settings.title"] = "{0} — Configuración",
["settings.iconStyle"] = "Estilo del icono en la bandeja:",
["settings.threshold"] = "Umbral de carga del núcleo, %:",
["settings.duration"] = "Tiempo antes de la alerta, s:",
["settings.cooldown"] = "Espera entre alertas, min:",
["settings.pollInterval"] = "Intervalo de sondeo, s:",
["settings.notifications"] = "Mostrar notificaciones",
["settings.autostart"] = "Iniciar con Windows",
["settings.language"] = "Idioma:",
["settings.languageAuto"] = "Predeterminado del sistema",
["settings.ok"] = "Aceptar",
["settings.cancel"] = "Cancelar",
["style.ring"] = "Anillo + %",
["style.segments"] = "Anillo segmentado",
["style.speedometer"] = "Velocímetro",
["style.liquid"] = "Líquido + %",
["style.dots"] = "Cuadrícula de puntos",
["toast.title.one"] = "Núcleo {0} con carga desde hace {1}",
["toast.title.many"] = "Núcleos {0} con carga desde hace {1}",
["toast.culprit"] = "Probable causante: {0}",
["toast.culprit.none"] = "Causante no identificado (posible proceso del sistema o protegido)",
["toast.button.taskmgr"] = "Administrador de tareas",
["toast.core.load"] = "{0} ({1}% de un núcleo)",
["tooltip.proc"] = "Núcleo {0}: {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "Núcleo {0}: {1}% | CPU {2}%",
["duration.min"] = "{0} min",
["duration.sec"] = "{0} s",
["error.startFailed"] = "No se pudo iniciar la monitorización:\n\n{0}",
};
private static readonly Dictionary<string, string> French = new()
{
["app.paused"] = "{0} — en pause",
["menu.settings"] = "Paramètres…",
["menu.test"] = "Tester la notification",
["menu.history"] = "Historique…",
["menu.pause"] = "Suspendre la surveillance",
["menu.exit"] = "Quitter",
["history.title"] = "{0} — Historique",
["history.tab.offenders"] = "Principaux consommateurs (cette session)",
["history.tab.alerts"] = "Alertes",
["history.chart"] = "Cœur le plus chaud — charge récente",
["history.col.process"] = "Processus",
["history.col.coremin"] = "Cœur-minutes",
["history.col.peak"] = "Pic",
["history.col.lastseen"] = "Vu pour la dernière fois",
["history.col.time"] = "Heure",
["history.col.cores"] = "Cœurs",
["history.col.load"] = "Charge",
["history.col.duration"] = "Durée",
["settings.title"] = "{0} — Paramètres",
["settings.iconStyle"] = "Style de l'icône dans la barre d'état :",
["settings.threshold"] = "Seuil de charge du cœur, % :",
["settings.duration"] = "Délai avant alerte, s :",
["settings.cooldown"] = "Délai entre alertes, min :",
["settings.pollInterval"] = "Intervalle de sondage, s :",
["settings.notifications"] = "Afficher les notifications",
["settings.autostart"] = "Lancer au démarrage de Windows",
["settings.language"] = "Langue :",
["settings.languageAuto"] = "Paramètre système",
["settings.ok"] = "OK",
["settings.cancel"] = "Annuler",
["style.ring"] = "Anneau + %",
["style.segments"] = "Anneau segmenté",
["style.speedometer"] = "Compteur",
["style.liquid"] = "Liquide + %",
["style.dots"] = "Grille de points",
["toast.title.one"] = "Cœur {0} sous charge depuis {1}",
["toast.title.many"] = "Cœurs {0} sous charge depuis {1}",
["toast.culprit"] = "Coupable probable : {0}",
["toast.culprit.none"] = "Coupable non identifié (processus système ou protégé possible)",
["toast.button.taskmgr"] = "Gestionnaire des tâches",
["toast.core.load"] = "{0} ({1}% d'un cœur)",
["tooltip.proc"] = "Cœur {0} : {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "Cœur {0} : {1}% | CPU {2}%",
["duration.min"] = "{0} min",
["duration.sec"] = "{0} s",
["error.startFailed"] = "Impossible de démarrer la surveillance :\n\n{0}",
};
private static readonly Dictionary<string, string> Portuguese = new()
{
["app.paused"] = "{0} — pausado",
["menu.settings"] = "Configurações…",
["menu.test"] = "Testar notificação",
["menu.history"] = "Histórico…",
["menu.pause"] = "Pausar monitoramento",
["menu.exit"] = "Sair",
["history.title"] = "{0} — Histórico",
["history.tab.offenders"] = "Maiores consumidores (esta sessão)",
["history.tab.alerts"] = "Alertas",
["history.chart"] = "Núcleo mais quente — carga recente",
["history.col.process"] = "Processo",
["history.col.coremin"] = "Núcleo-minutos",
["history.col.peak"] = "Pico",
["history.col.lastseen"] = "Visto por último",
["history.col.time"] = "Hora",
["history.col.cores"] = "Núcleos",
["history.col.load"] = "Carga",
["history.col.duration"] = "Duração",
["settings.title"] = "{0} — Configurações",
["settings.iconStyle"] = "Estilo do ícone na bandeja:",
["settings.threshold"] = "Limite de carga do núcleo, %:",
["settings.duration"] = "Tempo até o alerta, s:",
["settings.cooldown"] = "Intervalo entre alertas, min:",
["settings.pollInterval"] = "Intervalo de sondagem, s:",
["settings.notifications"] = "Mostrar notificações",
["settings.autostart"] = "Iniciar com o Windows",
["settings.language"] = "Idioma:",
["settings.languageAuto"] = "Padrão do sistema",
["settings.ok"] = "OK",
["settings.cancel"] = "Cancelar",
["style.ring"] = "Anel + %",
["style.segments"] = "Anel segmentado",
["style.speedometer"] = "Velocímetro",
["style.liquid"] = "Líquido + %",
["style.dots"] = "Grade de pontos",
["toast.title.one"] = "Núcleo {0} sob carga há {1}",
["toast.title.many"] = "Núcleos {0} sob carga há {1}",
["toast.culprit"] = "Provável causador: {0}",
["toast.culprit.none"] = "Causador não identificado (possível processo do sistema ou protegido)",
["toast.button.taskmgr"] = "Gerenciador de Tarefas",
["toast.core.load"] = "{0} ({1}% de um núcleo)",
["tooltip.proc"] = "Núcleo {0}: {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "Núcleo {0}: {1}% | CPU {2}%",
["duration.min"] = "{0} min",
["duration.sec"] = "{0} s",
["error.startFailed"] = "Não foi possível iniciar o monitoramento:\n\n{0}",
};
private static readonly Dictionary<string, string> Chinese = new()
{
["app.paused"] = "{0} — 已暂停",
["menu.settings"] = "设置…",
["menu.test"] = "测试通知",
["menu.history"] = "历史…",
["menu.pause"] = "暂停监控",
["menu.exit"] = "退出",
["history.title"] = "{0} — 历史",
["history.tab.offenders"] = "本次会话占用最多的进程",
["history.tab.alerts"] = "提醒",
["history.chart"] = "最热核心 — 近期负载",
["history.col.process"] = "进程",
["history.col.coremin"] = "核心·分钟",
["history.col.peak"] = "峰值",
["history.col.lastseen"] = "最后出现",
["history.col.time"] = "时间",
["history.col.cores"] = "核心",
["history.col.load"] = "负载",
["history.col.duration"] = "持续时间",
["settings.title"] = "{0} — 设置",
["settings.iconStyle"] = "托盘图标样式:",
["settings.threshold"] = "单核负载阈值 (%):",
["settings.duration"] = "触发提醒前的持续时间 (秒):",
["settings.cooldown"] = "两次提醒之间的间隔 (分钟):",
["settings.pollInterval"] = "采样间隔 (秒):",
["settings.notifications"] = "显示通知",
["settings.autostart"] = "开机时启动",
["settings.language"] = "语言:",
["settings.languageAuto"] = "跟随系统",
["settings.ok"] = "确定",
["settings.cancel"] = "取消",
["style.ring"] = "圆环 + %",
["style.segments"] = "分段圆环",
["style.speedometer"] = "仪表盘",
["style.liquid"] = "液体 + %",
["style.dots"] = "点阵",
["toast.title.one"] = "核心 {0} 已高负载 {1}",
["toast.title.many"] = "核心 {0} 已高负载 {1}",
["toast.culprit"] = "可能的原因:{0}",
["toast.culprit.none"] = "无法确定原因(可能是系统或受保护的进程)",
["toast.button.taskmgr"] = "任务管理器",
["toast.core.load"] = "{0}(占用一个核心的 {1}%)",
["tooltip.proc"] = "核心 {0}:{1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "核心 {0}:{1}% | CPU {2}%",
["duration.min"] = "{0} 分钟",
["duration.sec"] = "{0} 秒",
["error.startFailed"] = "无法启动监控:\n\n{0}",
};
private static readonly Dictionary<string, string> Japanese = new()
{
["app.paused"] = "{0} — 一時停止中",
["menu.settings"] = "設定…",
["menu.test"] = "通知をテスト",
["menu.history"] = "履歴…",
["menu.pause"] = "監視を一時停止",
["menu.exit"] = "終了",
["history.title"] = "{0} — 履歴",
["history.tab.offenders"] = "セッション中の高負荷プロセス",
["history.tab.alerts"] = "アラート",
["history.chart"] = "最も熱いコア — 最近の負荷",
["history.col.process"] = "プロセス",
["history.col.coremin"] = "コア・分",
["history.col.peak"] = "ピーク",
["history.col.lastseen"] = "最終検出",
["history.col.time"] = "時刻",
["history.col.cores"] = "コア",
["history.col.load"] = "負荷",
["history.col.duration"] = "継続時間",
["settings.title"] = "{0} — 設定",
["settings.iconStyle"] = "トレイアイコンのスタイル:",
["settings.threshold"] = "コア負荷のしきい値 (%):",
["settings.duration"] = "通知までの時間 (秒):",
["settings.cooldown"] = "通知の間隔 (分):",
["settings.pollInterval"] = "取得間隔 (秒):",
["settings.notifications"] = "通知を表示する",
["settings.autostart"] = "Windows 起動時に実行",
["settings.language"] = "言語:",
["settings.languageAuto"] = "システムの既定",
["settings.ok"] = "OK",
["settings.cancel"] = "キャンセル",
["style.ring"] = "リング + %",
["style.segments"] = "セグメントリング",
["style.speedometer"] = "スピードメーター",
["style.liquid"] = "リキッド + %",
["style.dots"] = "ドットグリッド",
["toast.title.one"] = "コア {0} が {1} 高負荷です",
["toast.title.many"] = "コア {0} が {1} 高負荷です",
["toast.culprit"] = "原因の可能性: {0}",
["toast.culprit.none"] = "原因を特定できません(システムまたは保護されたプロセスの可能性)",
["toast.button.taskmgr"] = "タスク マネージャー",
["toast.core.load"] = "{0}(コアの {1}%)",
["tooltip.proc"] = "コア {0}: {1}% | CPU {2}% | {3}",
["tooltip.noproc"] = "コア {0}: {1}% | CPU {2}%",
["duration.min"] = "{0} 分",
["duration.sec"] = "{0} 秒",
["error.startFailed"] = "監視を開始できませんでした:\n\n{0}",
};
private static readonly Dictionary<AppLanguage, Dictionary<string, string>> Tables = new()
{
[AppLanguage.English] = English,
[AppLanguage.Russian] = Russian,
[AppLanguage.German] = German,
[AppLanguage.Spanish] = Spanish,
[AppLanguage.French] = French,
[AppLanguage.Portuguese] = Portuguese,
[AppLanguage.Chinese] = Chinese,
[AppLanguage.Japanese] = Japanese,
};
}