diff --git a/src/helpers.php b/src/helpers.php index 5c24965..fecb59d 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -60,6 +60,10 @@ function buildPhrasesTree($phrases, $locale): array /** @var \Outhebox\TranslationsUI\Models\Phrase $phrase */ foreach ($phrases as $phrase) { + if ($phrase->file->file_name === "$locale.json") { + $tree[$locale][$phrase->file->file_name][$phrase->key] = ! blank($phrase->value) ? $phrase->value : $phrase->source->value; + continue; + } setArrayValue( array: $tree[$locale][$phrase->file->file_name], key: $phrase->key,