fix: use english lang in plugin item consistent
This commit is contained in:
@@ -38,7 +38,6 @@ const pluginSet = new Set();
|
|||||||
|
|
||||||
for (let language in languages) {
|
for (let language in languages) {
|
||||||
// language with English name
|
// language with English name
|
||||||
const languageNative = languages[language as keyof typeof languages];
|
|
||||||
const langPath = path.join(root, "plugins", language.toLowerCase());
|
const langPath = path.join(root, "plugins", language.toLowerCase());
|
||||||
if (!fs.existsSync(langPath)) continue;
|
if (!fs.existsSync(langPath)) continue;
|
||||||
const plugins = fs.readdirSync(langPath);
|
const plugins = fs.readdirSync(langPath);
|
||||||
@@ -61,7 +60,7 @@ for (let language in languages) {
|
|||||||
id,
|
id,
|
||||||
name,
|
name,
|
||||||
site,
|
site,
|
||||||
lang: languageNative,
|
lang: language,
|
||||||
version,
|
version,
|
||||||
url: `${PLUGIN_LINK}/${language.toLowerCase()}/${plugin}`,
|
url: `${PLUGIN_LINK}/${language.toLowerCase()}/${plugin}`,
|
||||||
iconUrl: `${ICON_LINK}/${icon}`,
|
iconUrl: `${ICON_LINK}/${icon}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user