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") }}
You can see the i18n working by changing your language inside the account/edit and checking the sidebar items like Command Palette, Dashboard and etc.
Last updated
Was this helpful?