Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create pl.ts #56

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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 hi from './hi'
import ja from './ja'
import pl from './pl'
import pt from './pt'
import ru from './ru'
import type { Localization } from './types'
Expand All @@ -26,6 +27,7 @@ const locales: Record<string, Localization> = {
fr,
hi,
ja,
pl,
}

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

const locale: Localization = {
'*': {
prefix: 'Każdy',
suffix: '',
text: 'Nieznany',
'*': {
empty: { text: 'każdy {{field.id}}' },
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

thank you for the translation!

image

{{field.id}} only works for the English translation. Could you please replace all occurrences of {{field.id}} with the Polish word?

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
Loading