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
2021-06-02 09:10:57 +02:00
* @ version 1.0 . 6
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" ,
2021-06-02 09:10:57 +02:00
"version" : "1.0.6" ,
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
2021-06-15 13:42:02 +02:00
return ( window . Lightcord || window . LightCord ) ? class {
getName ( ) { return config . info . name ; }
getAuthor ( ) { return config . info . author ; }
getVersion ( ) { return config . info . version ; }
getDescription ( ) { return "Do not use LightCord!" ; }
load ( ) { BdApi . alert ( "Attention!" , "By using LightCord you are risking your Discord Account, due to using a 3rd Party Client. Switch to an official Discord Client (https://discord.com/) with the proper BD Injection (https://betterdiscord.app/)" ) ; }
start ( ) { }
stop ( ) { }
} : ! 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. \n Please 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-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 ;
BDFDB . LibraryModules . UserFetchUtils . getUser ( this . props . guild . ownerId ) . then ( _ => BDFDB . ReactUtils . forceUpdate ( this ) ) ;
}
2021-06-02 09:10:57 +02:00
let src = this . props . guild . getIconURL ( 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 ,
src : src . replace ( /\?size\=\d+$/ , "?size=4096" ) . replace ( /[\?\&](height|width)=\d+/g , "" )
} ) : 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 , {
2020-12-21 19:56:36 +01:00
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 , {
2020-12-21 19:56:36 +01:00
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-03-15 12:33:16 +01:00
_this . settings . items . region && BDFDB . ReactUtils . createElement ( GuildDetailsRowComponent , {
2020-09-19 20:49:33 +02:00
prefix : BDFDB . LanguageUtils . LanguageStrings . REGION ,
string : this . props . guild . region
} )
] . 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-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-03-15 12:33:16 +01:00
region : { value : true , description : "REGION" }
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 : {
Guild : "render"
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 : 5 px ;
border - radius : 10 px ;
overflow : hidden ;
}
$ { BDFDB . dotCN . _serverdetailstooltip } div$ { BDFDB . dotCN . _serverdetailsicon } {
background - color : var ( -- background - primary ) ;
color : var ( -- text - normal ) ;
font - size : 40 px ;
}
` ;
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 => {
2020-11-19 16:51:14 +01:00
this . processGuild ( { 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 = [ ] ;
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 ;
}
` );
BDFDB . PatchUtils . forceAllUpdates ( this ) ;
2020-09-04 14:31:12 +02:00
}
2020-09-19 20:49:33 +02:00
processGuild ( e ) {
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
} ) ,
text : _ => BDFDB . ReactUtils . createElement ( GuildDetailsComponent , {
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 ) {
2020-12-21 19:56:36 +01:00
case "bg" : // Bulgarian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Бустери" ,
2020-12-21 19:56:36 +01:00
creation _date : "Дата на създаване" ,
join _date : "Дата на присъединяване"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "da" : // Danish
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Boosts" ,
2020-12-21 19:56:36 +01:00
creation _date : "Oprettelsesdato" ,
join _date : "Deltag i dato"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "de" : // German
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Boosts" ,
2020-12-21 19:56:36 +01:00
creation _date : "Erstellungsdatum" ,
join _date : "Beitrittsdatum"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "el" : // Greek
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Ενισχυτές" ,
2020-12-21 19:56:36 +01:00
creation _date : "Ημερομηνία δημιουργίας" ,
join _date : "Ημερομηνία προσχώρησης"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "es" : // Spanish
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Impulsores" ,
2020-12-21 19:56:36 +01:00
creation _date : "Fecha de creación" ,
join _date : "Fecha de Ingreso"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "fi" : // Finnish
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Tehostimet" ,
2020-12-21 19:56:36 +01:00
creation _date : "Luomispäivä" ,
join _date : "Liittymispäivä"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "fr" : // French
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Boosts" ,
2020-12-21 19:56:36 +01:00
creation _date : "Date de création" ,
join _date : "Date d'inscription"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "hr" : // Croatian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Pojačala" ,
2020-12-21 19:56:36 +01:00
creation _date : "Datum stvaranja" ,
join _date : "Datum pridruživanja"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01: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" ,
2020-12-21 19:56:36 +01:00
creation _date : "Létrehozás dátuma" ,
join _date : "Csatlakozás dátuma"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "it" : // Italian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Boosts" ,
2020-12-21 19:56:36 +01:00
creation _date : "Data di creazione" ,
join _date : "Data di iscrizione"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "ja" : // Japanese
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "ブースター" ,
2020-12-21 19:56:36 +01:00
creation _date : "作成日" ,
join _date : "参加日"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "ko" : // Korean
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "부스터" ,
2020-12-21 19:56:36 +01:00
creation _date : "제작 일" ,
join _date : "가입 날짜"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "lt" : // Lithuanian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Stiprintuvai" ,
2020-12-21 19:56:36 +01:00
creation _date : "Sukūrimo data" ,
join _date : "Įstojimo data"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "nl" : // Dutch
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Boosts" ,
2020-12-21 19:56:36 +01:00
creation _date : "Aanmaakdatum" ,
join _date : "Toetredingsdatum"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "no" : // Norwegian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Boosts" ,
2020-12-21 19:56:36 +01:00
creation _date : "Opprettelsesdato" ,
join _date : "Bli med på dato"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "pl" : // Polish
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Boosty" ,
2020-12-21 19:56:36 +01:00
creation _date : "Data utworzenia" ,
join _date : "Data dołączenia"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01: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" ,
2020-12-21 19:56:36 +01:00
creation _date : "Data de criação" ,
join _date : "Data de afiliação"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "ro" : // Romanian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Amplificatoare" ,
2020-12-21 19:56:36 +01:00
creation _date : "Data crearii" ,
join _date : "Data înscrierii"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "ru" : // Russian
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Бустеры" ,
2020-12-21 19:56:36 +01:00
creation _date : "Дата создания" ,
join _date : "Дате вступления"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "sv" : // Swedish
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "Boosts" ,
2020-12-21 19:56:36 +01:00
creation _date : "Skapelsedagen" ,
join _date : "Gå med datum"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "th" : // Thai
2020-09-19 20:49:33 +02:00
return {
2021-05-26 23:20:16 +02:00
boosts : "บูสเตอร์" ,
2020-12-21 19:56:36 +01:00
creation _date : "วันที่สร้าง" ,
join _date : "วันที่เข้าร่วม"
} ;
case "tr" : // Turkish
return {
2021-05-26 23:20:16 +02:00
boosts : "Güçlendiriciler" ,
2020-12-21 19:56:36 +01:00
creation _date : "Oluşturulma tarihi" ,
join _date : "Üyelik Tarihi"
} ;
case "uk" : // Ukrainian
return {
2021-05-26 23:20:16 +02:00
boosts : "Підсилювачі" ,
2020-12-21 19:56:36 +01:00
creation _date : "Дата створення" ,
join _date : "Дата приєднання"
} ;
case "vi" : // Vietnamese
return {
2021-05-26 23:20:16 +02:00
boosts : "Bộ tăng tốc" ,
2020-12-21 19:56:36 +01:00
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)
2020-12-21 19:56:36 +01:00
return {
2021-05-26 23:20:16 +02:00
boosts : "助推器" ,
2020-12-21 19:56:36 +01:00
creation _date : "创建日期" ,
join _date : "参加日期"
} ;
2021-01-15 17:54:22 +01:00
case "zh-TW" : // Chinese (Taiwan)
2020-12-21 19:56:36 +01:00
return {
2021-05-26 23:20:16 +02:00
boosts : "助推器" ,
2020-12-21 19:56:36 +01:00
creation _date : "創建日期" ,
join _date : "參加日期"
} ;
default : // English
return {
2021-05-26 23:20:16 +02:00
boosts : "Boosts" ,
2020-12-21 19:56:36 +01:00
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
} ) ( ) ;