File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,13 @@ echo $post->translate('fr')->title; // Mon premier post
7171#### Filling multiple translations wrapped
7272
7373You may define a wrapper property when creating new translations. Set the ` translations_wrapper ` property in translatable config file:
74+
7475``` php
7576'translations_wrapper' => 'translations',
7677```
7778
7879Then just wrap multiple locales using that property:
80+
7981``` php
8082$data = [
8183 'author' => 'Gummibeer',
Original file line number Diff line number Diff line change @@ -60,11 +60,13 @@ echo $post->translate('fr')->title; // Mon premier post
6060#### Filling multiple translations wrapped
6161
6262You may define a wrapper property when creating new translations. Set the ` translations_wrapper ` property in translatable config file:
63+
6364``` php
6465'translations_wrapper' => 'translations',
6566```
6667
6768Then just wrap multiple locales using that property:
69+
6870``` php
6971$data = [
7072 'author' => 'Gummibeer',
You can’t perform that action at this time.
0 commit comments