We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17f5f11 commit cfa0484Copy full SHA for cfa0484
src/Manager.php
@@ -347,7 +347,8 @@ protected function makeTree($translations, $json = false)
347
{
348
$array = [];
349
foreach ($translations as $translation) {
350
- if ($json) {
+ // For JSON and sentences, do not use dotted notation
351
+ if ($json || Str::contains($translation->key, [' ']) || Str::endsWith($translation->key, ['.'])) {
352
$this->jsonSet($array[$translation->locale][$translation->group], $translation->key,
353
$translation->value);
354
} else {
0 commit comments