Files
cal.diy/packages/lib/server/locales/sk/common.json
T
163c7ff791 refactor: replace i18n HTTP requests with build-time bundling (#22422)
* refactor: replace i18n HTTP requests with build-time bundling

- Create translationBundler.ts for build-time translation loading
- Replace HTTP fetch in loadTranslations with file system reads
- Add CalComVersion cache invalidation to prevent stale translations
- Fix TypeScript errors in booking page components
- Eliminate 60s timeout issues by removing network dependency

Resolves translation timeout issues by bundling translations at build time
instead of making runtime HTTP requests to /static/locales/ endpoints.

Co-Authored-By: [email protected] <[email protected]>

* fix: move i18n files back to packages/lib/server with proper imports

- Move i18n.ts and translationBundler.ts back to packages/lib/server/
- Replace all relative imports with @calcom/lib/server/i18n pattern
- Fix LOCALES_PATH to point to correct directory
- Maintain optimized serverless-friendly translation loading

Co-Authored-By: [email protected] <[email protected]>

* refactor: move locale files to packages/lib/server to eliminate circular deps

- Move all locale files from apps/web/public/static/locales to packages/lib/server/locales
- Create copy-locales-static.js script to copy files during build
- Update all references to use new location for build-time access
- Maintain public folder copying for Next.js runtime access
- Update platform atoms, scripts, and config files
- Fix copy script relative path issue

Co-Authored-By: [email protected] <[email protected]>

* fix: update test imports after locale refactor

- Fix import paths in test files updated by pre-commit hooks
- Ensure all tests use correct locale import paths

Co-Authored-By: [email protected] <[email protected]>

* fix: revert import paths from @calcom/web/lib/i18n to @calcom/lib/server/i18n

- Revert all test file imports back to @calcom/lib/server/i18n as requested
- Addresses GitHub comment feedback to stick with packages/lib/server location
- Fixes import paths in 6 test files that were incorrectly changed

Co-Authored-By: [email protected] <[email protected]>

* fix: update vite config alias to use new locale path

- Update @calcom/web/public/static/locales/en/common.json to @calcom/lib/server/locales/en/common.json
- Addresses GitHub comment about updating platform atoms vite config
- Maintains correct path resolution after locale files moved to packages/lib/server

Co-Authored-By: [email protected] <[email protected]>

* fix: update translationBundler path resolution for production builds

- Use process.cwd() instead of __dirname for locale file path resolution
- Ensures locale files can be found in both development and production environments
- Fixes E2E test failures caused by missing locale files in .next/server/chunks/

Co-Authored-By: [email protected] <[email protected]>

* fix: use relative path resolution for locale files in translationBundler

- Change from process.cwd() to __dirname with relative paths
- Ensures locale files can be found in both development and production environments
- Fixes E2E test failures caused by incorrect path resolution in Next.js builds

Co-Authored-By: [email protected] <[email protected]>

* fix: use process.cwd() for locale path resolution in production builds

- Change from __dirname to process.cwd() with relative paths
- Ensures locale files can be found when bundled into Next.js server chunks
- Fixes E2E test failures caused by incorrect path resolution in production environment
- Follows same pattern used in getStaticProps.tsx for cross-package file access

Co-Authored-By: [email protected] <[email protected]>

* fix: use path.resolve pattern from sendVerificationRequest for locale access

- Change from process.cwd() to path.resolve(process.cwd(), '..', '..', 'packages/lib/server/locales')
- Follows same pattern used in sendVerificationRequest.ts for cross-environment file access
- Should resolve E2E test failures by ensuring locale files can be found when bundled into Next.js server chunks
- Pattern navigates up from current working directory to reach packages directory consistently

Co-Authored-By: [email protected] <[email protected]>

* fix: use dynamic monorepo root detection for locale path resolution

- Replace relative path resolution with dynamic monorepo root finder
- Ensures locale files can be found from any working directory (root, apps/web, apps/api/v2)
- Update API v2 i18n config to use new locale path
- Fixes remaining E2E test failures in API v2 and E2E (1/4) test suites

Co-Authored-By: [email protected] <[email protected]>

* fix: use require.resolve(__filename) for robust path resolution in all contexts

- Replace __dirname with require.resolve(__filename) in monorepo root detection
- Ensures locale files can be found when running from any working directory
- Fixes E2E API v2 test failures where __dirname resolves to '.' instead of actual file path

Co-Authored-By: [email protected] <[email protected]>

* Revert "fix: use require.resolve(__filename) for robust path resolution in all contexts"

This reverts commit b37d8226000da8f7d5fb98b83dd0e95a53d45372.

* fix: update copied locale files after translationBundler path resolution fix

- Copy script updated all locale files in public directory
- Ensures E2E tests have access to latest locale files
- Fixes regression where all E2E tests were failing

Co-Authored-By: [email protected] <[email protected]>

* feat: remove existing locale files to establish copy script as single source of truth

- Delete all common.json files from apps/web/public/static/locales/
- Eliminates developer confusion about which files are authoritative
- copy-locales-static.js script now clearly the only mechanism for populating public folder
- packages/lib/server/locales/ remains the definitive source of truth for translations

Co-Authored-By: [email protected] <[email protected]>

* add comment

* refactor: simplify findMonorepoRoot by removing redundant fallback loop

- Remove unnecessary second while loop using process.cwd()
- The first loop from __dirname will always find the monorepo root
- Add clear error message for fail-fast behavior if repo structure is corrupted
- Improves code clarity and maintainability

Co-Authored-By: [email protected] <[email protected]>

* feat: integrate updated translations from main branch

- Restore all common.json files from main branch to apps/web/public/static/locales/
- Overwrite packages/lib/server/locales/ with up-to-date translation content
- Resolve merge conflicts using Benny's safer 2-step approach
- Ensure translation source of truth remains in packages/lib/server/locales/
- Complete safer conflict resolution to eliminate merge conflicts on PR #22422

Co-Authored-By: [email protected] <[email protected]>

* chore: update package.json and yarn.lock after translation integration

- Update dependencies after ts-node installation for pre-commit hooks
- Ensure yarn.lock reflects current dependency state
- Complete translation integration process

Co-Authored-By: [email protected] <[email protected]>

* feat: remove duplicate locale files from apps/web to establish single source of truth

- Delete all common.json files from apps/web/public/static/locales/
- Maintain packages/lib/server/locales/ as the single source of truth for translations
- copy-locales-static.js script will populate public folder during build process
- Complete Benny's safer 2-step approach: restore from main, then remove duplicates
- Resolve merge conflicts and eliminate developer confusion about translation file locations

Co-Authored-By: [email protected] <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: hbjORbj <[email protected]>
2025-07-12 07:49:27 +00:00

71 lines
4.8 KiB
JSON

{
"identity_provider": "Poskytovateľ identity",
"trial_days_left": "V PRO verzii na skúšku vám zostávajú $t(day, {\"count\": {{days}} })",
"day_one": "{{count}} deň",
"day_other": "{{count}} dni",
"second_one": "{{count}} sekunda",
"second_other": "{{count}} sekundy",
"upgrade_now": "Prejsť na platený program",
"accept_invitation": "Prijať pozvánku",
"calcom_explained": "{{appName}} poskytuje plánovaciu infraštruktúru pre každého.",
"calcom_explained_new_user": "Dokončite nastavenie svojho {{appName}} účtu! Ste už iba niekoľko krokov od vyriešenia všetkých svojich problémov s plánovaním.",
"have_any_questions": "Máte otázky? Sme tu, aby sme vám pomohli.",
"reset_password_subject": "{{appName}}: Pokyny pre obnovenie hesla",
"verify_email_subject": "{{appName}}: Overte svoj účet",
"check_your_email": "Skontrolujte svoj e-mail",
"verify_email_page_body": "Odoslali sme e-mail na adresu {{email}}. E-mailovú adresu je potrebné overiť, aby bola zaručená čo najlepšia doručiteľnosť e-mailov a kalendárov z {{appName}}.",
"verify_email_banner_body": "Overte svoju e-mailovú adresu, aby ste zaručili čo najlepšiu doručiteľnosť e-mailov a kalendára",
"verify_email_email_header": "Overte svoju e-mailovú adresu",
"verify_email_button": "Oveřiť e-mail",
"copy_somewhere_safe": "Uložte tento kľúč API niekde v bezpečí. Nebudete ho môcť znova zobraziť.",
"verify_email_email_body": "Overte svoju e-mailovú adresu kliknutím na tlačidlo nižšie.",
"verify_email_email_link_text": "Tu je odkaz pre prípad, že nemáte radi klikanie na tlačidlá:",
"email_sent": "E-mail bol odoslaný",
"event_declined_subject": "Zamietnuté: {{title}} v {{date}}",
"event_cancelled_subject": "Zrušené: {{title}} ({{date}})",
"event_request_declined": "Žiadosť o udalosť bola zamietnutá",
"event_request_declined_recurring": "Žiadosť o opakovanú udalosť bola zamietnutá",
"event_request_cancelled": "Vaša plánovaná udalosť bola zrušená",
"organizer": "Organizátor",
"need_to_reschedule_or_cancel": "Preplánovať alebo zrušiť?",
"no_options_available": "Nie sú k dispozícii žiadne možnosti",
"signing_up_terms": "Pokračovaním súhlasíte s <0>Podmienkami</0> a <1>Zásadami ochrany osobných údajov</1>",
"multiple_duration_timeUnit_short": "{{count}}$t({{unit}}_short)",
"minute_short": "min",
"hour_short": "hod",
"minute_one_short": "{{count}} min",
"hour_one_short": "{{count}} hod",
"travel_schedule": "Cestovný plán",
"travel_schedule_description": "Naplánujte si cestu vopred, aby ste zachovali svoj súčasný plán v inom časovom pásme a zabránili rezerváciám o polnoci.",
"schedule_timezone_change": "Zmena časového pásma v pláne",
"schedule_tz_without_end_date": "Plán časového pásma bez koncového dátumu",
"ooo_reasons_unspecified": "Nespecifikované",
"ooo_reasons_vacation": "Dovolenka",
"ooo_reasons_travel": "Cestovanie",
"ooo_reasons_sick_leave": "Liekenská",
"ooo_reasons_public_holiday": "Sviatok",
"ooo_forwarding_to": "Preposielanie na {{username}}",
"ooo_not_forwarding": "Žiadne preposielanie",
"ooo_empty_title": "Vytvoriť OOO",
"ooo_empty_description": "Komunikujte so svojimi rezervujúcimi, keď nie ste k dispozícii pre prijímanie rezervácií. Môžu vás stále rezervovať pri vašom návrate alebo vás môžete presmerovať na člena tímu.",
"ooo_user_is_ooo": "{{displayName}} je OOO",
"ooo_slots_returning": "<0>{{displayName}}</0> môže absolvovať svoje stretnutia, keď je mimo.",
"ooo_slots_book_with": "Rezervovať {{displayName}}",
"ooo_select_reason": "Vybrať dôvod",
"enterprise_license_locally": "Túto funkciu môžete otestovať lokálne, ale nie v produkčnom prostredí.",
"enterprise_license_sales": "Na upgradovanie na podnikateľskú verziu kontaktujte náš obchodný tím. Ak už je licenčný kľúč na mieste, kontaktujte [email protected] pre pomoc.",
"apply_to_all_event_types": "Platí pre všetky, vrátane budúcich typov udalostí",
"date_and_time": "Dátum a čas",
"email_reminder_upcoming_event_notice": "Toto je pripomienka k vášmu pripravovanému podujatiu.",
"email_reminder_triggered_by_workflow": "Toto pripomenutie bolo spustené pracovným postupom v Cal.",
"event_upper_case": "Udalosť",
"scheduling_by": "Naplánované",
"experience_review_prompt": "Aký bol váš posledný zážitok?",
"improve_customer_experience_message": "Neustále zlepšujeme zákaznícku skúsenosť.",
"meeting_satisfaction_question": "Ako spokojní ste boli s posledným stretnutím?",
"meeting_not_joined_question": "nezúčastnili ste sa stretnutia?",
"reschedule_cta_short": "Preplánujte tu.",
"you_and_conjunction": "Vy &",
"email_survey_triggered_by_workflow": "Tento prieskum bol spustený pracovným postupom v Cal."
}