Plugins Russian localization

This commit is contained in:
JonMagon
2024-01-16 13:40:20 +03:00
committed by Hk-Gosuto
parent dce7633bf9
commit a54a4bc31d
3 changed files with 106 additions and 1 deletions

View File

@@ -162,10 +162,12 @@ export function PluginPage() {
const pluginStore = usePluginStore();
const chatStore = useChatStore();
const currentLang = getLang();
const supportedLangs = ['cn', 'ru'];
const allPlugins = pluginStore
.getAll()
.filter(
(m) => !getLang() || m.lang === (getLang() == "cn" ? getLang() : "en"),
(m) => supportedLangs.includes(currentLang) ? m.lang === currentLang : m.lang === 'en'
);
const [searchPlugins, setSearchPlugins] = useState<Plugin[]>([]);