fix: use english lang in plugin item consistent

This commit is contained in:
nyagami
2024-01-29 17:56:23 +07:00
parent b26d1129de
commit 4c7bee5855
+1 -2
View File
@@ -38,7 +38,6 @@ const pluginSet = new Set();
for (let language in languages) {
// language with English name
const languageNative = languages[language as keyof typeof languages];
const langPath = path.join(root, "plugins", language.toLowerCase());
if (!fs.existsSync(langPath)) continue;
const plugins = fs.readdirSync(langPath);
@@ -61,7 +60,7 @@ for (let language in languages) {
id,
name,
site,
lang: languageNative,
lang: language,
version,
url: `${PLUGIN_LINK}/${language.toLowerCase()}/${plugin}`,
iconUrl: `${ICON_LINK}/${icon}`,