Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincrozat committed Apr 5, 2023
1 parent 8c2975a commit e3bcab7
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,37 @@
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/smousss/laravel-globalize/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/smousss/laravel-globalize/actions?query=workflow%3Arun-tests+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/smousss/laravel-globalize.svg?style=flat-square)](https://packagist.org/packages/smousss/laravel-globalize)

## Documentation
## Installation

Globalize for Laravel documentation is accessible here: https://smousss.com
Install the package via Composer:

```bash
composer require smousss/laravel-globalize
```

Publish the config file:

```bash
php artisan vendor:publish --tag=globalize-config
```

## Usage

First, [generate a secret key](https://smousss.com/dashboard) on smousss.com.

Then, internationalize your views:

```bash
php artisan smousss:globalize
```

Globalize will ask you if you want to globalize all your views or a selection of them.

```bash
Should Smousss process a particular file or everything? [Choose files]:
[0] Choose files
[1] Process everything!
```

## Credits

Expand Down

0 comments on commit e3bcab7

Please sign in to comment.