eslint all the things
This commit is contained in:
+2
-3
@@ -8,7 +8,6 @@ $selected = [
|
||||
'wifi.connected_ip_is',
|
||||
'wifi.not_conn',
|
||||
'wifi.enter_passwd',
|
||||
'wifi.passwd_saved',
|
||||
];
|
||||
|
||||
$out = [];
|
||||
@@ -18,6 +17,6 @@ foreach ($selected as $key) {
|
||||
|
||||
file_put_contents(__DIR__. '/jssrc/lang.js',
|
||||
"// Generated from PHP locale file\n" .
|
||||
'var _tr = ' . json_encode($out, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE) . ";\n\n" .
|
||||
"function tr(key) { return _tr[key] || '?'+key+'?'; }\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