L10n: Improve the work of exporting a language to JS with includes

This commit is contained in:
Maxim Leshchenko 2021-12-22 18:21:38 +02:00
parent 6ebae054c6
commit 3d44361a76
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -75,7 +75,7 @@ final class AboutPresenter extends OpenVKPresenter
if(is_null($lg))
$this->throwError(404, "Not found", "Language is not found");
header("Content-Type: application/javascript");
echo "window.lang = " . json_encode($localizer->export($lang)) . ";"; // привет хардкод :DDD
echo "window.lang = " . json_encode(array_unique($localizer->export($lang))) . ";"; // привет хардкод :DDD
exit;
}