---
title: "Localizable copy — Onboarding for Laravel | Roundly"
description: "Use translation keys as step titles and CTAs — resolved at read time, with a switch to force or disable it."
url: https://roundly-consulting.com/open-source/docs/onboarding-for-laravel/localization
language: en
---

[All packages](https://roundly-consulting.com/open-source.md)

[Onboarding for Laravel](https://roundly-consulting.com/open-source/docs/onboarding-for-laravel.md)

# Localizable copy

title() and cta() can hold translation keys. By default a value that looks like a key — it contains a . or :: — and exists in your translations is resolved with \_\_() at read time. Anything else passes through verbatim, so plain titles are never mangled:

```php
// lang/en/onboarding.php
return [
    'photo' => [
        'title' => 'Upload a profile photo',
        'cta' => 'Upload now',
    ],
];
```

```php
Step::make('onboarding.photo.title')->cta('onboarding.photo.cta');   // auto-resolved
```

## Forcing the behaviour

```php
Step::make('onboarding.forced')->translatable();       // always resolve
Step::make('keep.this.literal')->translatable(false);  // always raw
Step::make('onboarding.photo.title')->translatable(null); // back to auto-detection
```

## Reading resolved copy

```php
$step->resolvedTitle();   // "Upload a profile photo"
$step->resolvedCta();     // "Upload now"
$step->title;             // "onboarding.photo.title" — the raw key stays on the property
```

toData(), toArray() and onboarding:list all show the resolved copy. The package ships no translations of its own — it only resolves your keys, in the current locale, when the flow is read.

## Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

[More ways to support, including crypto](https://roundly-consulting.com/support-us.md)

By donating, you agree to our [donation terms](https://roundly-consulting.com/donation-terms.md).

[Support our open source work (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Join us on Patreon (opens in a new tab)](https://www.patreon.com/cw/roundly)

## Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.

[Get a quote in 48 hours](https://roundly-consulting.com/contact.md) [Browse all packages](https://roundly-consulting.com/open-source/docs/onboarding-for-laravel.md)
