2020-10-20 23:25:34 +02:00
/ * *
* @ name EmojiStatistics
2021-03-05 13:26:41 +01:00
* @ author DevilBro
2020-10-20 23:25:34 +02:00
* @ authorId 278543574059057154
2021-05-27 19:01:15 +02:00
* @ version 2.9 . 8
2021-03-05 13:26:41 +01:00
* @ description Shows you an Overview of Emojis and Emoji Servers
2020-10-20 23:25:34 +02:00
* @ invite Jx3TjNS
2020-11-19 16:45:36 +01:00
* @ 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/EmojiStatistics/
2021-03-10 09:17:37 +01:00
* @ updateUrl https : //mwittrien.github.io/BetterDiscordAddons/Plugins/EmojiStatistics/EmojiStatistics.plugin.js
2020-10-20 23:25:34 +02:00
* /
2018-10-11 10:21:26 +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" : "EmojiStatistics" ,
"author" : "DevilBro" ,
2021-05-27 19:01:15 +02:00
"version" : "2.9.8" ,
2021-03-04 12:15:46 +01:00
"description" : "Shows you an Overview of Emojis and Emoji Servers"
2021-05-27 19:01:15 +02:00
} ,
"changeLog" : {
"improved" : {
"Swapped Position" : "Swapped Position with the Diversity Selector"
}
2020-04-25 11:13:18 +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-04-25 11:13:18 +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 ] ) => {
2020-09-19 20:49:33 +02:00
var emojiReplicaList ;
2020-10-09 21:09:35 +02:00
return class EmojiStatistics extends Plugin {
2021-01-06 12:38:36 +01:00
onLoad ( ) {
2020-09-19 20:49:33 +02:00
this . patchedModules = {
after : {
EmojiPicker : "type"
}
} ;
2020-04-25 11:13:18 +02:00
2020-09-19 20:49:33 +02:00
this . css = `
. $ { this . name } - table $ { BDFDB . dotCN . _emojistatisticsiconcell } {
justify - content : center ;
width : 48 px ;
padding : 0 ;
}
. $ { this . name } - table $ { BDFDB . dotCN . _emojistatisticsnamecell } {
width : 300 px ;
}
. $ { this . name } - table $ { BDFDB . dotCN . _emojistatisticsamountcell } {
width : 120 px ;
}
$ { BDFDB . dotCNS . emojipicker + BDFDB . dotCN . emojipickerheader } {
grid - template - columns : auto 24 px 24 px ;
}
$ { BDFDB . dotCNS . emojipicker + BDFDB . dotCN . _emojistatisticsstatisticsbutton } {
width : 24 px ;
height : 24 px ;
2021-05-27 19:01:15 +02:00
grid - column : 2 / 3 ;
}
$ { BDFDB . dotCNS . emojipicker + BDFDB . dotCN . emojipickerdiversityselector } {
2020-09-19 20:49:33 +02:00
grid - column : 3 / 4 ;
}
` ;
}
2021-01-06 12:38:36 +01:00
onStart ( ) {
2020-09-11 19:31:36 +02:00
BDFDB . PatchUtils . forceAllUpdates ( this ) ;
2020-04-25 11:13:18 +02:00
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
onStop ( ) {
2020-09-11 19:31:36 +02:00
BDFDB . PatchUtils . forceAllUpdates ( this ) ;
2020-04-25 11:13:18 +02:00
}
2019-01-26 22:45:19 +01:00
2020-09-19 20:49:33 +02:00
processEmojiPicker ( e ) {
this . loadEmojiList ( ) ;
2020-11-19 16:51:14 +01:00
let [ children , index ] = BDFDB . ReactUtils . findParent ( e . returnvalue , { name : "DiversitySelector" } ) ;
2021-05-27 19:01:15 +02:00
if ( index > - 1 ) children . splice ( index , 0 , BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TooltipContainer , {
2021-02-16 17:43:38 +01:00
text : this . labels . modal _header ,
2020-09-19 20:49:33 +02:00
children : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Clickable , {
className : BDFDB . disCN . _emojistatisticsstatisticsbutton ,
children : BDFDB . ReactUtils . createElement ( "div" , {
className : BDFDB . disCN . emojipickerdiversityemojiitemimage ,
2021-02-16 17:43:38 +01:00
style : { backgroundImage : ` url( ${ BDFDB . LibraryModules . EmojiStateUtils . getURL ( BDFDB . LibraryModules . EmojiUtils . convertNameToSurrogate ( "mag_right" ) ) } ) ` }
2020-09-19 20:49:33 +02:00
} )
} ) ,
onClick : _ => {
this . showEmojiInformationModal ( ) ;
e . instance . props . closePopout ( ) ;
}
} ) ) ;
}
2019-01-26 22:45:19 +01:00
2021-01-06 12:38:36 +01:00
loadEmojiList ( ) {
2020-09-19 20:49:33 +02:00
emojiReplicaList = { } ;
let guilds = BDFDB . LibraryModules . GuildStore . getGuilds ( ) ;
for ( let id in guilds ) for ( let emoji of BDFDB . LibraryModules . GuildEmojiStore . getGuildEmoji ( id ) ) {
if ( emoji . managed ) emojiReplicaList [ emoji . name ] = emojiReplicaList [ emoji . name ] != undefined ;
2020-04-25 11:13:18 +02:00
}
2018-10-11 10:21:26 +02:00
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
showEmojiInformationModal ( ) {
2020-09-19 20:49:33 +02:00
BDFDB . ModalUtils . open ( this , {
size : "LARGE" ,
2020-12-21 19:56:36 +01:00
header : this . labels . modal _header ,
2020-09-19 20:49:33 +02:00
children : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Table , {
className : ` ${ this . name } -table ` ,
stickyHeader : true ,
sortData : false ,
2021-02-04 19:11:20 +01:00
columns : [
2021-02-16 17:43:38 +01:00
{ key : "icon" , cell : "icon" , sortKey : "index" } ,
2021-02-04 19:11:20 +01:00
{ key : "name" , cell : "name" } ,
{ key : "total" , cell : "amount" , reverse : true } ,
{ key : "global" , cell : "amount" , reverse : true } ,
{ key : "local" , cell : "amount" , reverse : true } ,
{ key : "copies" , cell : "amount" , reverse : true }
] . map ( data => ( {
key : data . sortKey || data . key ,
2020-09-19 20:49:33 +02:00
sort : true ,
reverse : data . reverse ,
cellClassName : BDFDB . disCN [ ` _emojistatistics ${ data . cell } cell ` ] ,
2021-02-04 19:11:20 +01:00
renderHeader : _ => this . labels [ ` modal_titles ${ data . key } ` ] ,
render : item => {
2020-09-19 20:49:33 +02:00
if ( data . key == "icon" ) return BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . GuildComponents . Guild , {
2021-02-04 19:11:20 +01:00
guild : item . guild ,
2020-09-19 20:49:33 +02:00
menu : false ,
tooltip : false
} ) ;
else if ( data . key == "name" ) return BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextScroller , {
2021-02-04 19:11:20 +01:00
children : item . guild . name
2020-09-19 20:49:33 +02:00
} ) ;
2021-02-04 19:11:20 +01:00
else return item [ data . key ] ;
2020-09-19 20:49:33 +02:00
}
2021-02-04 19:11:20 +01:00
} ) ) ,
data : BDFDB . LibraryModules . FolderStore . getFlattenedGuilds ( ) . map ( ( guild , i ) => {
let itemData = {
2020-09-19 20:49:33 +02:00
index : i ,
2021-02-04 19:11:20 +01:00
guild : guild ,
2020-09-19 20:49:33 +02:00
global : 0 ,
local : 0 ,
copies : 0
}
2021-02-16 17:43:38 +01:00
for ( let emoji of BDFDB . LibraryModules . GuildEmojiStore . getGuildEmoji ( guild . id ) ) {
2020-09-19 20:49:33 +02:00
if ( emoji . managed ) {
2021-02-04 19:11:20 +01:00
itemData . global ++ ;
if ( emojiReplicaList [ emoji . name ] ) itemData . copies ++ ;
2020-09-19 20:49:33 +02:00
}
2021-02-04 19:11:20 +01:00
else itemData . local ++ ;
2020-04-25 11:13:18 +02:00
}
2021-02-04 19:11:20 +01:00
itemData . total = itemData . global + itemData . local ;
return itemData ;
2020-09-19 20:49:33 +02:00
} )
2020-04-25 11:13:18 +02:00
} )
2020-09-19 20:49:33 +02:00
} ) ;
2020-04-25 11:13:18 +02:00
}
2020-07-26 16:39:51 +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 {
2020-12-21 19:56:36 +01:00
modal _header : "Статистика на емотикони" ,
modal _titlescopies : "Копия" ,
modal _titlesglobal : "Глобален" ,
modal _titlesicon : "Икона" ,
modal _titleslocal : "Местен" ,
modal _titlesname : "Име на сървъра" ,
modal _titlestotal : "Обща сума"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Statistik over emojis" ,
modal _titlescopies : "Kopier" ,
modal _titlesglobal : "Global" ,
modal _titlesicon : "Ikon" ,
modal _titleslocal : "Lokal" ,
modal _titlesname : "Server navn" ,
modal _titlestotal : "Total"
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-02-16 17:43:38 +01:00
modal _header : "Emoji Statistiken" ,
2020-12-21 19:56:36 +01:00
modal _titlescopies : "Kopien" ,
modal _titlesglobal : "Global" ,
modal _titlesicon : "Symbol" ,
modal _titleslocal : "Lokal" ,
modal _titlesname : "Servername" ,
modal _titlestotal : "Gesamt"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Στατιστικά στοιχεία emoji" ,
modal _titlescopies : "Αντίγραφα" ,
modal _titlesglobal : "Παγκόσμια" ,
modal _titlesicon : "Εικόνισμα" ,
modal _titleslocal : "Τοπικός" ,
modal _titlesname : "Ονομα διακομιστή" ,
modal _titlestotal : "Σύνολο"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Estadísticas de emojis" ,
modal _titlescopies : "Copias" ,
modal _titlesglobal : "Global" ,
modal _titlesicon : "Icono" ,
modal _titleslocal : "Local" ,
modal _titlesname : "Nombre del servidor" ,
modal _titlestotal : "Total"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Emojien tilastot" ,
modal _titlescopies : "Kopiot" ,
modal _titlesglobal : "Maailmanlaajuinen" ,
modal _titlesicon : "Kuvake" ,
modal _titleslocal : "Paikallinen" ,
modal _titlesname : "Palvelimen nimi" ,
modal _titlestotal : "Kaikki yhteensä"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Statistiques des emojis" ,
modal _titlescopies : "Copies" ,
modal _titlesglobal : "Global" ,
modal _titlesicon : "Icône" ,
modal _titleslocal : "Local" ,
modal _titlesname : "Nom du serveur" ,
modal _titlestotal : "Total"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Statistika emojija" ,
modal _titlescopies : "Kopije" ,
modal _titlesglobal : "Globalno" ,
modal _titlesicon : "Ikona" ,
modal _titleslocal : "Lokalno" ,
modal _titlesname : "Ime poslužitelja" ,
modal _titlestotal : "Ukupno"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "A hangulatjelek statisztikája" ,
modal _titlescopies : "Másolatok" ,
modal _titlesglobal : "Globális" ,
modal _titlesicon : "Ikon" ,
modal _titleslocal : "Helyi" ,
modal _titlesname : "Szerver név" ,
modal _titlestotal : "Teljes"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Statistiche di emoji" ,
modal _titlescopies : "Copie" ,
modal _titlesglobal : "Globale" ,
modal _titlesicon : "Icona" ,
modal _titleslocal : "Locale" ,
modal _titlesname : "Nome del server" ,
modal _titlestotal : "Totale"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "絵文字の統計" ,
modal _titlescopies : "コピー" ,
modal _titlesglobal : "グローバル" ,
modal _titlesicon : "アイコン" ,
modal _titleslocal : "地元" ,
modal _titlesname : "サーバーの名前" ,
modal _titlestotal : "合計"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "이모티콘 통계" ,
modal _titlescopies : "사본" ,
modal _titlesglobal : "글로벌" ,
modal _titlesicon : "상" ,
modal _titleslocal : "현지" ,
modal _titlesname : "서버 이름" ,
modal _titlestotal : "합계"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Emoji statistika" ,
modal _titlescopies : "Kopijos" ,
modal _titlesglobal : "Visuotinis" ,
modal _titlesicon : "Piktograma" ,
modal _titleslocal : "Vietinis" ,
modal _titlesname : "Serverio pavadinimas" ,
modal _titlestotal : "Iš viso"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Statistieken van emoji's" ,
modal _titlescopies : "Kopieën" ,
modal _titlesglobal : "Globaal" ,
modal _titlesicon : "Icoon" ,
modal _titleslocal : "Lokaal" ,
modal _titlesname : "Server naam" ,
modal _titlestotal : "Totaal"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Statistikk over emoji" ,
modal _titlescopies : "Kopier" ,
modal _titlesglobal : "Global" ,
modal _titlesicon : "Ikon" ,
modal _titleslocal : "Lokalt" ,
modal _titlesname : "Server navn" ,
modal _titlestotal : "Total"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Statystyki emotikonów" ,
modal _titlescopies : "Kopie" ,
modal _titlesglobal : "Światowy" ,
modal _titlesicon : "Ikona" ,
modal _titleslocal : "Lokalny" ,
modal _titlesname : "Nazwa serwera" ,
modal _titlestotal : "Całkowity"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Estatísticas de emojis" ,
modal _titlescopies : "Cópias" ,
modal _titlesglobal : "Global" ,
modal _titlesicon : "Ícone" ,
modal _titleslocal : "Local" ,
modal _titlesname : "Nome do servidor" ,
modal _titlestotal : "Total"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Statistici ale emoji-urilor" ,
modal _titlescopies : "Copii" ,
modal _titlesglobal : "Global" ,
modal _titlesicon : "Pictogramă" ,
modal _titleslocal : "Local" ,
modal _titlesname : "Numele serverului" ,
modal _titlestotal : "Total"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Статистика смайлов" ,
modal _titlescopies : "Копии" ,
modal _titlesglobal : "Глобальный" ,
modal _titlesicon : "Икона" ,
modal _titleslocal : "Местный" ,
modal _titlesname : "Название сервера" ,
modal _titlestotal : "В с е г о "
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 {
2020-12-21 19:56:36 +01:00
modal _header : "Statistik för emojis" ,
modal _titlescopies : "Kopior" ,
modal _titlesglobal : "Global" ,
modal _titlesicon : "Ikon" ,
modal _titleslocal : "Lokal" ,
modal _titlesname : "Server namn" ,
modal _titlestotal : "Total"
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 {
2020-12-21 19:56:36 +01:00
modal _header : "สถิติของอิโมจิ" ,
modal _titlescopies : "สำเนา" ,
modal _titlesglobal : "ทั่วโลก" ,
modal _titlesicon : "ไอคอน" ,
modal _titleslocal : "ท้องถิ่น" ,
modal _titlesname : "ชื่อเซิร์ฟเวอร์" ,
modal _titlestotal : "รวม"
} ;
case "tr" : // Turkish
return {
modal _header : "Emojilerin istatistikleri" ,
modal _titlescopies : "Kopya sayı sı " ,
modal _titlesglobal : "Küresel" ,
modal _titlesicon : "Simge" ,
modal _titleslocal : "Yerel" ,
modal _titlesname : "Sunucu adı " ,
modal _titlestotal : "Toplam"
} ;
case "uk" : // Ukrainian
return {
modal _header : "Статистика смайликів" ,
modal _titlescopies : "Копії" ,
modal _titlesglobal : "Глобальний" ,
modal _titlesicon : "Піктограма" ,
modal _titleslocal : "Місцеві" ,
modal _titlesname : "Ім'я сервера" ,
modal _titlestotal : "Разом"
} ;
case "vi" : // Vietnamese
return {
modal _header : "Thống kê biểu tượng cảm xúc" ,
modal _titlescopies : "Bản sao" ,
modal _titlesglobal : "Toàn cầu" ,
modal _titlesicon : "Biểu tượng" ,
modal _titleslocal : "Địa phương" ,
modal _titlesname : "Tên máy chủ" ,
modal _titlestotal : "Toàn bộ"
} ;
2021-01-15 17:54:22 +01:00
case "zh-CN" : // Chinese (China)
2020-12-21 19:56:36 +01:00
return {
modal _header : "表情符号统计" ,
modal _titlescopies : "份数" ,
modal _titlesglobal : "全球" ,
modal _titlesicon : "图标" ,
modal _titleslocal : "本地" ,
modal _titlesname : "服务器名称" ,
modal _titlestotal : "总"
} ;
2021-01-15 17:54:22 +01:00
case "zh-TW" : // Chinese (Taiwan)
2020-12-21 19:56:36 +01:00
return {
modal _header : "表情符號統計" ,
modal _titlescopies : "份數" ,
modal _titlesglobal : "全球" ,
modal _titlesicon : "圖標" ,
modal _titleslocal : "本地" ,
modal _titlesname : "服務器名稱" ,
modal _titlestotal : "總"
} ;
default : // English
return {
2021-02-04 19:46:29 +01:00
modal _header : "Emoji Statistics" ,
2020-12-21 19:56:36 +01:00
modal _titlescopies : "Copies" ,
modal _titlesglobal : "Global" ,
modal _titlesicon : "Icon" ,
modal _titleslocal : "Local" ,
2021-02-04 19:46:29 +01:00
modal _titlesname : "Server Name" ,
2020-12-21 19:56:36 +01:00
modal _titlestotal : "Total"
2020-09-19 20:49:33 +02:00
} ;
}
}
} ;
2020-10-09 21:09:35 +02:00
} ) ( window . BDFDB _Global . PluginUtils . buildPlugin ( config ) ) ;
2020-09-19 20:49:33 +02:00
} ) ( ) ;