Translations

Available languages

Calbok provides the ten planned language packs: English, Spanish, Brazilian Portuguese, Arabic, German, French, Japanese, Italian, Hindi and Simplified Chinese (see the language identifier list). Use the existing language switcher or ?lang=en, ?lang=es, ?lang=pt-BR, ?lang=ar, ?lang=de, ?lang=fr, ?lang=ja, ?lang=it, ?lang=hi and ?lang=zh-CN. Unsupported browser hints and stored preferences retain the English fallback. The shared source inventory is in English foundation.

Spanish uses general Latin American wording, the es identifier and installed Spanish calendar/package resources. The English receipt and Spanish receipt record their sampled frontend acceptance and limits.

Brazilian Portuguese uses pt-BR publicly, pt_BR for Laravel/Filament/Carbon and pt-br for FullCalendar. The Portuguese receipt records fourteen completed selected frontend identities, static lexical limits and source review. Deployment and release remain separate.

Arabic uses Modern Standard Arabic and the ar identifier across the installed language mappings. The Arabic receipt records fourteen selected frontend identities, shared contact-direction corrections, static lexical limits and sampled editorial review. Latin phone/email values keep their reading order within Arabic screens.

German uses standard wording with formal Sie address and the de identifier across resources and installed packages. The German receipt records fourteen selected presentation identities, long-label wrapping, calendar wording and the focused greeting correction. Existing amounts, currency and clinic-local times retain their meaning.

French uses standard wording with formal vous and the fr identifier across resources and installed packages. The French receipt records fourteen selected presentation identities, accents, apostrophes, spacing, calendar wording and the focused select-prompt correction. Existing currencies, amounts and clinic-local times retain their meaning.

Japanese uses standard polite wording and the ja identifier across resources and installed packages. The Japanese receipt records fourteen selected presentation identities, sampled glyphs and line breaks, actual calendar binding and retained font/settings-pixel limits. Existing currencies, amounts and clinic-local times retain their meaning.

Italian uses standard wording with formal Lei and the it identifier across resources and installed packages. The Italian receipt records fourteen selected presentation identities, accents/apostrophes, optional-name joins, wrapping, calendar binding and retained package/date limits. Existing currencies, amounts and clinic-local times retain their meaning.

Hindi uses standard Devanagari wording with polite आप and the hi identifier across resources and installed packages. The Hindi receipt records fourteen selected presentation identities, sampled conjuncts/vowel marks, mixed Latin fields and calendar binding, with the observed font, date and package limits. Existing currencies, amounts and clinic-local times retain their meaning.

Simplified Chinese uses standard simplified characters with polite 您, public zh-CN, resource/Filament/Carbon zh_CN and FullCalendar zh-cn. The Chinese receipt records fourteen selected presentation identities, sampled Han glyphs/punctuation, mixed Latin labels and calendar binding, with retained font/date/package and source-only regional limits. Traditional Chinese retains the existing fallback boundary. Existing currencies, amounts and clinic-local times retain their meaning.

Adding a language

This development source enables the ten reviewed packs listed above. A future pack needs complete resources, package/calendar wording and a bounded frontend review before activation. An identifier-map entry alone does not enable another pack.

Public tag (HTML/browser) Resource / Filament / Carbon identifier FullCalendar identifier
en en en (built in)
es (general Latin American wording) es es
pt-BR pt_BR pt-br
ar ar ar
de de de
fr fr fr
ja ja ja
it it it
hi hi hi
zh-CN (Simplified) zh_CN zh-cn

Locales matches case and hyphen/underscore spelling to these identifiers, then checks the configured supported list. Regional browser hints can match a configured primary language (for example en-US to en). Portuguese variants other than Brazilian Portuguese and Traditional Chinese do not implicitly select these regional packs. Unknown inputs retain the normal fallback. Adding a map entry or native name does not enable a pack. Currency, country, tax policy, location time zone and stored UTC instants remain independent of language.

  1. Copy lang/en to lang/{code} (for example lang/fr). Translate every string. Keep the array keys identical; placeholders such as :name and :count stay as they are.
  2. Run the standalone source check, php bin/dev/check-translations.php {resource_identifier}, without booting the app. Preserve resource keys, colon/moustache placeholders, markup and plural branches. Review the report's lexical limits, dynamic bindings and package text. Complete the three short browser flows described in the language task, including any needed calendar package binding, before adding the accepted identifier to available_locales in config/app.php.
  3. Add the language's own name to locale_native_names in the same file, so the switcher can show it (for example 'fr' => 'Français'). Arabic is already listed as 'ar' => 'العربية'.
  4. If the language is right-to-left, add the code to rtl_locales. The public pages, the panels, the installer, and the staff invite page set dir from that list. Arabic is already in rtl_locales.
  5. After enabling more than one accepted locale, use ?lang={public_tag} or the existing language switcher. A staff user's saved account preference takes precedence in the panels; public explicit/session choice, then browser preference, then business/configured fallback apply to public pages. A public visitor's choice does not overwrite a staff account preference. A business can set a customer-facing fallback under Business profile → Default language. Use the existing storage and switcher; language does not create another account or booking address.

Filament (the admin and tenant panels) already ships its own translations for framework chrome such as "Save" and "Delete". You do not re-translate those. Strings we wrote (navigation, form labels, the installer, invitations, validation) come from lang/{code}.

Customer-facing notification defaults follow the existing customer → business → configured → English allowed-locale chain. Customized business templates retain their existing precedence and sandbox rules. Template previews use fictional sample facts and do not send email/SMS. Service, team member and location names have optional translations authored by the business (the Translations section). Missing record translations use the original name. Application resources never translate business names, catalog descriptions or customer data.