diff --git a/core/src/locale/index.ts b/core/src/locale/index.ts index 39d46a2..9c20cc2 100644 --- a/core/src/locale/index.ts +++ b/core/src/locale/index.ts @@ -9,6 +9,7 @@ import es from './es' import fr from './fr' import hi from './hi' import ja from './ja' +import pl from './pl' import pt from './pt' import ru from './ru' import type { Localization } from './types' @@ -26,6 +27,7 @@ const locales: Record = { fr, hi, ja, + pl, } class Locale { diff --git a/core/src/locale/pl.ts b/core/src/locale/pl.ts new file mode 100644 index 0000000..efb9cf1 --- /dev/null +++ b/core/src/locale/pl.ts @@ -0,0 +1,100 @@ +import type { Localization } from './types' + +const locale: Localization = { + '*': { + prefix: 'Każdy', + suffix: '', + text: 'Nieznany', + '*': { + empty: { text: 'każdy {{field.id}}' }, + value: { text: '{{value.text}}' }, + range: { text: '{{start.text}}-{{end.text}}' }, + everyX: { text: 'co {{every.value}}' }, + }, + month: { + '*': { prefix: 'w' }, + value: { text: '{{value.alt}}' }, + range: { text: '{{start.alt}}-{{end.alt}}' }, + }, + day: { + '*': { prefix: 'w' }, + noSpecific: { + text: 'bez określonego dnia', + }, + }, + dayOfWeek: { + '*': { prefix: 'w' }, + empty: { text: 'każdy dzień tygodnia' }, + value: { text: '{{value.alt}}' }, + range: { text: '{{start.alt}}-{{end.alt}}' }, + noSpecific: { + text: 'bez określonego dnia tygodnia', + }, + }, + hour: { + '*': { prefix: 'o' }, + }, + minute: { + '*': { prefix: ':' }, + }, + second: { + '*': { prefix: ':' }, + }, + }, + minute: { + text: 'Minuta', + }, + hour: { + text: 'Godzina', + minute: { + '*': { + prefix: 'o', + suffix: 'minut(a)', + }, + empty: { text: 'każda' }, + }, + }, + day: { + text: 'Dzień', + }, + week: { + text: 'Tydzień', + }, + month: { + text: 'Miesiąc', + dayOfWeek: { + '*': { prefix: 'i' }, + }, + }, + year: { + text: 'Rok', + dayOfWeek: { + '*': { prefix: 'i' }, + }, + }, + + //quartz format + 'q-second': { + text: 'Sekunda', + }, + 'q-minute': { + text: 'Minuta', + second: { + '*': { + prefix: 'o', + suffix: 'sekund(a)', + }, + empty: { text: 'każda' }, + }, + }, + 'q-hour': { + text: 'Godzina', + minute: { + '*': { + prefix: 'o', + }, + }, + }, +} + +export default locale