i18n

LaunchStack supports multi-language out of the box, the language files are located in the lang folder on the root.

Currently, LaunchStack comes with two languages, English and Portuguese, let's check how to use it.

lang/en/sidebar.php

return [
    'command_palette' => 'Command Palette',
    'dashboard' => 'Dashboard',
    'help' => 'Help Center',
    'settings' => 'Settings',
    'notifications' => 'Notifications'
];

lang/pt-BR/sidebar.php

return [
    'command_palette' => 'Paleta de comandos',
    'dashboard' => 'Painel de controle',
    'help' => 'Central de ajuda',
    'settings' => 'Configurações',
    'notifications' => 'Notificações'
];

Vue file

{{ $t("sidebar.dashboard") }}

Last updated

Was this helpful?