diff --git a/.github/workflows/update_supported_locals.yml b/.github/workflows/update_supported_locals.yml
index 11bd8f7b..1394bf77 100644
--- a/.github/workflows/update_supported_locals.yml
+++ b/.github/workflows/update_supported_locals.yml
@@ -16,7 +16,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
- node-version: "18"
+ node-version: "20"
- name: Install dependencies
run: npm ci
diff --git a/scripts/update_locales.js b/scripts/update_locales.js
index f8821278..74210732 100644
--- a/scripts/update_locales.js
+++ b/scripts/update_locales.js
@@ -3,7 +3,7 @@
* and create a pull request if there are new languages.
*/
-const fs = require("fs/promises");
+import fs from "fs/promises";
const run = async () => {
console.log("Get current locales...");
diff --git a/src/components/ThemeSwitch/ThemeSwitch.ts b/src/components/ThemeSwitch/ThemeSwitch.ts
index 572c62c8..6fea88dc 100644
--- a/src/components/ThemeSwitch/ThemeSwitch.ts
+++ b/src/components/ThemeSwitch/ThemeSwitch.ts
@@ -20,7 +20,7 @@ export const ThemeSwitch = styled(Switch)(({ theme }) => ({
transform: "translateX(22px)",
"& .MuiSwitch-thumb:before": {
backgroundImage: `url('data:image/svg+xml;utf8,')`,
},
"& + .MuiSwitch-track": {
@@ -43,7 +43,7 @@ export const ThemeSwitch = styled(Switch)(({ theme }) => ({
backgroundRepeat: "no-repeat",
backgroundPosition: "center",
backgroundImage: `url('data:image/svg+xml;utf8,')`,
},
},
diff --git a/src/utils/getEmojiFlag.ts b/src/utils/getEmojiFlag.ts
index 20e9a8e8..880f586b 100644
--- a/src/utils/getEmojiFlag.ts
+++ b/src/utils/getEmojiFlag.ts
@@ -274,7 +274,7 @@ export function getEmojiFlag(
VI: "🇻🇳",
ZH: "🇨🇳",
BE: "🇧🇾",
- }
+ },
) {
const arr = countryCode.split("-");
return countryFlagData[(arr[1] || arr[0]).toUpperCase()] || fallback;
diff --git a/src/utils/utils.ts b/src/utils/utils.ts
index 1e9fd0bb..ed3bce3c 100644
--- a/src/utils/utils.ts
+++ b/src/utils/utils.ts
@@ -11,7 +11,7 @@ const unifiedToUnicodeEmoji = (unified: string) => {
if (!unified) return "";
return String.fromCodePoint(
- ...unified.split("-").map((str: string) => parseInt(str, 16))
+ ...unified.split("-").map((str: string) => parseInt(str, 16)),
);
};