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

Add czech lang #886

Merged
merged 5 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 packages/i18n/scripts/build-jsr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import jsr from '../jsr.json';
import package_ from '../package.json';
import ar from '../src/ar';
import ca from '../src/ca';
import cs from '../src/cs';
import de from '../src/de';
import es from '../src/es';
import fr from '../src/fr';
Expand Down Expand Up @@ -34,6 +35,7 @@ console.time('build');
const languages = [
ar,
ca,
cs,
de,
es,
fr,
Expand Down
2 changes: 2 additions & 0 deletions packages/i18n/scripts/build-npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import path from 'node:path';
import package_ from '../package.json';
import ar from '../src/ar';
import ca from '../src/ca';
import cs from '../src/cs';
import de from '../src/de';
import es from '../src/es';
import fr from '../src/fr';
Expand Down Expand Up @@ -33,6 +34,7 @@ console.time('build');
const languages = [
ar,
ca,
cs,
de,
es,
fr,
Expand Down
74 changes: 74 additions & 0 deletions packages/i18n/src/cs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import type { Language } from './types';

// prettier-ignore
const language: Language = {
code: 'cs',
schema: (issue) => `Neplatný typ: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
specific: {
base64: (issue) => `Neplatný Base64: Obdrženo ${issue.received}`,
bic: (issue) => `Neplatný BIC: Obdrženo ${issue.received}`,
bytes: (issue) => `Neplatné bajty: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
check: (issue) => `Neplatný vstup: Obdrženo ${issue.received}`,
checkAsync: (issue) => `Neplatný vstup: Obdrženo ${issue.received}`,
checkItems: (issue) => `Neplatná položka: Obdrženo ${issue.received}`,
creditCard: (issue) => `Neplatná hodnota kreditní karty: Obdrženo ${issue.received}`,
cuid2: (issue) => `Neplatné Cuid2: Obdrženo ${issue.received}`,
decimal: (issue) => `Neplatné desetinné číslo: Obdrženo ${issue.received}`,
digits: (issue) => `Neplatné číslice: Obdrženo ${issue.received}`,
email: (issue) => `Neplatný email: Obdrženo ${issue.received}`,
emoji: (issue) => `Neplatné emoji: Obdrženo ${issue.received}`,
empty: (issue) => `Neplatná délka: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
endsWith: (issue) => `Neplatný konec: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,

Choose a reason for hiding this comment

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

What about "neplatný konec textu"?

everyItem: (issue) => `Neplatná položka: Obdrženo ${issue.received}`,
excludes: (issue) => `Neplatný obsah: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
finite: (issue) => `Neplatné konečné číslo: Obdrženo ${issue.received}`,
hash: (issue) => `Neplatný hash: Obdrženo ${issue.received}`,
hexColor: (issue) => `Neplatná hexadecimální barva: Obdrženo ${issue.received}`,
hexadecimal: (issue) => `Neplatné hexadecimální číslo: Obdrženo ${issue.received}`,
imei: (issue) => `Neplatné IMEI: Obdrženo ${issue.received}`,
includes: (issue) => `Neplatný obsah: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
integer: (issue) => `Neplatné celé číslo: Obdrženo ${issue.received}`,
ip: (issue) => `Neplatná IP adresa: Obdrženo ${issue.received}`,
ipv4: (issue) => `Neplatná IPv4 adresa: Obdrženo ${issue.received}`,
ipv6: (issue) => `Neplatná IPv6 adresa: Obdrženo ${issue.received}`,
isoDate: (issue) => `Neplatné datum: Obdrženo ${issue.received}`,
isoDateTime: (issue) => `Neplatné datum a čas: Obdrženo ${issue.received}`,
isoTime: (issue) => `Neplatný čas: Očekáváno "hh:mm", ale obdrženo ${issue.received}`,
isoTimeSecond: (issue) => `Neplatný čas: Očekáváno "hh:mm:ss", ale obdrženo ${issue.received}`,
isoTimestamp: (issue) => `Neplatný časový údaj: Očekáván ISO 8601 formát, ale obdrženo ${issue.received}`,
isoWeek: (issue) => `Neplatný týden: Obdrženo ${issue.received}`,
length: (issue) => `Neplatná délka: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
mac: (issue) => `Neplatná MAC adresa: Obdrženo ${issue.received}`,
mac48: (issue) => `Neplatná 48-bitová MAC adresa: Obdrženo ${issue.received}`,
mac64: (issue) => `Neplatná 64-bitová MAC adresa: Obdrženo ${issue.received}`,
maxBytes: (issue) => `Překočena maximální v bajtech (bytes): Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
ivan-mihalic marked this conversation as resolved.
Show resolved Hide resolved
maxLength: (issue) => `Překočena maximální délka: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
maxSize: (issue) => `Překočena maximální velikost: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
maxValue: (issue) => `Překočena maximální hodnota: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
ivan-mihalic marked this conversation as resolved.
Show resolved Hide resolved
mimeType: (issue) => `Neplatný MIME typ: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
minBytes: (issue) => `Nedostatečná minimální délka: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
minLength: (issue) => `Nedostatečná minimální délka: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
minSize: (issue) => `Nedostatečná minimální velikost: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
minValue: (issue) => `Nedostatečná minimální hodnota: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
multipleOf: (issue) => `Neplatný násobek: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
nanoid: (issue) => `Neplatné Nano ID: Obdrženo ${issue.received}`,
nonEmpty: (issue) => `Nedostatečná délka: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
notBytes: (issue) => `Nedostatečná minimální délka (bytes): Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
notLength: (issue) => `Nedostatečná délka: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
notSize: (issue) => `Nedostatečná minimální velikost: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
notValue: (issue) => `Nedostatečná minimální hodnota: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
octal: (issue) => `Neplatné osmičkové číslo: Obdrženo ${issue.received}`,

Choose a reason for hiding this comment

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

Does it make sense to use "osmičkové" when "hexadecimální" is used? Wouldn't "oktalové" make more sense?

partialCheck: (issue) => `Neplatný vstup: Obdrženo ${issue.received}`,
regex: (issue) => `Neplatný formát: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
safeInteger: (issue) => `Neplatné bezpečné celé číslo: Obdrženo ${issue.received}`,
size: (issue) => `Neplatná velikost: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
someItem: (issue) => `Neplatná položka: Obdrženo ${issue.received}`,
startsWith: (issue) => `Neplatný začátek: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,

Choose a reason for hiding this comment

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

What about "Neplatny zacatek textu"?

ulid: (issue) => `Neplatné ULID: Obdrženo ${issue.received}`,
url: (issue) => `Neplatná URL: Obdrženo ${issue.received}`,
uuid: (issue) => `Neplatné UUID: Obdrženo ${issue.received}`,
value: (issue) => `Neplatná hodnota: Očekáváno ${issue.expected}, ale obdrženo ${issue.received}`,
},
};

export default language;
1 change: 1 addition & 0 deletions packages/i18n/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export type Language = {
code:
| 'ar'
| 'ca'
| 'cs'
| 'de'
| 'en'
| 'es'
Expand Down