From 0e53f127a101f4f873cbcec835c872fe7f8628df Mon Sep 17 00:00:00 2001
From: Anton
Date: Sat, 14 Sep 2024 22:01:43 +0200
Subject: [PATCH] Improve sanity check for locales
---
.eslintrc.js | 1 +
apps/locale/locale.html | 72 +++++++-----
apps/locale/locales.js | 2 +-
apps/locale/sanitycheck.js | 233 +++++++++++++++++++++++++++++++++++++
bin/sanitycheck.js | 108 ++++++++++++++---
5 files changed, 373 insertions(+), 43 deletions(-)
create mode 100644 apps/locale/sanitycheck.js
diff --git a/.eslintrc.js b/.eslintrc.js
index e79f87a5db..b7590a77eb 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -112,6 +112,7 @@ module.exports = {
"getSerial": "readonly",
"getTime": "readonly",
"global": "readonly",
+ "globalThis": "readonly",
"HIGH": "readonly",
"I2C1": "readonly",
"Infinity": "readonly",
diff --git a/apps/locale/locale.html b/apps/locale/locale.html
index 71bfecea95..5b370d735a 100644
--- a/apps/locale/locale.html
+++ b/apps/locale/locale.html
@@ -21,15 +21,17 @@
-
+
+
Then click
+