Download the PHP package hi-folks/jet-translations without Composer
On this page you can find all versions of the php package hi-folks/jet-translations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hi-folks/jet-translations
More information about hi-folks/jet-translations
Files in hi-folks/jet-translations
Package jet-translations
Short Description Jetstream Livewire translations (for blade template)
License MIT
Homepage https://github.com/hi-folks/jet-translations
Informations about the package jet-translations
Jet Translations
This package includes:
- translation strings (in json format) for Jetstream auth view and components
- translation template file (in json format) for Jetstream auth view and components (useful for who wants starting to translate strings in a new language)
- command for extracting translation strings from view templates (Blade files)
Installation
You can install the package via composer:
Publish the languages
Usage
Install this package in your Laravel Jetstream application and enable a language in your config/app.php via locale configuration:
About translation strings
Json files is located in this package in the directory:
- resources/lang/lang.json
Translations available
Currently, just italian language is supported.
About translations template file
If you don't find translations in your native language, you could contribute to Jetstream, translating strings in your native language.
Do you want to contribute translating strings ?
To help you I created a "template" json file to start the translation process. You can find resources/lang/template-lang.json with all untranslated strings. My suggestion is to copy this file in _resource/lang/xy.lang, where xy is the code of your language (de, en, fr, etc...).
About Command line usage
The JetTranslations package is shipped with an artisan command:
This command:
- it parses all blade files in vendor/laravel/jetstream/stubs/livewire/resources/views
- it extracts strings defined in __("");
- it checks if there is some missing keys in ./resources/lang/vendor/jet-translations/it.json (ot the json of the specified language via --language option)
This command could save the json file using --save-json options. For example using:
It saves de.json file in resources/lang/vendor/jet-translations/ directory of your Laravel app.
About Jetstream
Laravel Jetstream includes login, registration, email verification, two-factor authentication, session management, API support via Laravel Sanctum, and optional team management. With Livewire, Jetstream provides Blade templates with Translation Strings. Blade templates provided by Jetstream are ready to be translated, they use the __() helper :
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please see CONTRIBUTING for details.
Credits
- Roberto Butti
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.