From 8539907fda27301a28f777ed054b38dc76669e33 Mon Sep 17 00:00:00 2001 From: Piotr Perzyna Date: Mon, 20 May 2024 12:02:58 +0200 Subject: [PATCH 1/2] feat: create pl.ts --- core/src/locale/pl.ts | 100 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 core/src/locale/pl.ts 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 From 242bbd7bec0820f997ee664d3287789ed21c354c Mon Sep 17 00:00:00 2001 From: Andreas Bichinger Date: Wed, 22 May 2024 23:58:36 +0200 Subject: [PATCH 2/2] fix: register pl translation --- core/src/locale/index.ts | 2 ++ 1 file changed, 2 insertions(+) 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 {