This repository was archived by the owner on Aug 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 17
17
- [ Example Register Form] ( #example )
18
18
- [ Add Custom Style To The Component] ( #custom-style )
19
19
- [ Using Multilingual Form Tabs] ( #multilingual )
20
+ - [ Manage Locales] ( #locales )
20
21
- [ Using Bootstrap 3] ( #bootstrap3 )
21
22
- [ Add Custom Component] ( #custom-component )
22
23
@@ -332,6 +333,40 @@ Category::create([
332
333
Category::create($request->all());
333
334
```
334
335
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
+
335
370
<a name =" bootstrap3 " ></a >
336
371
# # Using Bootstrap 3
337
372
You can’t perform that action at this time.
0 commit comments