mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
L10n: Improve the work of exporting a language to JS with includes
This commit is contained in:
parent
6ebae054c6
commit
3d44361a76
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue