Skip to content

Commit

Permalink
Update FindAndAddLanguageKeysCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wimurk authored Nov 1, 2022
1 parent 1f9cc8c commit b4c6da0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Commands/FindAndAddLanguageKeysCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ private function parseJsonKeys(string $locale, array $keys) : void
$newKeys = array_merge_recursive($existingKeys, $newKeysWithValues);

uksort($newKeys, 'strnatcasecmp');

foreach($newKeys as $key => $value){
$newKeys[$key] = utf8_encode($value);
}

Storage::disk('localeFinder')->put("$locale.json", json_encode($newKeys, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
}

Expand Down

0 comments on commit b4c6da0

Please sign in to comment.