Skip to content

Translate Jetstream's Vue templates into any language you want. 125+ Supported Languages

License

Notifications You must be signed in to change notification settings

Tschucki/translate-jetstream

Repository files navigation

Translate your Jetstream Inertia Templates Using Regex

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Marcel Wagner Translate Jetstream

Translate Jetstream's Vue templates into any language you want. Without much effort.

It annoyed me that Jetstream's Vue templates are not translated. Sometimes I need Jetstream in a language other than English and I didn't want to translate everything by hand.

Installation

You can install the package via composer:

composer require --dev tschucki/translate-jetstream

I recommend to only use this package in a local development environment and a fresh installation of Jetstream.

You better commit your changes before running the command, so you can easily revert them if something feels wrong.

Usage

Basic Usage

Call the following command to select the language you want to translate Jetstream into:

php artisan jetstream:translate

You will be asked for the language you want to translate Jetstream into. The default language is your locale set in your Laravel application.

Locale as Argument

You can also pass the locale as an argument:

php artisan jetstream:translate de

Demo

Jetstream.Translate.Demo.mov

Supported Languages

  • "af"
  • "ak"
  • "am"
  • "ar"
  • "as"
  • "az"
  • "be"
  • "bg"
  • "bho"
  • "bm"
  • "bn"
  • "bs"
  • "ca"
  • "ceb"
  • "ckb"
  • "cs"
  • "cy"
  • "da"
  • "de"
  • "de_CH"
  • "doi"
  • "ee"
  • "el"
  • "en"
  • "eo"
  • "es"
  • "et"
  • "eu"
  • "fa"
  • "fi"
  • "fil"
  • "fr"
  • "fy"
  • "ga"
  • "gd"
  • "gl"
  • "gu"
  • "ha"
  • "haw"
  • "he"
  • "hi"
  • "hr"
  • "hu"
  • "hy"
  • "id"
  • "ig"
  • "is"
  • "it"
  • "ja"
  • "ka"
  • "kk"
  • "km"
  • "kn"
  • "ko"
  • "ku"
  • "ky"
  • "lb"
  • "lg"
  • "ln"
  • "lo"
  • "lt"
  • "lv"
  • "mai"
  • "mg"
  • "mi"
  • "mk"
  • "ml"
  • "mn"
  • "mni_Mtei"
  • "mr"
  • "ms"
  • "mt"
  • "my"
  • "nb"
  • "ne"
  • "nl"
  • "nn"
  • "oc"
  • "om"
  • "or"
  • "pa"
  • "pl"
  • "ps"
  • "pt"
  • "pt_BR"
  • "qu"
  • "ro"
  • "ru"
  • "rw"
  • "sa"
  • "sc"
  • "sd"
  • "si"
  • "sk"
  • "sl"
  • "sn"
  • "so"
  • "sq"
  • "sr_Cyrl"
  • "sr_Latn"
  • "sr_Latn_ME"
  • "su"
  • "sv"
  • "sw"
  • "ta"
  • "te"
  • "tg"
  • "th"
  • "ti"
  • "tk"
  • "tl"
  • "tr"
  • "tt"
  • "ug"
  • "uk"
  • "ur"
  • "uz_Cyrl"
  • "uz_Latn"
  • "vi"
  • "xh"
  • "yi"
  • "yo"
  • "zh_CN"
  • "zh_HK"
  • "zh_TW"
  • "zu"

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.