Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import es from './es'
import fr from './fr'
import he from './he'
import hi from './hi'
import it from './it'
import ja from './ja'
import ko from './ko'
import pt from './pt'
Expand All @@ -29,6 +30,7 @@ const locales: Record<string, Localization> = {
hi,
ja,
ko,
it,
}

class L10nEngine {
Expand Down
67 changes: 67 additions & 0 deletions core/src/locale/it.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import type { Localization } from './types'

/**
* French localization generated with GPT-4
*/
const locale: Localization = {
'*': {

Check failure on line 7 in core/src/locale/it.ts

View workflow job for this annotation

GitHub Actions / test (18.x)

Delete `··`
prefix: 'Tutti',
suffix: '',
text: 'Sconosciuto',
'*': {
value: { text: '{{value.text}}' },
range: { text: '{{start.text}}-{{end.text}}' },
step: { text: 'ogni {{step.value}}' },
},
month: {
'*': { prefix: 'in' },
any: { prefix: 'in', text: 'ogni mese' },
value: { text: '{{value.alt}}' },
range: { text: '{{start.alt}}-{{end.alt}}' },
},
day: {
'*': { prefix: 'il' },
any: { prefix: 'il', text: 'ogni giorno' },
step: { prefix: '', text: 'ogni {{step.value}} giorni' },
noSpecific: { prefix: 'il', text: 'nessun giorno specifico' },
},
dayOfWeek: {
'*': { prefix: 'il' },
any: { prefix: 'il', text: 'ogni giorno della settimana' },
value: { text: '{{value.alt}}' },
range: { text: '{{start.alt}}-{{end.alt}}' },
noSpecific: { prefix: 'e', text: 'nessun giorno della settimana specifico' },
},
hour: {
'*': { prefix: 'alle' },
any: { prefix: 'alle', text: 'ogni ora' },
step: { prefix: '', text: 'ogni {{step.value}} ore' },
},
minute: {
'*': { prefix: ':' },
any: { text: 'ogni minuto' },
step: { prefix: '', text: 'ogni {{step.value}} minuti' },
},
second: {
'*': { prefix: ':' },
any: { text: 'ogni secondo' },
step: { prefix: '', text: 'ogni {{step.value}} secondi' },
},
},
minute: { text: 'Minuto' },
hour: {
text: 'Ora',
minute: { '*': { prefix: 'al', suffix: 'minuto/i' }, any: { text: 'tutti' } },
},
day: { prefix: 'Tutti', text: 'Giorno' },
week: { text: 'Settimana' },
month: { prefix: 'Tutti', text: 'Mese' },
year: { prefix: 'Tutti', text: 'Anno' },

//quartz format
'q-second': { text: 'Secondo' },
'q-minute': { text: 'Minuto', second: { '*': { prefix: 'e' } } },
'q-hour': { text: 'Ora', minute: { '*': { prefix: 'e' } }, second: { '*': { prefix: 'e' } } },
}

export default locale
Loading