mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-25 00:51:25 -05:00
Fix language string wrapping
This commit is contained in:
parent
b0fbd6fc1a
commit
7639423469
1 changed files with 4 additions and 4 deletions
|
@ -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' => 'C’est 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' => 'C’est 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: 'C’est une phrase' }" />
|
||||||
```
|
```
|
||||||
|
|
||||||
## Dashboard
|
## Dashboard
|
||||||
|
|
Loading…
Reference in a new issue