mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-14 05:03:43 +08:00
Plugins Russian localization
This commit is contained in:
@@ -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[]>([]);
|
||||
|
||||
Reference in New Issue
Block a user