Fix language string wrapping

This commit is contained in:
Kevin MacMartin 2018-04-30 12:10:15 -04:00
parent b0fbd6fc1a
commit 7639423469

View file

@ -110,22 +110,22 @@ A multi-language text block can be included in a number of ways depending where
In PHP or a Laravel blade: In PHP or a Laravel blade:
```php ```php
{{ Language::select([ 'en' => "This is a sentence", 'fr' => "C'est une phrase" ]) }} {{ Language::select([ 'en' => 'This is a sentence', 'fr' => 'Cest une phrase' ]) }}
``` ```
In a Laravel blade: In a Laravel blade:
```php ```php
@lang([ @lang([
'en' => "This is a sentence", 'en' => 'This is a sentence',
'fr' => "C'est une phrase" 'fr' => 'Cest une phrase'
]) ])
``` ```
In a Vue.js component: In a Vue.js component:
```html ```html
<lang :c-strings="{ en: 'This is a sentence', fr: 'C'est une phrase' }" /> <lang :c-strings="{ en: 'This is a sentence', fr: 'Cest une phrase' }" />
``` ```
## Dashboard ## Dashboard