🚀
Launch Stack
Website
  • Welcome
  • Get Started
  • Stack
  • Updates
  • 📡Backend
    • Introduction
    • Application Structure
    • Config
    • API
    • Authentication
      • Email and Password
      • Social Login
    • Debugging
    • Environment Variables
    • File Uploads
    • Logging
    • Mail
    • Handling Errors [Sentry]
    • Notifications
      • Email Notifications
      • In-App Notifications
    • Payments [Stripe]
    • Payments [Paddle]
    • Routing
    • Testing
      • Feature Tests
      • Browser Tests
  • 🛡️Frontend
    • Introduction
    • Routing
    • Tailwind and SCSS
    • Views
    • Layouts
    • Components
      • Command Palette
      • Feedback
      • Form
      • Modal
      • Pagination
    • i18n
  • 🖥️App
    • Account
    • API
    • Billing
    • Team Members
    • Team Settings
  • ⚙️Admin
    • Introduction
    • Team Management
    • User Management
    • Notifications
    • Feedback
    • Blog Management
Powered by GitBook
On this page

Was this helpful?

  1. Frontend

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.

PreviousPaginationNextAccount

Last updated 9 months ago

Was this helpful?

🛡️