Restructuring
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ foreach ($selected as $key) {
|
||||
$out[$key] = $_messages[$key];
|
||||
}
|
||||
|
||||
file_put_contents(__DIR__. '/jssrc/lang.js',
|
||||
file_put_contents(__DIR__. '/js/lang.js',
|
||||
"// Generated from PHP locale file\n" .
|
||||
'let _tr = ' . json_encode($out, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE) . ";\n\n" .
|
||||
"function tr (key) { return _tr[key] || '?' + key + '?' }\n"
|
||||
|
||||
Reference in New Issue
Block a user