forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eureka_translations.ts
119 lines (116 loc) · 3.04 KB
/
eureka_translations.ts
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
import { LocaleText } from '../../types/trigger';
import { EurekaTimeStrings } from './eureka';
export const bunnyLabel: LocaleText = {
en: 'Bunny',
de: 'Hase',
fr: 'Lapin',
ja: 'うさぎ',
cn: '兔子',
ko: '토끼',
};
export const timeStrings: EurekaTimeStrings = {
weatherFor: {
en: (nowMs, stopTime) => {
if (stopTime) {
const min = (stopTime - nowMs) / 1000 / 60;
return ` for ${Math.ceil(min)}m`;
}
return ' for ???';
},
de: (nowMs, stopTime) => {
if (stopTime) {
const min = (stopTime - nowMs) / 1000 / 60;
return ` für ${Math.ceil(min)}min`;
}
return ' für ???';
},
fr: (nowMs, stopTime) => {
if (stopTime) {
const min = (stopTime - nowMs) / 1000 / 60;
return ` pour ${Math.ceil(min)} min `;
}
return ' pour ???';
},
ja: (nowMs, stopTime) => {
if (stopTime) {
const min = (stopTime - nowMs) / 1000 / 60;
return ` 終わるまであと${Math.ceil(min)}分 `;
}
return ' 終わるまであと ???';
},
cn: (nowMs, stopTime) => {
if (stopTime) {
const min = (stopTime - nowMs) / 1000 / 60;
return ` ${Math.ceil(min)}分钟后结束`;
}
return ' ??? 分钟';
},
ko: (nowMs, stopTime) => {
if (stopTime) {
const min = (stopTime - nowMs) / 1000 / 60;
return ` ${Math.ceil(min)}분 동안`;
}
return ' ??? 동안';
},
},
weatherIn: {
en: (nowMs, startTime) => {
if (startTime) {
const min = (startTime - nowMs) / 1000 / 60;
return ` in ${Math.ceil(min)}m`;
}
return ' in ???';
},
de: (nowMs, startTime) => {
if (startTime) {
const min = (startTime - nowMs) / 1000 / 60;
return ` in ${Math.ceil(min)}min`;
}
return ' in ???';
},
fr: (nowMs, startTime) => {
if (startTime) {
const min = (startTime - nowMs) / 1000 / 60;
return ` dans ${Math.ceil(min)} min `;
}
return ' dans ???';
},
ja: (nowMs, startTime) => {
if (startTime) {
const min = (startTime - nowMs) / 1000 / 60;
return ` あと ${Math.ceil(min)} 分 `;
}
return ' あと ???';
},
cn: (nowMs, startTime) => {
if (startTime) {
const min = (startTime - nowMs) / 1000 / 60;
return ` ${Math.ceil(min)}分钟后`;
}
return ' ??? 后';
},
ko: (nowMs, startTime) => {
if (startTime) {
const min = (startTime - nowMs) / 1000 / 60;
return ` ${Math.ceil(min)}분 후`;
}
return ' ??? 후';
},
},
timeFor: {
en: (dayNightMin) => ` for ${dayNightMin}m`,
de: (dayNightMin) => ` für ${dayNightMin}min`,
fr: (dayNightMin) => ` pour ${dayNightMin} min `,
ja: (dayNightMin) => ` ${dayNightMin}分`,
cn: (dayNightMin) => ` ${dayNightMin}分钟`,
ko: (dayNightMin) => ` ${dayNightMin}분 동안`,
},
minute: {
en: 'm',
de: 'min',
fr: ' min ',
ja: '分',
cn: '分',
ko: '분',
},
};