Skip to content
This repository was archived by the owner on Aug 30, 2020. It is now read-only.

Commit da6cb38

Browse files
committed
update docs
1 parent 909e9a0 commit da6cb38

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- [Example Register Form](#example)
1818
- [Add Custom Style To The Component](#custom-style)
1919
- [Using Multilingual Form Tabs](#multilingual)
20+
- [Manage Locales](#locales)
2021
- [Using Bootstrap 3](#bootstrap3)
2122
- [Add Custom Component](#custom-component)
2223

@@ -332,6 +333,40 @@ Category::create([
332333
Category::create($request->all());
333334
```
334335

336+
<a name="locales"></a>
337+
# # Manage Locales
338+
339+
> You can add your supported locales in `locales.php` config file. you will get it using the following command:
340+
341+
```bash
342+
php artisan vendor:publish --tag=locales:config
343+
```
344+
```php
345+
<?php
346+
return [
347+
/*
348+
|--------------------------------------------------------------------------
349+
| Application Locales
350+
|--------------------------------------------------------------------------
351+
|
352+
| Contains an array with the applications available locales.
353+
|
354+
*/
355+
'en' => [
356+
'code' => 'en',
357+
'name' => 'English',
358+
'dir' => 'ltr',
359+
'flag' => '/images/flags/us.png'
360+
],
361+
'ar' => [
362+
'code' => 'ar',
363+
'name' => 'العربية',
364+
'dir' => 'rtl',
365+
'flag' => '/images/flags/sa.png'
366+
],
367+
];
368+
```
369+
335370
<a name="bootstrap3"></a>
336371
# # Using Bootstrap 3
337372

0 commit comments

Comments
 (0)