BetterDiscordAddons/Plugins/ServerDetails/ServerDetails.plugin.js

523 lines
20 KiB
JavaScript
Raw Normal View History

2020-10-20 23:25:34 +02:00
/**
* @name ServerDetails
2021-03-05 13:26:41 +01:00
* @author DevilBro
2020-10-20 23:25:34 +02:00
* @authorId 278543574059057154
2022-02-06 18:09:47 +01:00
* @version 1.1.2
2021-03-05 13:26:41 +01:00
* @description Shows Server Details in the Server List Tooltip
2020-10-20 23:25:34 +02:00
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
* @patreon https://www.patreon.com/MircoWittrien
2021-03-09 15:10:55 +01:00
* @website https://mwittrien.github.io/
* @source https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ServerDetails/
2021-03-10 09:17:37 +01:00
* @updateUrl https://mwittrien.github.io/BetterDiscordAddons/Plugins/ServerDetails/ServerDetails.plugin.js
2020-10-20 23:25:34 +02:00
*/
2020-09-04 14:31:12 +02:00
2020-09-19 20:49:33 +02:00
module.exports = (_ => {
2020-10-09 21:09:35 +02:00
const config = {
2020-09-19 20:49:33 +02:00
"info": {
"name": "ServerDetails",
"author": "DevilBro",
2022-02-06 18:09:47 +01:00
"version": "1.1.2",
2021-03-05 11:21:21 +01:00
"description": "Shows Server Details in the Server List Tooltip"
2020-09-04 16:12:02 +02:00
}
2020-09-19 20:49:33 +02:00
};
2020-11-13 19:47:44 +01:00
2022-02-05 21:14:17 +01:00
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
2021-01-06 12:38:36 +01:00
getName () {return config.info.name;}
getAuthor () {return config.info.author;}
getVersion () {return config.info.version;}
2021-02-01 17:13:13 +01:00
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
downloadLibrary () {
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
2021-03-05 13:14:18 +01:00
if (!e && b && r.statusCode == 200) require("fs").writeFile(require("path").join(BdApi.Plugins.folder, "0BDFDB.plugin.js"), b, _ => BdApi.showToast("Finished downloading BDFDB Library", {type: "success"}));
2021-03-06 14:59:48 +01:00
else BdApi.alert("Error", "Could not download BDFDB Library Plugin. Try again later or download it manually from GitHub: https://mwittrien.github.io/downloader/?library");
2021-02-01 17:13:13 +01:00
});
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
load () {
2020-11-19 16:51:14 +01:00
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
2020-09-19 20:49:33 +02:00
if (!window.BDFDB_Global.downloadModal) {
window.BDFDB_Global.downloadModal = true;
2021-01-14 16:14:44 +01:00
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
2020-09-19 20:49:33 +02:00
confirmText: "Download Now",
cancelText: "Cancel",
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
2020-09-20 08:15:13 +02:00
onConfirm: _ => {
delete window.BDFDB_Global.downloadModal;
2021-02-01 17:13:13 +01:00
this.downloadLibrary();
2020-09-20 08:15:13 +02:00
}
2020-09-19 20:49:33 +02:00
});
2020-09-04 16:12:02 +02:00
}
2020-09-19 20:49:33 +02:00
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
2020-10-09 21:09:35 +02:00
}
2021-01-06 12:38:36 +01:00
start () {this.load();}
stop () {}
getSettingsPanel () {
2020-11-28 23:12:09 +01:00
let template = document.createElement("template");
2021-01-14 16:14:44 +01:00
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
2021-02-01 17:13:13 +01:00
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
2020-11-28 23:12:09 +01:00
return template.content.firstElementChild;
}
2020-10-09 21:09:35 +02:00
} : (([Plugin, BDFDB]) => {
2021-03-15 12:33:16 +01:00
var _this;
2020-09-19 20:49:33 +02:00
const GuildDetailsComponent = class GuildDetails extends BdApi.React.Component {
constructor(props) {
super(props);
this.state = {fetchedOwner: false, delayed: false, repositioned: false};
}
2021-01-20 16:00:29 +01:00
componentDidUpdate() {
2021-03-15 12:33:16 +01:00
if (_this.settings.amounts.tooltipDelay && this.state.delayed && !this.state.repositioned) {
2020-09-19 20:49:33 +02:00
this.state.repositioned = true;
2021-03-15 12:33:16 +01:00
if (this.props.tooltipContainer && this.props.tooltipContainer.tooltip) this.props.tooltipContainer.tooltip.update();
2020-09-19 20:49:33 +02:00
}
2020-09-04 16:12:02 +02:00
}
2021-01-20 16:00:29 +01:00
render() {
2021-09-11 19:35:49 +02:00
if (_this.settings.general.onlyShowOnShift && !this.props.shiftKey) return null;
2021-03-15 12:33:16 +01:00
if (_this.settings.amounts.tooltipDelay && !this.state.delayed) {
2020-09-19 20:49:33 +02:00
BDFDB.TimeUtils.timeout(_ => {
this.state.delayed = true;
2021-03-15 12:33:16 +01:00
if (this.props.tooltipContainer && this.props.tooltipContainer.tooltip) BDFDB.DOMUtils.addClass(this.props.tooltipContainer.tooltip.firstElementChild, BDFDB.disCN._serverdetailstooltip);
2020-09-19 20:49:33 +02:00
BDFDB.ReactUtils.forceUpdate(this);
2021-03-15 12:33:16 +01:00
}, _this.settings.amounts.tooltipDelay * 1000);
2020-09-19 20:49:33 +02:00
return null;
}
let owner = BDFDB.LibraryModules.UserStore.getUser(this.props.guild.ownerId);
if (!owner && !this.state.fetchedOwner) {
this.state.fetchedOwner = true;
2021-08-11 18:07:21 +02:00
BDFDB.LibraryModules.UserProfileUtils.getUser(this.props.guild.ownerId).then(_ => BDFDB.ReactUtils.forceUpdate(this));
2020-09-19 20:49:33 +02:00
}
2021-09-25 13:39:13 +02:00
let src = this.props.guild.getIconURL(4096, this.props.guild.icon && BDFDB.LibraryModules.IconUtils.isAnimatedIconHash(this.props.guild.icon));
2020-09-19 20:49:33 +02:00
return BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
direction: BDFDB.LibraryComponents.Flex.Direction.VERTICAL,
align: BDFDB.LibraryComponents.Flex.Align.CENTER,
children: [
2021-03-15 12:33:16 +01:00
_this.settings.items.icon && (src ? BDFDB.ReactUtils.createElement("img", {
2020-09-19 20:49:33 +02:00
className: BDFDB.disCN._serverdetailsicon,
2021-09-25 13:39:13 +02:00
src: src
2020-09-19 20:49:33 +02:00
}) : BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN._serverdetailsicon,
children: this.props.guild.acronym
})),
2021-03-15 12:33:16 +01:00
_this.settings.items.owner && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
2020-09-19 20:49:33 +02:00
prefix: BDFDB.LanguageUtils.LanguageStrings.GUILD_OWNER,
string: `${owner ? owner.username : "Unknown"}#${owner ? owner.discriminator : "0000"}`
}),
2021-03-15 12:33:16 +01:00
_this.settings.items.creationDate && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
prefix: _this.labels.creation_date,
2021-03-15 12:33:16 +01:00
string: BDFDB.LibraryComponents.DateInput.format(_this.settings.dates.tooltipDates, BDFDB.LibraryModules.TimestampUtils.extractTimestamp(this.props.guild.id))
2020-09-19 20:49:33 +02:00
}),
2021-03-15 12:33:16 +01:00
_this.settings.items.joinDate && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
prefix: _this.labels.join_date,
2021-03-15 12:33:16 +01:00
string: BDFDB.LibraryComponents.DateInput.format(_this.settings.dates.tooltipDates, this.props.guild.joinedAt)
2020-09-19 20:49:33 +02:00
}),
2021-03-15 12:33:16 +01:00
_this.settings.items.members && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
2020-09-19 20:49:33 +02:00
prefix: BDFDB.LanguageUtils.LanguageStrings.MEMBERS,
string: BDFDB.LibraryModules.MemberCountUtils.getMemberCount(this.props.guild.id)
}),
2021-05-26 23:20:16 +02:00
_this.settings.items.boosts && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
prefix: _this.labels.boosts,
2021-01-11 13:57:12 +01:00
string: this.props.guild.premiumSubscriberCount
}),
2021-03-15 12:33:16 +01:00
_this.settings.items.channels && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
2020-09-19 20:49:33 +02:00
prefix: BDFDB.LanguageUtils.LanguageStrings.CHANNELS,
string: BDFDB.LibraryModules.GuildChannelStore.getChannels(this.props.guild.id).count
}),
2021-03-15 12:33:16 +01:00
_this.settings.items.roles && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
2020-09-19 20:49:33 +02:00
prefix: BDFDB.LanguageUtils.LanguageStrings.ROLES,
string: Object.keys(this.props.guild.roles).length
}),
2021-11-23 22:54:47 +01:00
_this.settings.items.language && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
prefix: BDFDB.LanguageUtils.LanguageStrings.LANGUAGE,
string: BDFDB.LanguageUtils.getName(BDFDB.LanguageUtils.languages[this.props.guild.preferredLocale]) || this.props.guild.preferredLocale
2020-09-19 20:49:33 +02:00
})
].flat(10).filter(n => n)
});
2020-09-04 14:31:12 +02:00
}
2020-09-19 20:49:33 +02:00
};
const GuildDetailsRowComponent = class GuildDetailsRow extends BdApi.React.Component {
2021-01-20 16:00:29 +01:00
render() {
2021-03-15 12:33:16 +01:00
return (this.props.prefix.length + this.props.string.length) > Math.round(34 * (_this.settings.amounts.tooltipWidth/300)) ? [
2020-09-19 20:49:33 +02:00
BDFDB.ReactUtils.createElement("div", {
children: `${this.props.prefix}:`
2020-09-04 14:31:12 +02:00
}),
2020-09-19 20:49:33 +02:00
BDFDB.ReactUtils.createElement("div", {
children: this.props.string
2020-09-04 14:31:12 +02:00
})
2020-09-19 20:49:33 +02:00
] : BDFDB.ReactUtils.createElement("div", {
2021-07-04 19:53:12 +02:00
children: `${BDFDB.LibraryModules.StringUtils.upperCaseFirstChar(this.props.prefix)}: ${this.props.string}`
2020-09-19 20:49:33 +02:00
});
}
};
2020-10-09 21:09:35 +02:00
return class ServerDetails extends Plugin {
2021-01-06 12:38:36 +01:00
onLoad () {
2020-09-19 20:49:33 +02:00
_this = this;
this.defaults = {
2021-09-11 19:35:49 +02:00
general: {
onlyShowOnShift: {value: false, description: "Only show the Details Tooltip, while holding 'Shift'"}
},
2021-03-15 12:33:16 +01:00
items: {
icon: {value: true, description: "GUILD_CREATE_UPLOAD_ICON_LABEL"},
owner: {value: true, description: "GUILD_OWNER"},
creationDate: {value: true, description: "creation_date"},
joinDate: {value: true, description: "join_date"},
members: {value: true, description: "MEMBERS"},
channels: {value: true, description: "CHANNELS"},
roles: {value: true, description: "ROLES"},
2021-05-26 23:20:16 +02:00
boosts: {value: true, description: "boosts"},
2021-11-23 22:54:47 +01:00
language: {value: true, description: "LANGUAGE"}
2020-09-19 20:49:33 +02:00
},
2021-03-15 12:33:16 +01:00
dates: {
tooltipDates: {value: {}, description: "Tooltip Dates"}
2020-09-19 20:49:33 +02:00
},
2021-03-15 12:33:16 +01:00
colors: {
tooltipColor: {value: "", description: "Tooltip Color"}
2020-09-19 20:49:33 +02:00
},
amounts: {
2021-03-15 12:33:16 +01:00
tooltipDelay: {value: 0, min: 0, max: 10, digits: 1, unit: "s", description: "Tooltip Delay"},
tooltipWidth: {value: 300, min: 200, max: 600, digits: 0, unit: "px", description: "Tooltip Width"}
2020-09-04 14:31:12 +02:00
}
2020-09-19 20:49:33 +02:00
};
2020-09-04 14:31:12 +02:00
2020-09-19 20:49:33 +02:00
this.patchedModules = {
after: {
2022-02-06 18:09:47 +01:00
GuildItem: "type"
2020-09-04 14:31:12 +02:00
}
2020-09-19 20:49:33 +02:00
};
2021-04-09 18:13:38 +02:00
this.patchPriority = 9;
2020-09-19 20:49:33 +02:00
this.css = `
${BDFDB.dotCNS._serverdetailstooltip + BDFDB.dotCN.tooltipcontent} {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
2020-09-04 14:31:12 +02:00
}
2020-09-19 20:49:33 +02:00
${BDFDB.dotCNS._serverdetailstooltip + BDFDB.dotCN._serverdetailsicon} {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 5px;
border-radius: 10px;
overflow: hidden;
}
${BDFDB.dotCN._serverdetailstooltip} div${BDFDB.dotCN._serverdetailsicon} {
background-color: var(--background-primary);
color: var(--text-normal);
font-size: 40px;
}
`;
2020-09-04 14:31:12 +02:00
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
onStart () {
2020-09-11 19:31:36 +02:00
BDFDB.PatchUtils.patch(this, BDFDB.LibraryComponents.GuildComponents.Guild.prototype, "render", {after: e => {
2021-11-03 11:41:24 +01:00
this.processGuildItem({instance: e.thisObject, returnvalue: e.returnValue, methodname: "render"});
2020-09-04 14:31:12 +02:00
}});
this.forceUpdateAll();
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
onStop () {
2020-09-04 14:31:12 +02:00
this.forceUpdateAll();
2020-09-07 14:45:33 +02:00
BDFDB.DOMUtils.removeLocalStyle(this.name + "TooltipWidth");
2020-09-04 14:31:12 +02:00
}
2020-09-19 20:49:33 +02:00
getSettingsPanel (collapseStates = {}) {
2020-11-22 18:33:22 +01:00
let settingsPanel;
return settingsPanel = BDFDB.PluginUtils.createSettingsPanel(this, {
2020-09-19 20:49:33 +02:00
collapseStates: collapseStates,
2020-11-22 18:33:22 +01:00
children: _ => {
let settingsItems = [];
2021-09-11 19:35:49 +02:00
settingsItems.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.CollapseContainer, {
title: "Settings",
collapseStates: collapseStates,
children: Object.keys(this.defaults.general).map(key => BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsSaveItem, {
type: "Switch",
plugin: this,
keys: ["general", key],
label: this.defaults.general[key].description,
value: this.settings.general[key]
}))
}));
2020-11-22 18:33:22 +01:00
settingsItems.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.CollapseContainer, {
2021-03-15 12:33:16 +01:00
title: "Tooltip Items",
2020-11-22 18:33:22 +01:00
collapseStates: collapseStates,
2021-03-15 12:33:16 +01:00
children: Object.keys(this.defaults.items).map(key => BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsSaveItem, {
2020-11-22 18:33:22 +01:00
type: "Switch",
plugin: this,
2021-03-15 12:33:16 +01:00
keys: ["items", key],
label: this.labels[this.defaults.items[key].description] || BDFDB.LanguageUtils.LanguageStrings[this.defaults.items[key].description],
value: this.settings.items[key]
2020-11-22 18:33:22 +01:00
}))
}));
settingsItems.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.CollapseContainer, {
2021-03-15 12:33:16 +01:00
title: "Tooltip Format",
2020-11-22 18:33:22 +01:00
collapseStates: collapseStates,
2021-03-15 12:33:16 +01:00
children: Object.keys(this.defaults.dates).map(key => BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.DateInput, Object.assign({}, this.settings.dates[key], {
label: this.defaults.dates[key].description,
onChange: valueObj => {
this.SettingsUpdated = true;
this.settings.dates[key] = valueObj;
BDFDB.DataUtils.save(this.settings.dates, this, "dates");
}
2020-11-22 18:33:22 +01:00
}))).concat(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormDivider, {
className: BDFDB.disCN.marginbottom8
2021-03-15 12:33:16 +01:00
})).concat(Object.keys(this.defaults.amounts).map(key => BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsSaveItem, {
2020-11-22 18:33:22 +01:00
type: "Slider",
plugin: this,
keys: ["amounts", key],
label: this.defaults.amounts[key].description,
basis: "70%",
min: this.defaults.amounts[key].min,
max: this.defaults.amounts[key].max,
digits: this.defaults.amounts[key].digits,
markerAmount: 11,
onValueRender: value => value + this.defaults.amounts[key].unit,
childProps: {type: "number"},
2021-03-15 12:33:16 +01:00
value: this.settings.amounts[key]
2020-11-22 18:33:22 +01:00
}))).concat(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormDivider, {
className: BDFDB.disCN.marginbottom8
2021-03-15 12:33:16 +01:00
})).concat(Object.keys(this.defaults.colors).map(key => BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsSaveItem, {
2020-11-22 18:33:22 +01:00
type: "TextInput",
plugin: this,
keys: ["colors", key],
basis: "70%",
label: this.defaults.colors[key].description,
2021-03-15 12:33:16 +01:00
value: this.settings.colors[key],
2020-11-22 18:33:22 +01:00
childProps: {type: "color"},
2021-03-15 12:33:16 +01:00
placeholder: this.settings.colors[key]
2020-11-22 18:33:22 +01:00
})))
}));
return settingsItems;
}
});
2020-09-04 14:31:12 +02:00
}
2021-01-06 12:38:36 +01:00
onSettingsClosed () {
2020-09-19 20:49:33 +02:00
if (this.SettingsUpdated) {
delete this.SettingsUpdated;
this.forceUpdateAll();
}
}
2021-03-15 12:33:16 +01:00
forceUpdateAll () {
let iconSize = this.settings.amounts.tooltipWidth - 80;
2020-09-19 20:49:33 +02:00
BDFDB.DOMUtils.appendLocalStyle(this.name + "TooltipWidth", `
${BDFDB.dotCN._serverdetailstooltip} {
2021-03-15 12:33:16 +01:00
min-width: ${this.settings.amounts.tooltipWidth}px !important;
width: unset !important;
2020-09-19 20:49:33 +02:00
max-width: unset !important;
}
${BDFDB.dotCNS._serverdetailstooltip + BDFDB.dotCN._serverdetailsicon} {
width: ${iconSize > 0 ? iconSize : 30}px;
height: ${iconSize > 0 ? iconSize : 30}px;
}
`);
2021-09-24 16:58:46 +02:00
BDFDB.GuildUtils.rerenderAll();
2020-09-04 14:31:12 +02:00
}
2021-09-24 16:58:46 +02:00
2021-11-03 11:41:24 +01:00
processGuildItem (e) {
2020-09-19 20:49:33 +02:00
if (BDFDB.GuildUtils.is(e.instance.props.guild)) {
2021-03-15 12:33:16 +01:00
let tooltipContainer;
2020-09-19 20:49:33 +02:00
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: ["GuildTooltip", "BDFDB_TooltipContainer"]});
if (index > -1) children[index] = BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, Object.assign({}, children[index].props, {
2021-03-15 12:33:16 +01:00
ref: instance => {if (instance) tooltipContainer = instance;},
2020-09-19 20:49:33 +02:00
tooltipConfig: Object.assign({
2021-03-15 12:33:16 +01:00
backgroundColor: this.settings.colors.tooltipColor
2020-09-19 20:49:33 +02:00
}, children[index].props.tooltipConfig, {
2021-03-15 12:33:16 +01:00
className: !this.settings.amounts.tooltipDelay && BDFDB.disCN._serverdetailstooltip,
2020-09-19 20:49:33 +02:00
type: "right",
guild: e.instance.props.guild,
list: true,
offset: 12
}),
2021-09-11 19:35:49 +02:00
text: (instance, event) => BDFDB.ReactUtils.createElement(GuildDetailsComponent, {
shiftKey: event.shiftKey,
2021-03-15 12:33:16 +01:00
tooltipContainer: tooltipContainer,
2020-09-19 20:49:33 +02:00
guild: e.instance.props.guild
})
}));
2020-09-04 14:31:12 +02:00
}
}
2021-01-06 12:38:36 +01:00
setLabelsByLanguage () {
2020-09-19 20:49:33 +02:00
switch (BDFDB.LanguageUtils.getLanguage().id) {
case "bg": // Bulgarian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Бустери",
creation_date: "Дата на създаване",
join_date: "Дата на присъединяване"
2020-09-19 20:49:33 +02:00
};
case "da": // Danish
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Boosts",
creation_date: "Oprettelsesdato",
join_date: "Deltag i dato"
2020-09-19 20:49:33 +02:00
};
case "de": // German
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Boosts",
creation_date: "Erstellungsdatum",
join_date: "Beitrittsdatum"
2020-09-19 20:49:33 +02:00
};
case "el": // Greek
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Ενισχυτές",
creation_date: "Ημερομηνία δημιουργίας",
join_date: "Ημερομηνία προσχώρησης"
2020-09-19 20:49:33 +02:00
};
case "es": // Spanish
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Impulsores",
creation_date: "Fecha de creación",
join_date: "Fecha de Ingreso"
2020-09-19 20:49:33 +02:00
};
case "fi": // Finnish
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Tehostimet",
creation_date: "Luomispäivä",
join_date: "Liittymispäivä"
2020-09-19 20:49:33 +02:00
};
case "fr": // French
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Boosts",
creation_date: "Date de création",
join_date: "Date d'inscription"
2020-09-19 20:49:33 +02:00
};
case "hr": // Croatian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Pojačala",
creation_date: "Datum stvaranja",
join_date: "Datum pridruživanja"
2020-09-19 20:49:33 +02:00
};
case "hu": // Hungarian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Emlékeztetők",
creation_date: "Létrehozás dátuma",
join_date: "Csatlakozás dátuma"
2020-09-19 20:49:33 +02:00
};
case "it": // Italian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Boosts",
creation_date: "Data di creazione",
join_date: "Data di iscrizione"
2020-09-19 20:49:33 +02:00
};
case "ja": // Japanese
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "ブースター",
creation_date: "作成日",
join_date: "参加日"
2020-09-19 20:49:33 +02:00
};
case "ko": // Korean
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "부스터",
creation_date: "제작 일",
join_date: "가입 날짜"
2020-09-19 20:49:33 +02:00
};
case "lt": // Lithuanian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Stiprintuvai",
creation_date: "Sukūrimo data",
join_date: "Įstojimo data"
2020-09-19 20:49:33 +02:00
};
case "nl": // Dutch
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Boosts",
creation_date: "Aanmaakdatum",
join_date: "Toetredingsdatum"
2020-09-19 20:49:33 +02:00
};
case "no": // Norwegian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Boosts",
creation_date: "Opprettelsesdato",
join_date: "Bli med på dato"
2020-09-19 20:49:33 +02:00
};
case "pl": // Polish
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Boosty",
creation_date: "Data utworzenia",
join_date: "Data dołączenia"
2020-09-19 20:49:33 +02:00
};
case "pt-BR": // Portuguese (Brazil)
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Boosts",
creation_date: "Data de criação",
join_date: "Data de afiliação"
2020-09-19 20:49:33 +02:00
};
case "ro": // Romanian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Amplificatoare",
creation_date: "Data crearii",
join_date: "Data înscrierii"
2020-09-19 20:49:33 +02:00
};
case "ru": // Russian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Бустеры",
creation_date: "Дата создания",
2022-06-30 21:38:50 +02:00
join_date: атa вступления"
2020-09-19 20:49:33 +02:00
};
case "sv": // Swedish
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "Boosts",
creation_date: "Skapelsedagen",
join_date: "Gå med datum"
2020-09-19 20:49:33 +02:00
};
case "th": // Thai
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts: "บูสเตอร์",
creation_date: "วันที่สร้าง",
join_date: "วันที่เข้าร่วม"
};
case "tr": // Turkish
return {
2021-05-26 23:20:16 +02:00
boosts: "Güçlendiriciler",
creation_date: "Oluşturulma tarihi",
join_date: "Üyelik Tarihi"
};
case "uk": // Ukrainian
return {
2021-05-26 23:20:16 +02:00
boosts: "Підсилювачі",
creation_date: "Дата створення",
join_date: "Дата приєднання"
};
case "vi": // Vietnamese
return {
2021-05-26 23:20:16 +02:00
boosts: "Bộ tăng tốc",
creation_date: "Ngày thành lập",
join_date: "Ngày tham gia"
};
2021-01-15 17:54:22 +01:00
case "zh-CN": // Chinese (China)
return {
2021-05-26 23:20:16 +02:00
boosts: "助推器",
creation_date: "创建日期",
join_date: "参加日期"
};
2021-01-15 17:54:22 +01:00
case "zh-TW": // Chinese (Taiwan)
return {
2021-05-26 23:20:16 +02:00
boosts: "助推器",
creation_date: "創建日期",
join_date: "參加日期"
};
default: // English
return {
2021-05-26 23:20:16 +02:00
boosts: "Boosts",
creation_date: "Creation Date",
join_date: "Join Date"
2020-09-19 20:49:33 +02:00
};
}
}
};
2020-10-09 21:09:35 +02:00
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
2021-07-04 19:53:12 +02:00
})();