Initial commit
This commit is contained in:
8
main_plugin/pickr/lang.js.php
Normal file
8
main_plugin/pickr/lang.js.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$lang = include $path . 'lang.php';
|
||||
$lng = $_GET['lng'] ?? ($_SESSION['lng'] ?? 'en');
|
||||
$placeholders = [];
|
||||
foreach ($lang[$lng] as $key => $value) {
|
||||
$placeholders['{{' . $key . '}}'] = $value;
|
||||
}
|
||||
echo strtr(file_get_contents($path . 'pickr.js'), $placeholders);
|
||||
Reference in New Issue
Block a user