<?php
$file = 'lang/ar.json';
$data = json_decode(file_get_contents($file), true);
ksort($data);
file_put_contents($file, json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES));
echo "Duplicates removed, sorted, and file formatted.\n";
