Skip to content

Need it customized?

Custom features, theme changes, server setup, migrations and upgrades - built by the Botble team. Quick fixes from $99, fixed quote within 1 business day.

Get a free quote →

Localization ​

Every string the tenancy package shows — to store owners, to shoppers on the marketing site, and to platform operators — resolves through trans('packages/tenancy::file.key'), under the packages/tenancy:: namespace.

One file per surface ​

The English source lives at platform/packages/tenancy/resources/lang/en/, one file per surface:

FileSurface
api.phpControl-plane API responses
apps.phpThe store owner's Apps screen
billing.phpThe store owner's Billing screen
domains.phpThe store owner's Domains screen
emails.phpLifecycle emails (store ready, trial ending, payment failed, …)
marketing.phpThe marketing site, signup flow and parked page
operator.phpThe operator console
tenancy.phpShared/general tenancy strings
themes.phpThe store owner's Themes screen

Every other locale under resources/lang/ mirrors these same file and key names.

Locale coverage ​

The package ships the same 43 locales as the ecommerce plugin, English source included — 43 locale directories in total under resources/lang/. A store's admin language switch follows the same locale Botble already uses for the rest of the admin, so switching it also switches every tenancy screen (Apps, Billing, Domains, Themes) to match.

Overriding a translation ​

To adjust a translation without editing the package directly, place the same file under:

text
lang/vendor/packages/tenancy/{locale}/{file}.php

For example, to change a string in the operator console for Spanish, create lang/vendor/packages/tenancy/es/operator.php with just the keys you want to override — Laravel's vendor-override lookup falls back to the package's own file for any key you don't redefine.

Adding a new key

When a new key is added to en/, the missing translations across every other locale are filled by a translate script that only fills gaps — it never overwrites an existing translation.