add check tool

This commit is contained in:
Fred Tempez 2022-12-29 10:42:45 +01:00
parent d1060a470a
commit eb3b4891fb

7
tools/check.php Normal file
View File

@ -0,0 +1,7 @@
<?php
$fr = json_decode(file_get_contents('../fr_FR.json'), true);
$pt = json_decode(file_get_contents('../pt_PT.json'), true);
$intersec = array_intersect_key($pt, $fr);
$dif = array_diff_key($fr, $pt);
$merge = array_merge($dif, $intersec);
file_put_contents('../pt.json', json_encode($merge, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT));