diff --git a/eslint.config.mjs b/eslint.config.mjs index 04a200c7e..6010fe6ec 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,6 +1,8 @@ // @ts-check import { defineConfig } from "eslint-config-hyoban" +import recursiveSort from "./plugins/eslint-recursive-sort.js" + export default defineConfig( { formatting: false, @@ -45,14 +47,11 @@ export default defineConfig( }, { files: ["locales/**/*.json"], + plugins: { + "recursive-sort": recursiveSort, + }, rules: { - "jsonc/sort-keys": [ - "error", - { - pathPattern: ".*", - order: { type: "asc" }, - }, - ], + "recursive-sort/recursive-sort": "error", }, }, ) diff --git a/locales/app/ar-DZ.json b/locales/app/ar-DZ.json index cd7e015c1..12ae19f88 100644 --- a/locales/app/ar-DZ.json +++ b/locales/app/ar-DZ.json @@ -204,4 +204,4 @@ "words.user": "المستخدم", "words.which.all": "الكل", "words.zero_items": "صفر عناصر" -} +} \ No newline at end of file diff --git a/locales/app/ar-MA.json b/locales/app/ar-MA.json index 0088eaca9..9ff9baf08 100644 --- a/locales/app/ar-MA.json +++ b/locales/app/ar-MA.json @@ -204,4 +204,4 @@ "words.user": "المستخدم", "words.which.all": "الكل", "words.zero_items": "صفر عناصر" -} +} \ No newline at end of file diff --git a/locales/app/ar-SA.json b/locales/app/ar-SA.json index 88513247c..7d8358a84 100644 --- a/locales/app/ar-SA.json +++ b/locales/app/ar-SA.json @@ -204,4 +204,4 @@ "words.user": "المستخدم", "words.which.all": "الكل", "words.zero_items": "لا توجد عناصر" -} +} \ No newline at end of file diff --git a/locales/app/ar-iq.json b/locales/app/ar-iq.json index 7fee8b035..0db4be8ae 100644 --- a/locales/app/ar-iq.json +++ b/locales/app/ar-iq.json @@ -207,4 +207,4 @@ "words.user": "المستخدم", "words.which.all": "الكل", "words.zero_items": "لا توجد عناصر" -} +} \ No newline at end of file diff --git a/locales/app/ar-kw.json b/locales/app/ar-kw.json index 1e6151319..b185ded3c 100644 --- a/locales/app/ar-kw.json +++ b/locales/app/ar-kw.json @@ -207,4 +207,4 @@ "words.user": "المستخدم", "words.which.all": "الكل", "words.zero_items": "صفر عناصر" -} +} \ No newline at end of file diff --git a/locales/app/ar-tn.json b/locales/app/ar-tn.json index 0867f3181..6c806a638 100644 --- a/locales/app/ar-tn.json +++ b/locales/app/ar-tn.json @@ -207,4 +207,4 @@ "words.user": "المستخدم", "words.which.all": "الكل", "words.zero_items": "صفر عناصر" -} +} \ No newline at end of file diff --git a/locales/app/en.json b/locales/app/en.json index a20db65eb..97f727303 100644 --- a/locales/app/en.json +++ b/locales/app/en.json @@ -230,4 +230,4 @@ "words.user": "User", "words.which.all": "all", "words.zero_items": "Zero items" -} +} \ No newline at end of file diff --git a/locales/app/es.json b/locales/app/es.json index eca8d2c23..66ed9b984 100644 --- a/locales/app/es.json +++ b/locales/app/es.json @@ -134,4 +134,4 @@ "words.user": "Usuario", "words.which.all": "Todo", "words.zero_items": "Sin contenido" -} +} \ No newline at end of file diff --git a/locales/app/fi.json b/locales/app/fi.json index 11dba1ad4..98a767428 100644 --- a/locales/app/fi.json +++ b/locales/app/fi.json @@ -204,4 +204,4 @@ "words.user": "Käyttäjä", "words.which.all": "kaikki", "words.zero_items": "Ei kohteita" -} +} \ No newline at end of file diff --git a/locales/app/fr.json b/locales/app/fr.json index dc14f478e..703b8a3ae 100644 --- a/locales/app/fr.json +++ b/locales/app/fr.json @@ -204,4 +204,4 @@ "words.user": "Utilisateur", "words.which.all": "tous", "words.zero_items": "Zéro élément" -} +} \ No newline at end of file diff --git a/locales/app/it.json b/locales/app/it.json index 0d550522b..713452f96 100644 --- a/locales/app/it.json +++ b/locales/app/it.json @@ -204,4 +204,4 @@ "words.user": "Utente", "words.which.all": "tutti", "words.zero_items": "Zero elementi" -} +} \ No newline at end of file diff --git a/locales/app/ja.json b/locales/app/ja.json index 51b0dde27..1fd656de7 100644 --- a/locales/app/ja.json +++ b/locales/app/ja.json @@ -203,4 +203,4 @@ "words.user": "ユーザー", "words.which.all": "すべて", "words.zero_items": "アイテムがありません" -} +} \ No newline at end of file diff --git a/locales/app/pt.json b/locales/app/pt.json index 191a45783..e0728c059 100644 --- a/locales/app/pt.json +++ b/locales/app/pt.json @@ -203,4 +203,4 @@ "words.user": "ユーザー", "words.which.all": "すべて", "words.zero_items": "アイテムがありません" -} +} \ No newline at end of file diff --git a/locales/app/ru.json b/locales/app/ru.json index cb02e972c..65f37faa0 100644 --- a/locales/app/ru.json +++ b/locales/app/ru.json @@ -204,4 +204,4 @@ "words.user": "Пользователь", "words.which.all": "все", "words.zero_items": "Нет элементов" -} +} \ No newline at end of file diff --git a/locales/app/zh-CN.json b/locales/app/zh-CN.json index e51cf59dd..0160d81fb 100644 --- a/locales/app/zh-CN.json +++ b/locales/app/zh-CN.json @@ -230,4 +230,4 @@ "words.user": "用户", "words.which.all": "全部", "words.zero_items": "没有内容" -} +} \ No newline at end of file diff --git a/locales/app/zh-HK.json b/locales/app/zh-HK.json index e17dc6e21..3853cd59f 100644 --- a/locales/app/zh-HK.json +++ b/locales/app/zh-HK.json @@ -207,4 +207,4 @@ "words.user": "用戶", "words.which.all": "所有", "words.zero_items": "零項目" -} +} \ No newline at end of file diff --git a/locales/app/zh-TW.json b/locales/app/zh-TW.json index 9745d2ed9..702d2f1e3 100644 --- a/locales/app/zh-TW.json +++ b/locales/app/zh-TW.json @@ -228,4 +228,4 @@ "words.user": "使用者", "words.which.all": "全部", "words.zero_items": "沒有內容" -} +} \ No newline at end of file diff --git a/locales/common/ar-DZ.json b/locales/common/ar-DZ.json index 78c34d91c..ceed167b0 100644 --- a/locales/common/ar-DZ.json +++ b/locales/common/ar-DZ.json @@ -26,4 +26,4 @@ "words.result_other": "نتائج", "words.space": " ", "words.which.all": "الكل" -} +} \ No newline at end of file diff --git a/locales/common/ar-IQ.json b/locales/common/ar-IQ.json index 09de59417..2c0d91cdc 100644 --- a/locales/common/ar-IQ.json +++ b/locales/common/ar-IQ.json @@ -25,4 +25,4 @@ "words.result_other": "نتائج", "words.space": " ", "words.which.all": "الكل" -} +} \ No newline at end of file diff --git a/locales/common/ar-KW.json b/locales/common/ar-KW.json index 09de59417..2c0d91cdc 100644 --- a/locales/common/ar-KW.json +++ b/locales/common/ar-KW.json @@ -25,4 +25,4 @@ "words.result_other": "نتائج", "words.space": " ", "words.which.all": "الكل" -} +} \ No newline at end of file diff --git a/locales/common/ar-MA.json b/locales/common/ar-MA.json index 66293ad4c..2c6cde327 100644 --- a/locales/common/ar-MA.json +++ b/locales/common/ar-MA.json @@ -26,4 +26,4 @@ "words.result_other": "نتائج", "words.space": " ", "words.which.all": "الكل" -} +} \ No newline at end of file diff --git a/locales/common/ar-SA.json b/locales/common/ar-SA.json index 0ff14b728..9cdc2a7a6 100644 --- a/locales/common/ar-SA.json +++ b/locales/common/ar-SA.json @@ -26,4 +26,4 @@ "words.result_other": "نتائج", "words.space": " ", "words.which.all": "الكل" -} +} \ No newline at end of file diff --git a/locales/common/ar-TN.json b/locales/common/ar-TN.json index 013ae1159..48084040d 100644 --- a/locales/common/ar-TN.json +++ b/locales/common/ar-TN.json @@ -25,4 +25,4 @@ "words.result_other": "نتائج", "words.space": " ", "words.which.all": "الكل" -} +} \ No newline at end of file diff --git a/locales/common/en.json b/locales/common/en.json index 5452d58cf..57af3eb9d 100644 --- a/locales/common/en.json +++ b/locales/common/en.json @@ -31,4 +31,4 @@ "words.submit": "Submit", "words.update": "Update", "words.which.all": "All" -} +} \ No newline at end of file diff --git a/locales/common/es.json b/locales/common/es.json index 42115fdee..331fb2ea1 100644 --- a/locales/common/es.json +++ b/locales/common/es.json @@ -26,4 +26,4 @@ "words.result_other": "resultados", "words.space": " ", "words.which.all": "Todo" -} +} \ No newline at end of file diff --git a/locales/common/fi.json b/locales/common/fi.json index 06c594ab2..778f585c1 100644 --- a/locales/common/fi.json +++ b/locales/common/fi.json @@ -25,4 +25,4 @@ "words.result_other": "tulokset", "words.space": " ", "words.which.all": "Kaikki" -} +} \ No newline at end of file diff --git a/locales/common/fr.json b/locales/common/fr.json index 75ecb72e6..0fc4c7118 100644 --- a/locales/common/fr.json +++ b/locales/common/fr.json @@ -26,4 +26,4 @@ "words.result_other": "résultats", "words.space": " ", "words.which.all": "Tous" -} +} \ No newline at end of file diff --git a/locales/common/it.json b/locales/common/it.json index 3e46cb39d..a3eda93a2 100644 --- a/locales/common/it.json +++ b/locales/common/it.json @@ -25,4 +25,4 @@ "words.result_other": "risultati", "words.space": " ", "words.which.all": "Tutti" -} +} \ No newline at end of file diff --git a/locales/common/ja.json b/locales/common/ja.json index d7c8fd3d4..6bff8e07b 100644 --- a/locales/common/ja.json +++ b/locales/common/ja.json @@ -26,4 +26,4 @@ "words.result_other": "結果", "words.space": "", "words.which.all": "すべて" -} +} \ No newline at end of file diff --git a/locales/common/pt.json b/locales/common/pt.json index 4ed5c6847..3ac23481a 100644 --- a/locales/common/pt.json +++ b/locales/common/pt.json @@ -26,4 +26,4 @@ "words.result_other": "resultados", "words.space": " ", "words.which.all": "Todos" -} +} \ No newline at end of file diff --git a/locales/common/ru.json b/locales/common/ru.json index 81f46ea1d..6cf0c5960 100644 --- a/locales/common/ru.json +++ b/locales/common/ru.json @@ -25,4 +25,4 @@ "words.result_other": "результаты", "words.space": " ", "words.which.all": "Все" -} +} \ No newline at end of file diff --git a/locales/common/zh-CN.json b/locales/common/zh-CN.json index 99c7e3304..aede32947 100644 --- a/locales/common/zh-CN.json +++ b/locales/common/zh-CN.json @@ -27,4 +27,4 @@ "words.result_other": "结果", "words.space": "", "words.which.all": "全部" -} +} \ No newline at end of file diff --git a/locales/common/zh-HK.json b/locales/common/zh-HK.json index 36f3ec1d9..836b855e1 100644 --- a/locales/common/zh-HK.json +++ b/locales/common/zh-HK.json @@ -25,4 +25,4 @@ "words.result_other": "結果", "words.space": " ", "words.which.all": "全部" -} +} \ No newline at end of file diff --git a/locales/common/zh-TW.json b/locales/common/zh-TW.json index 490ba0f24..9f98c22d9 100644 --- a/locales/common/zh-TW.json +++ b/locales/common/zh-TW.json @@ -26,4 +26,4 @@ "words.result_other": "多筆結果", "words.space": " ", "words.which.all": "全部" -} +} \ No newline at end of file diff --git a/locales/errors/en.json b/locales/errors/en.json index 1f8f017fc..0285f181f 100644 --- a/locales/errors/en.json +++ b/locales/errors/en.json @@ -26,4 +26,4 @@ "7001": "Invalid setting tab", "7002": "Invalid setting payload", "7003": "Setting payload too large" -} +} \ No newline at end of file diff --git a/locales/errors/fr.json b/locales/errors/fr.json index b984e3a3e..a5322dab2 100644 --- a/locales/errors/fr.json +++ b/locales/errors/fr.json @@ -26,4 +26,4 @@ "7001": "Onglet de paramètre invalide", "7002": "Contenu de paramètre invalide", "7003": "Contenu de paramètre trop volumineux" -} +} \ No newline at end of file diff --git a/locales/errors/ja.json b/locales/errors/ja.json index 64edfeb9d..3887b0923 100644 --- a/locales/errors/ja.json +++ b/locales/errors/ja.json @@ -26,4 +26,4 @@ "7001": "無効な設定タブです", "7002": "無効な設定ペイロードです", "7003": "設定ペイロードが大きすぎます" -} +} \ No newline at end of file diff --git a/locales/errors/ru.json b/locales/errors/ru.json index f0a9251e0..3d8ce2a2b 100644 --- a/locales/errors/ru.json +++ b/locales/errors/ru.json @@ -26,4 +26,4 @@ "7001": "Неверная вкладка настройки", "7002": "Неверное содержимое настройки", "7003": "Содержимое настройки слишком велико" -} +} \ No newline at end of file diff --git a/locales/errors/zh-CN.json b/locales/errors/zh-CN.json index 0b6a3bdb0..6a4cb7e3b 100644 --- a/locales/errors/zh-CN.json +++ b/locales/errors/zh-CN.json @@ -26,4 +26,4 @@ "7001": "无效的设置标签", "7002": "无效的设置负载", "7003": "设置负载过大" -} +} \ No newline at end of file diff --git a/locales/errors/zh-HK.json b/locales/errors/zh-HK.json index e9f9ab3fc..11a2491a9 100644 --- a/locales/errors/zh-HK.json +++ b/locales/errors/zh-HK.json @@ -26,4 +26,4 @@ "7001": "無效的設定標簽", "7002": "無效的設定負載", "7003": "設定負載太大" -} +} \ No newline at end of file diff --git a/locales/errors/zh-TW.json b/locales/errors/zh-TW.json index 05d90e4eb..e37a86d30 100644 --- a/locales/errors/zh-TW.json +++ b/locales/errors/zh-TW.json @@ -26,4 +26,4 @@ "7001": "設定標籤無效", "7002": "設定負載無效", "7003": "設定負載過大" -} +} \ No newline at end of file diff --git a/locales/external/ar-DZ.json b/locales/external/ar-DZ.json index e243855ea..ea1aca904 100644 --- a/locales/external/ar-DZ.json +++ b/locales/external/ar-DZ.json @@ -39,4 +39,4 @@ "openApp": "افتح {{APP_NAME}}", "successMessage": "تم الاتصال بنجاح بحساب {{APP_NAME}}." } -} +} \ No newline at end of file diff --git a/locales/external/ar-MA.json b/locales/external/ar-MA.json index b73818854..113edb3fc 100644 --- a/locales/external/ar-MA.json +++ b/locales/external/ar-MA.json @@ -39,4 +39,4 @@ "openApp": "افتح {{APP_NAME}}", "successMessage": "لقد تم الاتصال بنجاح بحسابك على {{APP_NAME}}." } -} +} \ No newline at end of file diff --git a/locales/external/ar-SA.json b/locales/external/ar-SA.json index 99ccef6bb..f09770a23 100644 --- a/locales/external/ar-SA.json +++ b/locales/external/ar-SA.json @@ -39,4 +39,4 @@ "openApp": "فتح {{APP_NAME}}", "successMessage": "تم الاتصال بحساب {{APP_NAME}} بنجاح." } -} +} \ No newline at end of file diff --git a/locales/external/ar-iq.json b/locales/external/ar-iq.json index e243855ea..ea1aca904 100644 --- a/locales/external/ar-iq.json +++ b/locales/external/ar-iq.json @@ -39,4 +39,4 @@ "openApp": "افتح {{APP_NAME}}", "successMessage": "تم الاتصال بنجاح بحساب {{APP_NAME}}." } -} +} \ No newline at end of file diff --git a/locales/external/ar-kw.json b/locales/external/ar-kw.json index cffc4ea29..0d21bf094 100644 --- a/locales/external/ar-kw.json +++ b/locales/external/ar-kw.json @@ -40,4 +40,4 @@ "openApp": "افتح {{APP_NAME}}", "successMessage": "تم الاتصال بنجاح بحساب {{APP_NAME}}." } -} +} \ No newline at end of file diff --git a/locales/external/ar-tn.json b/locales/external/ar-tn.json index 1d623dcbb..d00ee86cf 100644 --- a/locales/external/ar-tn.json +++ b/locales/external/ar-tn.json @@ -40,4 +40,4 @@ "openApp": "افتح {{APP_NAME}}", "successMessage": "تم الاتصال بحساب {{APP_NAME}} بنجاح." } -} +} \ No newline at end of file diff --git a/locales/external/en.json b/locales/external/en.json index 0d0253701..3bd0c0555 100644 --- a/locales/external/en.json +++ b/locales/external/en.json @@ -32,4 +32,4 @@ "redirect.instruction": "Now is the time to open {{APP_NAME}} and safely close this page.", "redirect.openApp": "Open {{APP_NAME}}", "redirect.successMessage": "You have successfully connected to {{APP_NAME}} Account." -} +} \ No newline at end of file diff --git a/locales/external/es.json b/locales/external/es.json index 102fd9ecc..8e9889de6 100644 --- a/locales/external/es.json +++ b/locales/external/es.json @@ -39,4 +39,4 @@ "openApp": "Abrir {{APP_NAME}}", "successMessage": "Te has conectado exitosamente a la cuenta de {{APP_NAME}}." } -} +} \ No newline at end of file diff --git a/locales/external/fi.json b/locales/external/fi.json index e596c13c7..79327e78c 100644 --- a/locales/external/fi.json +++ b/locales/external/fi.json @@ -39,4 +39,4 @@ "openApp": "Avaa {{APP_NAME}}", "successMessage": "Olet onnistuneesti yhdistänyt {{APP_NAME}}-tilisi." } -} +} \ No newline at end of file diff --git a/locales/external/fr.json b/locales/external/fr.json index b8ea48ffa..6f7d70d64 100644 --- a/locales/external/fr.json +++ b/locales/external/fr.json @@ -39,4 +39,4 @@ "openApp": "Ouvrir {{APP_NAME}}", "successMessage": "Vous vous êtes connecté avec succès à votre compte {{APP_NAME}}." } -} +} \ No newline at end of file diff --git a/locales/external/it.json b/locales/external/it.json index b57e20a50..54912edce 100644 --- a/locales/external/it.json +++ b/locales/external/it.json @@ -39,4 +39,4 @@ "openApp": "Apri {{APP_NAME}}", "successMessage": "Ti sei connesso con successo all'account {{APP_NAME}}." } -} +} \ No newline at end of file diff --git a/locales/external/ja.json b/locales/external/ja.json index c18a56a64..49701eea4 100644 --- a/locales/external/ja.json +++ b/locales/external/ja.json @@ -39,4 +39,4 @@ "openApp": "{{APP_NAME}}を開く", "successMessage": "{{APP_NAME}}アカウントに正常に接続されました。" } -} +} \ No newline at end of file diff --git a/locales/external/pt.json b/locales/external/pt.json index 4613d598a..279d3d770 100644 --- a/locales/external/pt.json +++ b/locales/external/pt.json @@ -39,4 +39,4 @@ "openApp": "Abrir {{APP_NAME}}", "successMessage": "Conectou-se com sucesso à conta {{APP_NAME}}." } -} +} \ No newline at end of file diff --git a/locales/external/ru.json b/locales/external/ru.json index 5bdf546a0..f57e4b034 100644 --- a/locales/external/ru.json +++ b/locales/external/ru.json @@ -39,4 +39,4 @@ "openApp": "Открыть {{APP_NAME}}", "successMessage": "Вы успешно подключились к аккаунту {{APP_NAME}}." } -} +} \ No newline at end of file diff --git a/locales/external/zh-CN.json b/locales/external/zh-CN.json index 913e8c2f3..948006303 100644 --- a/locales/external/zh-CN.json +++ b/locales/external/zh-CN.json @@ -39,4 +39,4 @@ "openApp": "打开 {{APP_NAME}}", "successMessage": "已成功连接到 {{APP_NAME}} 账户。" } -} +} \ No newline at end of file diff --git a/locales/external/zh-HK.json b/locales/external/zh-HK.json index 8345a15a7..169852d72 100644 --- a/locales/external/zh-HK.json +++ b/locales/external/zh-HK.json @@ -40,4 +40,4 @@ "openApp": "打開 {{APP_NAME}}", "successMessage": "你已成功連接到 {{APP_NAME}} 帳戶。" } -} +} \ No newline at end of file diff --git a/locales/external/zh-TW.json b/locales/external/zh-TW.json index 4f94e7c11..50f542efc 100644 --- a/locales/external/zh-TW.json +++ b/locales/external/zh-TW.json @@ -40,4 +40,4 @@ "openApp": "開啟 {{APP_NAME}}", "successMessage": "您已成功連接至 {{APP_NAME}} 帳戶。" } -} +} \ No newline at end of file diff --git a/locales/lang/ar-DZ.json b/locales/lang/ar-DZ.json index e508a8098..db2a437a2 100644 --- a/locales/lang/ar-DZ.json +++ b/locales/lang/ar-DZ.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "العربية (الجزائر)" -} +} \ No newline at end of file diff --git a/locales/lang/ar-IQ.json b/locales/lang/ar-IQ.json index 29128b5b9..f74322a22 100644 --- a/locales/lang/ar-IQ.json +++ b/locales/lang/ar-IQ.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "العربية (العراق)" -} +} \ No newline at end of file diff --git a/locales/lang/ar-KW.json b/locales/lang/ar-KW.json index 9f61c3dd3..095668640 100644 --- a/locales/lang/ar-KW.json +++ b/locales/lang/ar-KW.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "العربية (الكويت)" -} +} \ No newline at end of file diff --git a/locales/lang/ar-MA.json b/locales/lang/ar-MA.json index 56bf9328e..3dc6a0a5e 100644 --- a/locales/lang/ar-MA.json +++ b/locales/lang/ar-MA.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "العربية (المغرب)" -} +} \ No newline at end of file diff --git a/locales/lang/ar-SA.json b/locales/lang/ar-SA.json index be22948df..dd77984c2 100644 --- a/locales/lang/ar-SA.json +++ b/locales/lang/ar-SA.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "العربية (السعودية)" -} +} \ No newline at end of file diff --git a/locales/lang/ar-TN.json b/locales/lang/ar-TN.json index 55e522c42..0ed98a87c 100644 --- a/locales/lang/ar-TN.json +++ b/locales/lang/ar-TN.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "العربية (تونس)" -} +} \ No newline at end of file diff --git a/locales/lang/en.json b/locales/lang/en.json index 4c98959c5..54bfdc6fa 100644 --- a/locales/lang/en.json +++ b/locales/lang/en.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "English" -} +} \ No newline at end of file diff --git a/locales/lang/es.json b/locales/lang/es.json index 6770e31e2..c63f73068 100644 --- a/locales/lang/es.json +++ b/locales/lang/es.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "Español" -} +} \ No newline at end of file diff --git a/locales/lang/fi.json b/locales/lang/fi.json index 5c4ca6c84..6bace9d2a 100644 --- a/locales/lang/fi.json +++ b/locales/lang/fi.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "Suomi" -} +} \ No newline at end of file diff --git a/locales/lang/fr.json b/locales/lang/fr.json index b6ca82157..39afcd606 100644 --- a/locales/lang/fr.json +++ b/locales/lang/fr.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "Français" -} +} \ No newline at end of file diff --git a/locales/lang/it.json b/locales/lang/it.json index dbb40169f..1edea01ad 100644 --- a/locales/lang/it.json +++ b/locales/lang/it.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "Italiano" -} +} \ No newline at end of file diff --git a/locales/lang/ja.json b/locales/lang/ja.json index ba6647d52..d14e14328 100644 --- a/locales/lang/ja.json +++ b/locales/lang/ja.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "日本語" -} +} \ No newline at end of file diff --git a/locales/lang/pt.json b/locales/lang/pt.json index de2304bc3..19272a5a3 100644 --- a/locales/lang/pt.json +++ b/locales/lang/pt.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "Português" -} +} \ No newline at end of file diff --git a/locales/lang/ru.json b/locales/lang/ru.json index d38033f88..1311d25b7 100644 --- a/locales/lang/ru.json +++ b/locales/lang/ru.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "Русский" -} +} \ No newline at end of file diff --git a/locales/lang/zh-CN.json b/locales/lang/zh-CN.json index 92e726a3e..69c48e4f3 100644 --- a/locales/lang/zh-CN.json +++ b/locales/lang/zh-CN.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "简体中文" -} +} \ No newline at end of file diff --git a/locales/lang/zh-HK.json b/locales/lang/zh-HK.json index ff7b5df21..7dc74c1fc 100644 --- a/locales/lang/zh-HK.json +++ b/locales/lang/zh-HK.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "繁體中文(香港)" -} +} \ No newline at end of file diff --git a/locales/lang/zh-TW.json b/locales/lang/zh-TW.json index de1f73226..0bc2ccb0f 100644 --- a/locales/lang/zh-TW.json +++ b/locales/lang/zh-TW.json @@ -17,4 +17,4 @@ "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "繁體中文(台灣)" -} +} \ No newline at end of file diff --git a/locales/native/ar-iq.json b/locales/native/ar-iq.json index 6ee121dc1..2470db9ae 100644 --- a/locales/native/ar-iq.json +++ b/locales/native/ar-iq.json @@ -50,4 +50,4 @@ "menu.zoom": "تكبير", "menu.zoomIn": "تكبير", "menu.zoomOut": "تصغير" -} +} \ No newline at end of file diff --git a/locales/native/ar-kw.json b/locales/native/ar-kw.json index 6ee121dc1..2470db9ae 100644 --- a/locales/native/ar-kw.json +++ b/locales/native/ar-kw.json @@ -50,4 +50,4 @@ "menu.zoom": "تكبير", "menu.zoomIn": "تكبير", "menu.zoomOut": "تصغير" -} +} \ No newline at end of file diff --git a/locales/native/ar-tn.json b/locales/native/ar-tn.json index 6ee121dc1..2470db9ae 100644 --- a/locales/native/ar-tn.json +++ b/locales/native/ar-tn.json @@ -50,4 +50,4 @@ "menu.zoom": "تكبير", "menu.zoomIn": "تكبير", "menu.zoomOut": "تصغير" -} +} \ No newline at end of file diff --git a/locales/native/en.json b/locales/native/en.json index 683ae2ba4..3d09f3ec7 100644 --- a/locales/native/en.json +++ b/locales/native/en.json @@ -65,4 +65,4 @@ "menu.zoom": "Zoom", "menu.zoomIn": "Zoom In", "menu.zoomOut": "Zoom Out" -} +} \ No newline at end of file diff --git a/locales/native/it.json b/locales/native/it.json index 9c69796f0..ffc851948 100644 --- a/locales/native/it.json +++ b/locales/native/it.json @@ -50,4 +50,4 @@ "menu.zoom": "Zoom", "menu.zoomIn": "Ingrandisci", "menu.zoomOut": "Riduci" -} +} \ No newline at end of file diff --git a/locales/native/ja.json b/locales/native/ja.json index a5af12ddc..043e8d7db 100644 --- a/locales/native/ja.json +++ b/locales/native/ja.json @@ -49,4 +49,4 @@ "menu.zoom": "ズーム", "menu.zoomIn": "拡大", "menu.zoomOut": "縮小" -} +} \ No newline at end of file diff --git a/locales/native/zh-CN.json b/locales/native/zh-CN.json index 3c3bc1fc6..4d2a04fc1 100644 --- a/locales/native/zh-CN.json +++ b/locales/native/zh-CN.json @@ -61,4 +61,4 @@ "menu.zoom": "缩放", "menu.zoomIn": "放大", "menu.zoomOut": "缩小" -} +} \ No newline at end of file diff --git a/locales/native/zh-HK.json b/locales/native/zh-HK.json index 6c4d18c7f..03b1451a5 100644 --- a/locales/native/zh-HK.json +++ b/locales/native/zh-HK.json @@ -50,4 +50,4 @@ "menu.zoom": "縮放", "menu.zoomIn": "放大", "menu.zoomOut": "縮小" -} +} \ No newline at end of file diff --git a/locales/native/zh-TW.json b/locales/native/zh-TW.json index 23c737709..e2297435d 100644 --- a/locales/native/zh-TW.json +++ b/locales/native/zh-TW.json @@ -50,4 +50,4 @@ "menu.zoom": "縮放", "menu.zoomIn": "放大", "menu.zoomOut": "縮小" -} +} \ No newline at end of file diff --git a/locales/settings/ar-DZ.json b/locales/settings/ar-DZ.json index f3f216dd8..f7b902927 100644 --- a/locales/settings/ar-DZ.json +++ b/locales/settings/ar-DZ.json @@ -192,4 +192,4 @@ "wallet.withdraw.modalTitle": "سحب باور", "wallet.withdraw.submitButton": "إرسال", "wallet.withdraw.success": "تم السحب بنجاح!" -} +} \ No newline at end of file diff --git a/locales/settings/ar-IQ.json b/locales/settings/ar-IQ.json index 62a1ce14e..6334c3be3 100644 --- a/locales/settings/ar-IQ.json +++ b/locales/settings/ar-IQ.json @@ -200,4 +200,4 @@ "wallet.withdraw.modalTitle": "سحب باور", "wallet.withdraw.submitButton": "إرسال", "wallet.withdraw.success": "تم السحب بنجاح!" -} +} \ No newline at end of file diff --git a/locales/settings/ar-KW.json b/locales/settings/ar-KW.json index e94a15b8b..924e16493 100644 --- a/locales/settings/ar-KW.json +++ b/locales/settings/ar-KW.json @@ -200,4 +200,4 @@ "wallet.withdraw.modalTitle": "سحب Power", "wallet.withdraw.submitButton": "إرسال", "wallet.withdraw.success": "تم السحب بنجاح!" -} +} \ No newline at end of file diff --git a/locales/settings/ar-MA.json b/locales/settings/ar-MA.json index 3732ecd8d..1788ca008 100644 --- a/locales/settings/ar-MA.json +++ b/locales/settings/ar-MA.json @@ -192,4 +192,4 @@ "wallet.withdraw.modalTitle": "سحب باور", "wallet.withdraw.submitButton": "إرسال", "wallet.withdraw.success": "السحب تمت بنجاح!" -} +} \ No newline at end of file diff --git a/locales/settings/ar-SA.json b/locales/settings/ar-SA.json index 9462b760a..dab44db64 100644 --- a/locales/settings/ar-SA.json +++ b/locales/settings/ar-SA.json @@ -192,4 +192,4 @@ "wallet.withdraw.modalTitle": "سحب الطاقة", "wallet.withdraw.submitButton": "إرسال", "wallet.withdraw.success": "تم السحب بنجاح!" -} +} \ No newline at end of file diff --git a/locales/settings/ar-TN.json b/locales/settings/ar-TN.json index e10cb0115..74ab60b73 100644 --- a/locales/settings/ar-TN.json +++ b/locales/settings/ar-TN.json @@ -200,4 +200,4 @@ "wallet.withdraw.modalTitle": "سحب الطاقة", "wallet.withdraw.submitButton": "إرسال", "wallet.withdraw.success": "تم السحب بنجاح!" -} +} \ No newline at end of file diff --git a/locales/settings/en.json b/locales/settings/en.json index 5f18fbf98..544658b57 100644 --- a/locales/settings/en.json +++ b/locales/settings/en.json @@ -234,4 +234,4 @@ "wallet.withdraw.modalTitle": "Withdraw Power", "wallet.withdraw.submitButton": "Submit", "wallet.withdraw.success": "Withdrawal successful!" -} +} \ No newline at end of file diff --git a/locales/settings/es.json b/locales/settings/es.json index 657d7bba6..593b2430d 100644 --- a/locales/settings/es.json +++ b/locales/settings/es.json @@ -192,4 +192,4 @@ "wallet.withdraw.modalTitle": "Retirar Power", "wallet.withdraw.submitButton": "Enviar", "wallet.withdraw.success": "¡Retiro exitoso!" -} +} \ No newline at end of file diff --git a/locales/settings/fi.json b/locales/settings/fi.json index 9c65e2f16..083ba18d8 100644 --- a/locales/settings/fi.json +++ b/locales/settings/fi.json @@ -192,4 +192,4 @@ "wallet.withdraw.modalTitle": "Nosta Poweria", "wallet.withdraw.submitButton": "Lähetä", "wallet.withdraw.success": "Nosto onnistui!" -} +} \ No newline at end of file diff --git a/locales/settings/fr.json b/locales/settings/fr.json index dba17387e..5b42acfb6 100644 --- a/locales/settings/fr.json +++ b/locales/settings/fr.json @@ -192,4 +192,4 @@ "wallet.withdraw.modalTitle": "Retirer Power", "wallet.withdraw.submitButton": "Soumettre", "wallet.withdraw.success": "Retrait réussi !" -} +} \ No newline at end of file diff --git a/locales/settings/it.json b/locales/settings/it.json index e91f5018b..9e830cbfe 100644 --- a/locales/settings/it.json +++ b/locales/settings/it.json @@ -192,4 +192,4 @@ "wallet.withdraw.modalTitle": "Preleva Power", "wallet.withdraw.submitButton": "Invia", "wallet.withdraw.success": "Prelievo riuscito!" -} +} \ No newline at end of file diff --git a/locales/settings/ja.json b/locales/settings/ja.json index 7ce8dcf9c..080dc4ce8 100644 --- a/locales/settings/ja.json +++ b/locales/settings/ja.json @@ -192,4 +192,4 @@ "wallet.withdraw.modalTitle": "Powerを引き出す", "wallet.withdraw.submitButton": "送信", "wallet.withdraw.success": "引き出しが成功しました!" -} +} \ No newline at end of file diff --git a/locales/settings/pt.json b/locales/settings/pt.json index 8f3514d3b..10045cf96 100644 --- a/locales/settings/pt.json +++ b/locales/settings/pt.json @@ -192,4 +192,4 @@ "wallet.withdraw.modalTitle": "Levantar Power", "wallet.withdraw.submitButton": "Submeter", "wallet.withdraw.success": "Levantamento bem-sucedido!" -} +} \ No newline at end of file diff --git a/locales/settings/ru.json b/locales/settings/ru.json index 2f6c66cfb..8582534ca 100644 --- a/locales/settings/ru.json +++ b/locales/settings/ru.json @@ -192,4 +192,4 @@ "wallet.withdraw.modalTitle": "Вывести Power", "wallet.withdraw.submitButton": "Отправить", "wallet.withdraw.success": "Вывод успешен!" -} +} \ No newline at end of file diff --git a/locales/settings/zh-CN.json b/locales/settings/zh-CN.json index 1d83e906f..f6bd3adba 100644 --- a/locales/settings/zh-CN.json +++ b/locales/settings/zh-CN.json @@ -206,4 +206,4 @@ "wallet.withdraw.modalTitle": "提现 Power", "wallet.withdraw.submitButton": "提交", "wallet.withdraw.success": "提现成功!" -} +} \ No newline at end of file diff --git a/locales/settings/zh-HK.json b/locales/settings/zh-HK.json index 4fa51af40..1f2535fce 100644 --- a/locales/settings/zh-HK.json +++ b/locales/settings/zh-HK.json @@ -201,4 +201,4 @@ "wallet.withdraw.modalTitle": "提取 Power", "wallet.withdraw.submitButton": "提交", "wallet.withdraw.success": "提取成功!" -} +} \ No newline at end of file diff --git a/locales/settings/zh-TW.json b/locales/settings/zh-TW.json index ae26fb51c..d21335b0b 100644 --- a/locales/settings/zh-TW.json +++ b/locales/settings/zh-TW.json @@ -201,4 +201,4 @@ "wallet.withdraw.modalTitle": "提取 Power", "wallet.withdraw.submitButton": "送出", "wallet.withdraw.success": "提取成功!" -} +} \ No newline at end of file diff --git a/locales/shortcuts/ar-DZ.json b/locales/shortcuts/ar-DZ.json index 71b6113e5..6ceebb419 100644 --- a/locales/shortcuts/ar-DZ.json +++ b/locales/shortcuts/ar-DZ.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "إظهار/إخفاء الاختصارات", "keys.layout.toggleSidebar": "إظهار/إخفاء الشريط الجانبي للموجز", "sidebar_title": "الاختصارات" -} +} \ No newline at end of file diff --git a/locales/shortcuts/ar-IQ.json b/locales/shortcuts/ar-IQ.json index 8bbc70ee5..63ebba9b2 100644 --- a/locales/shortcuts/ar-IQ.json +++ b/locales/shortcuts/ar-IQ.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "إظهار/إخفاء الاختصارات", "keys.layout.toggleSidebar": "إظهار/إخفاء الشريط الجانبي للتغذية", "sidebar_title": "الاختصارات" -} +} \ No newline at end of file diff --git a/locales/shortcuts/ar-KW.json b/locales/shortcuts/ar-KW.json index f239b9ed6..84f18b652 100644 --- a/locales/shortcuts/ar-KW.json +++ b/locales/shortcuts/ar-KW.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "إظهار/إخفاء الاختصارات", "keys.layout.toggleSidebar": "إظهار/إخفاء الشريط الجانبي للتغذية", "sidebar_title": "الاختصارات" -} +} \ No newline at end of file diff --git a/locales/shortcuts/ar-MA.json b/locales/shortcuts/ar-MA.json index fa2d4e803..1e2e5daf8 100644 --- a/locales/shortcuts/ar-MA.json +++ b/locales/shortcuts/ar-MA.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "إظهار/إخفاء الاختصارات", "keys.layout.toggleSidebar": "إظهار/إخفاء الشريط الجانبي للتغذية", "sidebar_title": "الاختصارات" -} +} \ No newline at end of file diff --git a/locales/shortcuts/ar-SA.json b/locales/shortcuts/ar-SA.json index 602f5affa..9d2090244 100644 --- a/locales/shortcuts/ar-SA.json +++ b/locales/shortcuts/ar-SA.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "إظهار/إخفاء الاختصارات", "keys.layout.toggleSidebar": "إظهار/إخفاء الشريط الجانبي للتغذية", "sidebar_title": "الاختصارات" -} +} \ No newline at end of file diff --git a/locales/shortcuts/ar-TN.json b/locales/shortcuts/ar-TN.json index e10cb0115..74ab60b73 100644 --- a/locales/shortcuts/ar-TN.json +++ b/locales/shortcuts/ar-TN.json @@ -200,4 +200,4 @@ "wallet.withdraw.modalTitle": "سحب الطاقة", "wallet.withdraw.submitButton": "إرسال", "wallet.withdraw.success": "تم السحب بنجاح!" -} +} \ No newline at end of file diff --git a/locales/shortcuts/en.json b/locales/shortcuts/en.json index 0a03f08e0..9b8b3ab93 100644 --- a/locales/shortcuts/en.json +++ b/locales/shortcuts/en.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "Show/Hide Shortcuts", "keys.layout.toggleSidebar": "Show/Hide Feed Sidebar", "sidebar_title": "Shortcuts" -} +} \ No newline at end of file diff --git a/locales/shortcuts/es.json b/locales/shortcuts/es.json index 1f08265ca..80db9995d 100644 --- a/locales/shortcuts/es.json +++ b/locales/shortcuts/es.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "Mostrar/Ocultar atajos", "keys.layout.toggleSidebar": "Mostrar/Ocultar barra lateral de feeds", "sidebar_title": "Atajos" -} +} \ No newline at end of file diff --git a/locales/shortcuts/fi.json b/locales/shortcuts/fi.json index 4dc488e61..4ba5e407d 100644 --- a/locales/shortcuts/fi.json +++ b/locales/shortcuts/fi.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "Näytä/Piilota pikanäppäimet", "keys.layout.toggleSidebar": "Näytä/Piilota syötteen sivupalkki", "sidebar_title": "Pikanäppäimet" -} +} \ No newline at end of file diff --git a/locales/shortcuts/fr.json b/locales/shortcuts/fr.json index aa30690d9..cc80bcf8f 100644 --- a/locales/shortcuts/fr.json +++ b/locales/shortcuts/fr.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "Afficher/Masquer les raccourcis", "keys.layout.toggleSidebar": "Afficher/Masquer la barre latérale des flux", "sidebar_title": "Raccourcis" -} +} \ No newline at end of file diff --git a/locales/shortcuts/it.json b/locales/shortcuts/it.json index e3b5f475d..6a790d0bf 100644 --- a/locales/shortcuts/it.json +++ b/locales/shortcuts/it.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "Mostra/Nascondi scorciatoie", "keys.layout.toggleSidebar": "Mostra/Nascondi barra laterale", "sidebar_title": "Scorciatoie" -} +} \ No newline at end of file diff --git a/locales/shortcuts/ja.json b/locales/shortcuts/ja.json index da18f7139..966a1d51c 100644 --- a/locales/shortcuts/ja.json +++ b/locales/shortcuts/ja.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "ショートカットを表示/非表示", "keys.layout.toggleSidebar": "フィードサイドバーの表示/非表示", "sidebar_title": "ショートカット" -} +} \ No newline at end of file diff --git a/locales/shortcuts/pt.json b/locales/shortcuts/pt.json index 85d13c60a..8c64e2d57 100644 --- a/locales/shortcuts/pt.json +++ b/locales/shortcuts/pt.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "Mostrar/Ocultar Atalhos", "keys.layout.toggleSidebar": "Mostrar/Ocultar Barra Lateral de Feed", "sidebar_title": "Atalhos" -} +} \ No newline at end of file diff --git a/locales/shortcuts/ru.json b/locales/shortcuts/ru.json index 1b4a57056..c892a7dc9 100644 --- a/locales/shortcuts/ru.json +++ b/locales/shortcuts/ru.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "Показать/скрыть горячие клавиши", "keys.layout.toggleSidebar": "Показать/скрыть боковую панель каналов", "sidebar_title": "Горячие клавиши" -} +} \ No newline at end of file diff --git a/locales/shortcuts/zh-CN.json b/locales/shortcuts/zh-CN.json index ef02abeea..fe2d4545b 100644 --- a/locales/shortcuts/zh-CN.json +++ b/locales/shortcuts/zh-CN.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "显示/隐藏快捷键", "keys.layout.toggleSidebar": "显示/隐藏侧边栏", "sidebar_title": "快捷键" -} +} \ No newline at end of file diff --git a/locales/shortcuts/zh-HK.json b/locales/shortcuts/zh-HK.json index e6b627541..45099f4ac 100644 --- a/locales/shortcuts/zh-HK.json +++ b/locales/shortcuts/zh-HK.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "顯示/隱藏快捷鍵", "keys.layout.toggleSidebar": "顯示/隱藏訂閱側邊欄", "sidebar_title": "快捷鍵" -} +} \ No newline at end of file diff --git a/locales/shortcuts/zh-TW.json b/locales/shortcuts/zh-TW.json index 83e47c814..f5b943df8 100644 --- a/locales/shortcuts/zh-TW.json +++ b/locales/shortcuts/zh-TW.json @@ -21,4 +21,4 @@ "keys.layout.showShortcuts": "顯示/隱藏快捷鍵", "keys.layout.toggleSidebar": "顯示/隱藏摘要側邊欄", "sidebar_title": "快捷鍵" -} +} \ No newline at end of file diff --git a/plugins/eslint-recursive-sort.js b/plugins/eslint-recursive-sort.js new file mode 100644 index 000000000..eba7d4c63 --- /dev/null +++ b/plugins/eslint-recursive-sort.js @@ -0,0 +1,60 @@ +const sortObjectKeys = (obj) => { + if (typeof obj !== "object" || obj === null) { + return obj + } + + if (Array.isArray(obj)) { + return obj.map((element) => sortObjectKeys(element)) + } + + return Object.keys(obj) + .sort() + .reduce((acc, key) => { + acc[key] = sortObjectKeys(obj[key]) + return acc + }, {}) +} +/** + * @type {import("eslint").ESLint.Plugin} + */ +export default { + rules: { + "recursive-sort": { + meta: { + type: "layout", + fixable: "code", + }, + create(context) { + return { + Program(node) { + if (context.getFilename().endsWith(".json")) { + const sourceCode = context.getSourceCode() + const text = sourceCode.getText() + + try { + const json = JSON.parse(text) + const sortedJson = sortObjectKeys(json) + const sortedText = JSON.stringify(sortedJson, null, 2) + + if (text !== sortedText) { + context.report({ + node, + message: "JSON keys are not sorted recursively", + fix(fixer) { + return fixer.replaceText(node, sortedText) + }, + }) + } + } catch (error) { + context.report({ + node, + message: `Invalid JSON: ${error.message}`, + }) + } + } + }, + } + }, + }, + }, +}