Skip to content

Theme localization

Using JSON translation in your theme.


// In blade views
{{ __('Text you want to translate here') }}

// In controllers


To translate your theme to other language. Add .json file in /platform/themes/[your-theme]/lang.

Ex: to translate your theme to Vietnamese.


  "Text you want to translate here": "Đoạn văn bản mà bạn muốn dịch",
  "Hello": "Xin chào"

You can also translate it from UI.

  • Go to Admin -> Settings -> Languages then add a new language.
  • Go to Admin -> Appearance -> Theme translations to translate your theme.


You can see full example in /platform/themes/ripple