File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public function __construct(array $props)
77
77
$ this ->locale = [LC_ALL => $ this ->code ];
78
78
}
79
79
80
- $ this ->variables = new LanguageVariables ($ this , $ props ['translations ' ] ?? []);
80
+ $ this ->variables = new LanguageVariables ($ this , $ props ['variables ' ] ?? $ props [ ' translations ' ] ?? []);
81
81
}
82
82
83
83
/**
@@ -132,7 +132,7 @@ public function clone(array $props = []): static
132
132
'name ' => $ this ->name ,
133
133
'slugs ' => $ this ->slugs ,
134
134
'smartypants ' => $ this ->smartypants ,
135
- 'translations ' => $ this ->variables ->toArray (),
135
+ 'variables ' => $ this ->variables ->toArray (),
136
136
'url ' => $ this ->url ,
137
137
], $ props ));
138
138
}
@@ -484,7 +484,7 @@ public function save(): static
484
484
'direction ' => $ this ->direction (),
485
485
'locale ' => Locale::export ($ this ->locale ()),
486
486
'name ' => $ this ->name (),
487
- 'translations ' => $ this ->variables ()->toArray (),
487
+ 'variables ' => $ this ->variables ()->toArray (),
488
488
'url ' => $ this ->url ,
489
489
];
490
490
You can’t perform that action at this time.
0 commit comments