BetterDiscordAddons/Plugins/ServerDetails/ServerDetails.plugin.js

570 lines
22 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
2023-06-23 18:16:22 +02:00
* @version 1.1.8
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 = (_ => {
2022-09-01 14:40:11 +02:00
const changeLog = {
2022-09-02 12:37:10 +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 {
2022-09-01 14:55:22 +02:00
constructor (meta) {for (let key in meta) this[key] = meta[key];}
getName () {return this.name;}
getAuthor () {return this.author;}
getVersion () {return this.version;}
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
2021-02-01 17:13:13 +01:00
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;
2022-09-01 14:55:22 +02:00
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.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
}
2022-09-01 14:55:22 +02:00
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.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");
2022-09-01 14:55:22 +02: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 ${this.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);
2023-04-15 18:26:39 +02:00
this.state = {fetchedOwner: false, delayed: false, repositioned: false, shouldReposition: false, forced: false};
2020-09-19 20:49:33 +02:00
}
2021-01-20 16:00:29 +01:00
componentDidUpdate() {
2023-04-15 17:00:39 +02:00
let tooltip = BDFDB.DOMUtils.getParent(BDFDB.dotCN.tooltip, BDFDB.ReactUtils.findDOMNode(this));
if (tooltip) BDFDB.DOMUtils.addClass(tooltip, BDFDB.disCN._serverdetailstooltip);
else if (this.props.tooltipContainer && this.props.tooltipContainer.tooltip) BDFDB.DOMUtils.removeClass(this.props.tooltipContainer.tooltip.firstElementChild, BDFDB.disCN._serverdetailstooltip);
2023-04-15 18:26:39 +02:00
if (this.state.shouldReposition || _this.settings.amounts.tooltipDelay && this.state.delayed && !this.state.repositioned) {
2020-09-19 20:49:33 +02:00
this.state.repositioned = true;
2023-04-15 18:26:39 +02:00
this.state.shouldReposition = false;
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
}
2023-04-15 17:00:39 +02:00
componentDidMount() {
BDFDB.DOMUtils.addClass(BDFDB.DOMUtils.getParent(BDFDB.dotCN.tooltip, BDFDB.ReactUtils.findDOMNode(this)), BDFDB.disCN._serverdetailstooltip);
}
2021-01-20 16:00:29 +01:00
render() {
2022-12-03 13:14:15 +01:00
if (_this.settings.general.onlyShowOnShift) {
let addListener = expanded => {
let triggered = false, listener = event => {
if (!this.updater.isMounted(this)) return document.removeEventListener(expanded ? "keyup" : "keydown", listener);
if (triggered) return;
if (event.which != 16 || triggered) return;
triggered = true;
document.removeEventListener(expanded ? "keyup" : "keydown", listener);
this.props.shiftKey = !expanded;
this.state.forced = !expanded;
this.state.repositioned = false;
2023-04-15 18:26:39 +02:00
this.state.shouldReposition = true;
2022-12-03 13:14:15 +01:00
BDFDB.ReactUtils.forceUpdate(this);
};
document.addEventListener(expanded ? "keyup" : "keydown", listener);
};
if (!this.props.shiftKey) {
addListener(false);
return null;
}
else {
addListener(true);
}
}
2022-10-17 17:29:29 +02:00
let owner = BDFDB.LibraryStores.UserStore.getUser(this.props.guild.ownerId);
if (!owner && !this.state.fetchedOwner) {
this.state.fetchedOwner = true;
BDFDB.LibraryModules.UserProfileUtils.getUser(this.props.guild.ownerId).then(_ => BDFDB.ReactUtils.forceUpdate(this));
}
2023-04-15 18:26:39 +02:00
if (_this.settings.amounts.tooltipDelay && !this.state.delayed && !this.state.shouldReposition) {
2020-09-19 20:49:33 +02:00
BDFDB.TimeUtils.timeout(_ => {
this.state.delayed = true;
BDFDB.ReactUtils.forceUpdate(this);
2022-12-03 13:14:15 +01:00
}, this.state.forced ? 0 : (_this.settings.amounts.tooltipDelay * 1000));
2020-09-19 20:49:33 +02:00
return null;
}
2023-04-15 17:00:39 +02:00
else {
let src = this.props.guild.getIconURL(4096, this.props.guild.icon && BDFDB.LibraryModules.IconUtils.isAnimatedIconHash(this.props.guild.icon));
return BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
direction: BDFDB.LibraryComponents.Flex.Direction.VERTICAL,
align: BDFDB.LibraryComponents.Flex.Align.CENTER,
children: [
_this.settings.items.icon && (src ? BDFDB.ReactUtils.createElement("img", {
className: BDFDB.disCN._serverdetailsicon,
src: src
}) : BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN._serverdetailsicon,
children: this.props.guild.acronym
})),
_this.settings.items.owner && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
prefix: BDFDB.LanguageUtils.LanguageStrings.GUILD_OWNER,
2023-06-30 10:55:35 +02:00
string: !owner ? BDFDB.LanguageUtils.LanguageStrings.UNKNOWN_USER : (owner.isPomelo() ? owner.username : `${owner.username}#${owner.discriminator}`)
2023-04-15 17:00:39 +02:00
}),
_this.settings.items.creationDate && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
prefix: _this.labels.creation_date,
string: BDFDB.LibraryComponents.DateInput.format(_this.settings.dates.tooltipDates, BDFDB.LibraryModules.TimestampUtils.extractTimestamp(this.props.guild.id))
}),
_this.settings.items.joinDate && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
prefix: _this.labels.join_date,
string: BDFDB.LibraryComponents.DateInput.format(_this.settings.dates.tooltipDates, this.props.guild.joinedAt)
}),
_this.settings.items.members && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
prefix: BDFDB.LanguageUtils.LanguageStrings.MEMBERS,
string: BDFDB.LibraryStores.GuildMemberCountStore.getMemberCount(this.props.guild.id)
}),
_this.settings.items.boosts && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
prefix: _this.labels.boosts,
string: this.props.guild.premiumSubscriberCount
}),
_this.settings.items.channels && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
prefix: BDFDB.LanguageUtils.LanguageStrings.CHANNELS,
string: BDFDB.LibraryStores.GuildChannelStore.getChannels(this.props.guild.id).count
}),
_this.settings.items.roles && BDFDB.ReactUtils.createElement(GuildDetailsRowComponent, {
prefix: BDFDB.LanguageUtils.LanguageStrings.ROLES,
string: Object.keys(this.props.guild.roles).length
}),
_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
})
].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", {
2022-09-27 11:53:04 +02:00
children: `${BDFDB.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: {
2023-04-15 17:00:39 +02:00
icon: {value: true, description: "icon"},
2021-03-15 12:33:16 +01:00
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
2022-10-13 12:51:20 +02:00
this.modulePatches = {
after: [
"GuildItem"
]
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-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, {
2023-04-15 17:00:39 +02:00
title: "General",
2021-09-11 19:35:49 +02:00
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;
}
`);
2022-10-10 15:53:50 +02:00
BDFDB.DiscordUtils.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) {
2022-10-13 12:51:20 +02:00
if (!BDFDB.GuildUtils.is(e.instance.props.guild)) return;
let tooltipContainer;
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, {
ref: instance => {if (instance) tooltipContainer = instance;},
tooltipConfig: Object.assign({
backgroundColor: this.settings.colors.tooltipColor
}, children[index].props.tooltipConfig, {
type: "right",
guild: e.instance.props.guild,
list: true,
offset: 12
}),
text: (instance, event) => BDFDB.ReactUtils.createElement(GuildDetailsComponent, {
shiftKey: event.shiftKey,
tooltipContainer: tooltipContainer,
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: "Дата на създаване",
2023-04-15 17:00:39 +02:00
icon: "Икона",
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",
2023-04-15 17:00:39 +02:00
icon: "Ikon",
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",
2023-04-15 17:00:39 +02:00
icon: "Symbol",
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: "Ημερομηνία δημιουργίας",
2023-04-19 10:39:58 +02:00
icon: "Εικονίδιο",
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",
2023-04-15 17:00:39 +02:00
icon: "Icono",
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ä",
2023-04-15 17:00:39 +02:00
icon: "Kuvake",
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",
2023-04-15 17:00:39 +02:00
icon: "Icône",
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",
2023-04-15 17:00:39 +02:00
icon: "Ikona",
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",
2023-04-15 17:00:39 +02:00
icon: "Ikon",
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",
2023-04-15 17:00:39 +02:00
icon: "Icona",
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: "作成日",
2023-04-15 17:00:39 +02:00
icon: "アイコン",
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: "제작 일",
2023-04-15 17:00:39 +02:00
icon: "상",
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",
2023-04-15 17:00:39 +02:00
icon: "Piktograma",
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",
2023-04-15 17:00:39 +02:00
icon: "Icoon",
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",
2023-04-15 17:00:39 +02:00
icon: "Ikon",
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",
2023-04-15 17:00:39 +02:00
icon: "Ikona",
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",
2023-04-15 17:00:39 +02:00
icon: "Ícone",
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",
2023-04-15 17:00:39 +02:00
icon: "Pictogramă",
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: "Дата создания",
2023-04-15 17:00:39 +02:00
icon: "Икона",
2022-10-13 12:51:20 +02:00
join_date: "Дате вступления"
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",
2023-04-15 17:00:39 +02:00
icon: "Ikon",
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: "วันที่สร้าง",
2023-04-15 17:00:39 +02:00
icon: "ไอคอน",
join_date: "วันที่เข้าร่วม"
};
case "tr": // Turkish
return {
2021-05-26 23:20:16 +02:00
boosts: "Güçlendiriciler",
creation_date: "Oluşturulma tarihi",
2023-04-15 17:00:39 +02:00
icon: "Simge",
join_date: "Üyelik Tarihi"
};
case "uk": // Ukrainian
return {
2021-05-26 23:20:16 +02:00
boosts: "Підсилювачі",
creation_date: "Дата створення",
2023-04-15 17:00:39 +02:00
icon: "Піктограма",
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",
2023-04-15 17:00:39 +02:00
icon: "Biểu tượng",
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: "创建日期",
2023-04-15 17:00:39 +02:00
icon: "图标",
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: "創建日期",
2023-04-15 17:00:39 +02:00
icon: "圖示",
join_date: "參加日期"
};
default: // English
return {
2021-05-26 23:20:16 +02:00
boosts: "Boosts",
creation_date: "Creation Date",
2023-04-15 17:00:39 +02:00
icon: "Icon",
join_date: "Join Date"
2020-09-19 20:49:33 +02:00
};
}
}
};
2022-09-01 14:40:11 +02:00
})(window.BDFDB_Global.PluginUtils.buildPlugin(changeLog));
2023-04-19 10:39:58 +02:00
})();