Update Translator.plugin.js

This commit is contained in:
Mirco Wittrien 2023-04-14 18:05:29 +02:00
parent 7b9b5b0727
commit d567554934
1 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ module.exports = (_ => {
name: "DeepL",
auto: true,
funcName: "deepLTranslate",
languages: ["bg","cs","da","de","en","el","es","et","fi","fr","hu","it","ja","lt","lv","nl","pl","pt","ro","ru","sk","sl","sv","zh"],
languages: ["bg","cs","da","de","en","el","es","et","fi","fr","hu","id","it","ja","ko","lt","lv","nl","no","pl","pt","ro","ru","sk","sl","sv","tr","uk","zh"],
premium: true,
key: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx:fx"
},
@ -684,7 +684,7 @@ module.exports = (_ => {
processChannelTextAreaButtons (e) {
if (!this.settings.general.addTranslateButton || e.instance.props.disabled || e.instance.props.type != BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL && e.instance.props.type != BDFDB.DiscordConstants.ChannelTextAreaTypes.NORMAL_WITH_ACTIVITY && e.instance.props.type != BDFDB.DiscordConstants.ChannelTextAreaTypes.SIDEBAR) return;
e.returnvalue.props.children.unshift(BDFDB.ReactUtils.createElement(TranslateButtonComponent, {
if (e.returnvalue) e.returnvalue.props.children.unshift(BDFDB.ReactUtils.createElement(TranslateButtonComponent, {
guildId: e.instance.props.channel.guild_id ? e.instance.props.channel.guild_id : "@me",
channelId: e.instance.props.channel.id
}));