Skip to content

Commit 128128d

Browse files
mmirandola-igwabichinger
authored andcommitted
feat: add italian translation
1 parent 0c22a3d commit 128128d

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

core/src/locale/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import es from './es'
99
import fr from './fr'
1010
import he from './he'
1111
import hi from './hi'
12+
import it from './it'
1213
import ja from './ja'
1314
import ko from './ko'
1415
import pt from './pt'
@@ -29,6 +30,7 @@ const locales: Record<string, Localization> = {
2930
hi,
3031
ja,
3132
ko,
33+
it,
3234
}
3335

3436
class L10nEngine {

core/src/locale/it.ts

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
import type { Localization } from './types'
2+
3+
/**
4+
* French localization generated with GPT-4
5+
*/
6+
const locale: Localization = {
7+
'*': {
8+
prefix: 'Tutti',
9+
suffix: '',
10+
text: 'Sconosciuto',
11+
'*': {
12+
value: { text: '{{value.text}}' },
13+
range: { text: '{{start.text}}-{{end.text}}' },
14+
step: { text: 'ogni {{step.value}}' },
15+
},
16+
month: {
17+
'*': { prefix: 'in' },
18+
any: { prefix: 'in', text: 'ogni mese' },
19+
value: { text: '{{value.alt}}' },
20+
range: { text: '{{start.alt}}-{{end.alt}}' },
21+
},
22+
day: {
23+
'*': { prefix: 'il' },
24+
any: { prefix: 'il', text: 'ogni giorno' },
25+
step: { prefix: '', text: 'ogni {{step.value}} giorni' },
26+
noSpecific: { prefix: 'il', text: 'nessun giorno specifico' },
27+
},
28+
dayOfWeek: {
29+
'*': { prefix: 'il' },
30+
any: { prefix: 'il', text: 'ogni giorno della settimana' },
31+
value: { text: '{{value.alt}}' },
32+
range: { text: '{{start.alt}}-{{end.alt}}' },
33+
noSpecific: { prefix: 'e', text: 'nessun giorno della settimana specifico' },
34+
},
35+
hour: {
36+
'*': { prefix: 'alle' },
37+
any: { prefix: 'alle', text: 'ogni ora' },
38+
step: { prefix: '', text: 'ogni {{step.value}} ore' },
39+
},
40+
minute: {
41+
'*': { prefix: ':' },
42+
any: { text: 'ogni minuto' },
43+
step: { prefix: '', text: 'ogni {{step.value}} minuti' },
44+
},
45+
second: {
46+
'*': { prefix: ':' },
47+
any: { text: 'ogni secondo' },
48+
step: { prefix: '', text: 'ogni {{step.value}} secondi' },
49+
},
50+
},
51+
minute: { text: 'Minuto' },
52+
hour: {
53+
text: 'Ora',
54+
minute: { '*': { prefix: 'al', suffix: 'minuto/i' }, any: { text: 'tutti' } },
55+
},
56+
day: { prefix: 'Tutti', text: 'Giorno' },
57+
week: { text: 'Settimana' },
58+
month: { prefix: 'Tutti', text: 'Mese' },
59+
year: { prefix: 'Tutti', text: 'Anno' },
60+
61+
//quartz format
62+
'q-second': { text: 'Secondo' },
63+
'q-minute': { text: 'Minuto', second: { '*': { prefix: 'e' } } },
64+
'q-hour': { text: 'Ora', minute: { '*': { prefix: 'e' } }, second: { '*': { prefix: 'e' } } },
65+
}
66+
67+
export default locale

0 commit comments

Comments
 (0)