2020-10-20 23:25:34 +02:00
/ * *
* @ name LastMessageDate
2021-03-05 13:26:41 +01:00
* @ author DevilBro
2020-10-20 23:25:34 +02:00
* @ authorId 278543574059057154
2024-11-04 20:13:29 +01:00
* @ version 1.4 . 6
2021-03-05 13:26:41 +01:00
* @ description Displays the Last Message Date of a Member for the current Server / DM in the UserPopout and UserModal
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/LastMessageDate/
2021-03-10 09:17:37 +01:00
* @ updateUrl https : //mwittrien.github.io/BetterDiscordAddons/Plugins/LastMessageDate/LastMessageDate.plugin.js
2020-10-20 23:25:34 +02:00
* /
2019-02-20 10:19:22 +01:00
2020-09-19 20:49:33 +02:00
module . exports = ( _ => {
2022-09-01 14:40:11 +02:00
const changeLog = {
2023-03-29 17:33:40 +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 ( ) {
2023-11-18 18:31:04 +01:00
BdApi . Net . fetch ( "https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js" ) . then ( r => {
if ( ! r || r . status != 200 ) throw new Error ( ) ;
else return r . text ( ) ;
} ) . then ( b => {
if ( ! b ) throw new Error ( ) ;
else return require ( "fs" ) . writeFile ( require ( "path" ) . join ( BdApi . Plugins . folder , "0BDFDB.plugin.js" ) , b , _ => BdApi . showToast ( "Finished downloading BDFDB Library" , { type : "success" } ) ) ;
} ) . catch ( error => {
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
} ) ;
}
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. \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-06-30 23:25:27 +02:00
var _this ;
2022-11-03 14:46:05 +01:00
var loadedUsers , requestedUsers , queuedInstances ;
2021-06-08 23:14:34 +02:00
var currentPopout , currentProfile ;
2020-09-19 20:49:33 +02:00
2022-11-03 14:46:05 +01:00
const LastMessageDateComponents = class LastMessageDate extends BdApi . React . Component {
render ( ) {
if ( ! loadedUsers [ this . props . guildId ] ) loadedUsers [ this . props . guildId ] = { } ;
if ( ! requestedUsers [ this . props . guildId ] ) requestedUsers [ this . props . guildId ] = { } ;
if ( ! queuedInstances [ this . props . guildId ] ) queuedInstances [ this . props . guildId ] = { } ;
if ( loadedUsers [ this . props . guildId ] [ this . props . user . id ] === undefined && ! requestedUsers [ this . props . guildId ] [ this . props . user . id ] ) {
requestedUsers [ this . props . guildId ] [ this . props . user . id ] = true ;
queuedInstances [ this . props . guildId ] [ this . props . user . id ] = [ ] . concat ( queuedInstances [ this . props . guildId ] [ this . props . user . id ] ) . filter ( n => n ) ;
2024-06-21 20:28:37 +02:00
BDFDB . LibraryModules . HTTPUtils . get ( {
2022-11-03 14:46:05 +01:00
url : this . props . isGuild ? BDFDB . DiscordConstants . Endpoints . SEARCH _GUILD ( this . props . guildId ) : BDFDB . DiscordConstants . Endpoints . SEARCH _CHANNEL ( this . props . channelId ) ,
2022-12-20 11:23:40 +01:00
query : BDFDB . LibraryModules . APIEncodeUtils . stringify ( {
author _id : this . props . user . id ,
include _nsfw : true
} )
2022-11-03 14:46:05 +01:00
} ) . then ( result => {
delete requestedUsers [ this . props . guildId ] [ this . props . user . id ] ;
if ( typeof result . body . retry _after != "number" ) {
if ( result . body . messages && Array . isArray ( result . body . messages [ 0 ] ) ) {
for ( let message of result . body . messages [ 0 ] ) if ( message . hit && message . author . id == this . props . user . id ) loadedUsers [ this . props . guildId ] [ this . props . user . id ] = message ;
}
else loadedUsers [ this . props . guildId ] [ this . props . user . id ] = null ;
BDFDB . ReactUtils . forceUpdate ( queuedInstances [ this . props . guildId ] [ this . props . user . id ] ) ;
delete queuedInstances [ this . props . guildId ] [ this . props . user . id ] ;
}
else BDFDB . TimeUtils . timeout ( _ => BDFDB . ReactUtils . forceUpdate ( this ) , result . body . retry _after + 500 ) ;
} ) ;
}
if ( loadedUsers [ this . props . guildId ] [ this . props . user . id ] === undefined ) {
if ( queuedInstances [ this . props . guildId ] [ this . props . user . id ] . indexOf ( this ) == - 1 ) queuedInstances [ this . props . guildId ] [ this . props . user . id ] . push ( this ) ;
return null ;
}
let channel = loadedUsers [ this . props . guildId ] [ this . props . user . id ] && BDFDB . LibraryStores . ChannelStore . getChannel ( loadedUsers [ this . props . guildId ] [ this . props . user . id ] . channel _id ) ;
let icon = BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SvgIcon , {
className : BDFDB . disCN . _lastmessagedateicon ,
nativeClass : false ,
name : BDFDB . LibraryComponents . SvgIcon . Names . NUMPAD
} ) ;
2024-08-16 16:41:42 +02:00
return BDFDB . ReactUtils . createElement ( "section" , {
className : BDFDB . disCN . userprofilesection ,
2022-11-03 14:46:05 +01:00
children : [
2024-07-27 13:17:45 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Heading , {
2024-08-16 16:41:42 +02:00
className : BDFDB . disCN . userprofilesectionheading ,
variant : "text-xs/semibold" ,
style : { color : "var(--header-secondary)" } ,
color : null ,
2022-11-03 14:46:05 +01:00
children : _this . labels . last _message
} ) ,
2022-11-30 10:23:05 +01:00
BDFDB . ReactUtils . createElement ( loadedUsers [ this . props . guildId ] [ this . props . user . id ] ? BDFDB . LibraryComponents . Clickable : "div" , {
2024-07-27 13:17:45 +02:00
className : BDFDB . disCN . membersince ,
2022-11-30 10:23:05 +01:00
onClick : _ => loadedUsers [ this . props . guildId ] [ this . props . user . id ] && BDFDB . LibraryModules . HistoryUtils . transitionTo ( BDFDB . DiscordConstants . Routes . CHANNEL ( channel . guild _id , channel . id , loadedUsers [ this . props . guildId ] [ this . props . user . id ] . id ) ) ,
2022-11-03 14:46:05 +01:00
children : [
! channel ? icon : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TooltipContainer , {
text : channel . guild _id ? "#" + channel . name : BDFDB . LanguageUtils . LanguageStrings . DIRECT _MESSAGES ,
children : icon
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Text , {
variant : "text-sm/normal" ,
children : loadedUsers [ this . props . guildId ] [ this . props . user . id ] ? BDFDB . LibraryComponents . DateInput . format ( _this . settings . dates . lastMessageDate , new Date ( loadedUsers [ this . props . guildId ] [ this . props . user . id ] . timestamp ) ) : "---"
} )
]
} )
]
} ) ;
}
} ;
2020-10-09 21:09:35 +02:00
return class LastMessageDate extends Plugin {
2021-01-06 12:38:36 +01:00
onLoad ( ) {
2021-06-30 23:25:27 +02:00
_this = this ;
2020-09-19 20:49:33 +02:00
loadedUsers = { } ;
requestedUsers = { } ;
2021-07-05 21:34:35 +02:00
queuedInstances = { } ;
2019-02-20 10:19:22 +01:00
2020-09-19 20:49:33 +02:00
this . defaults = {
2021-03-15 13:28:17 +01:00
places : {
2023-11-18 18:31:04 +01:00
userPopout : { value : true , description : "User Popouts" } ,
2021-03-15 13:28:17 +01:00
userProfile : { value : true , description : "User Profile Modal" }
2020-09-19 20:49:33 +02:00
} ,
2021-03-15 13:28:17 +01:00
dates : {
lastMessageDate : { value : { } , description : "Last Message Date" } ,
2020-09-19 20:49:33 +02:00
}
} ;
2024-07-27 13:17:45 +02:00
this . patchPriority = 9 ;
2020-04-14 18:27:51 +02:00
2022-11-03 14:46:05 +01:00
this . modulePatches = {
before : [
2024-04-22 17:21:53 +02:00
"UserThemeContainer"
2022-11-03 14:46:05 +01:00
] ,
after : [
2024-07-27 13:17:45 +02:00
"UserHeaderUsername" ,
2024-06-23 19:42:49 +02:00
"UserProfileInfoSectionSimplified"
2022-11-03 14:46:05 +01:00
]
2020-09-19 20:49:33 +02:00
} ;
2022-11-03 14:46:05 +01:00
this . css = `
$ { BDFDB . dotCN . _lastmessagedateicon } {
width : 16 px ;
height : 16 px ;
color : var ( -- interactive - normal ) ;
}
` ;
2020-04-14 18:27:51 +02:00
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
onStart ( ) {
2022-08-04 16:35:10 +02:00
BDFDB . PatchUtils . patch ( this , BDFDB . LibraryModules . DispatchApiUtils , "dispatch" , { after : e => {
2022-08-01 22:55:52 +02:00
if ( BDFDB . ObjectUtils . is ( e . methodArguments [ 0 ] ) && e . methodArguments [ 0 ] . type == "MESSAGE_CREATE" && e . methodArguments [ 0 ] . message ) {
2020-04-14 18:27:51 +02:00
let message = e . methodArguments [ 0 ] . message ;
let guildId = message . guild _id || message . channel _id ;
2022-11-03 14:46:05 +01:00
if ( guildId && loadedUsers [ guildId ] && loadedUsers [ guildId ] [ message . author . id ] ) loadedUsers [ guildId ] [ message . author . id ] = message ;
2020-04-14 18:27:51 +02:00
}
2023-03-29 17:33:40 +02:00
else if ( BDFDB . ObjectUtils . is ( e . methodArguments [ 0 ] ) && e . methodArguments [ 0 ] . type == "MESSAGE_DELETE" && e . methodArguments [ 0 ] . id ) {
let guildId = e . methodArguments [ 0 ] . guildId || e . methodArguments [ 0 ] . channelId ;
if ( guildId && loadedUsers [ guildId ] ) {
let message = ( Object . entries ( loadedUsers [ guildId ] ) . find ( n => n [ 1 ] && n [ 1 ] . id == e . methodArguments [ 0 ] . id ) || [ ] ) [ 1 ] ;
if ( message && loadedUsers [ guildId ] [ message . author . id ] ) delete loadedUsers [ guildId ] [ message . author . id ] ;
}
}
2020-04-14 18:27:51 +02:00
} } ) ;
2019-02-20 10:19:22 +01:00
2021-03-15 13:28:17 +01:00
BDFDB . PatchUtils . forceAllUpdates ( this ) ;
2020-04-14 18:27:51 +02:00
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
onStop ( ) {
2021-03-15 13:28:17 +01:00
BDFDB . PatchUtils . forceAllUpdates ( this ) ;
2020-04-14 18:27:51 +02:00
}
2019-02-20 10:19:22 +01:00
2020-09-19 20:49:33 +02:00
getSettingsPanel ( collapseStates = { } ) {
2021-03-15 13:28:17 +01:00
let settingsPanel ;
return settingsPanel = BDFDB . PluginUtils . createSettingsPanel ( this , {
2020-09-19 20:49:33 +02:00
collapseStates : collapseStates ,
2021-03-15 13:28:17 +01:00
children : _ => {
let settingsItems = [ ] ;
settingsItems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsPanelList , {
title : "Add Date in:" ,
children : Object . keys ( this . defaults . places ) . map ( key => BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsSaveItem , {
type : "Switch" ,
plugin : this ,
keys : [ "places" , key ] ,
label : this . defaults . places [ key ] . description ,
value : this . settings . places [ key ]
} ) )
} ) ) ;
settingsItems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormDivider , {
className : BDFDB . disCN . marginbottom8
} ) ) ;
settingsItems . push ( 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" ) ;
}
} ) ) ) ) ;
return settingsItems . flat ( 10 ) ;
}
} ) ;
2020-09-19 20:49:33 +02:00
}
2019-02-20 10:19:22 +01:00
2021-01-06 12:38:36 +01:00
onSettingsClosed ( ) {
2020-09-19 20:49:33 +02:00
if ( this . SettingsUpdated ) {
delete this . SettingsUpdated ;
2021-03-15 13:28:17 +01:00
BDFDB . PatchUtils . forceAllUpdates ( this ) ;
2020-09-19 20:49:33 +02:00
}
}
2020-07-11 23:28:30 +02:00
2024-04-22 17:21:53 +02:00
processUserThemeContainer ( e ) {
2024-08-17 17:00:05 +02:00
let popout = { props : e . instance . props . value || e . instance . props } ;
if ( popout . props . layout == "POPOUT" ) currentPopout = popout ;
if ( popout . props . layout == "BITE_SIZE_POPOUT" ) currentPopout = popout ;
if ( popout . props . layout == "MODAL" ) currentProfile = popout ;
if ( popout . props . layout == "SIMPLIFIED_MODAL" ) currentProfile = popout ;
2022-08-31 12:25:50 +02:00
}
2024-07-27 13:17:45 +02:00
processUserHeaderUsername ( e ) {
2024-07-31 18:10:16 +02:00
if ( ! currentPopout || e . instance . props . profileType != "BITE_SIZE" || e . instance . props . className ) return ;
2022-11-03 14:46:05 +01:00
let user = e . instance . props . user || BDFDB . LibraryStores . UserStore . getUser ( e . instance . props . userId ) ;
if ( ! user || user . isNonUserBot ( ) ) return ;
2024-07-27 13:17:45 +02:00
e . returnvalue = [ e . returnvalue ] . flat ( 10 ) ;
e . returnvalue . push ( BDFDB . ReactUtils . createElement ( LastMessageDateComponents , {
2024-06-23 19:42:49 +02:00
isInPopout : true ,
guildId : currentPopout . props . guildId || BDFDB . DiscordConstants . ME ,
channelId : currentPopout . props . channelId ,
isGuild : ! ! currentPopout . props . guildId ,
user : user
} , true ) ) ;
}
processUserProfileInfoSectionSimplified ( e ) {
if ( ! currentProfile ) return ;
let user = e . instance . props . user || BDFDB . LibraryStores . UserStore . getUser ( e . instance . props . userId ) ;
if ( ! user || user . isNonUserBot ( ) ) return ;
2024-11-04 20:13:29 +01:00
let [ children , index ] = BDFDB . ReactUtils . findParent ( e . returnvalue , { props : [ [ "heading" , BDFDB . LanguageUtils . LanguageStrings . USER _PROFILE _MEMBER _SINCE ] ] } ) ;
2024-06-23 19:42:49 +02:00
if ( index > - 1 ) children . splice ( index , 0 , BDFDB . ReactUtils . createElement ( LastMessageDateComponents , {
isInPopout : false ,
guildId : currentProfile . props . guildId || BDFDB . DiscordConstants . ME ,
channelId : currentProfile . props . channelId ,
isGuild : ! ! currentProfile . props . guildId ,
user : user
} , true ) ) ;
}
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 {
2022-11-03 14:46:05 +01:00
last _message : "Последно изпратено съобщение"
2020-09-19 20:49:33 +02:00
} ;
2021-07-05 18:38:04 +02:00
case "cs" : // Czech
return {
2022-11-03 14:46:05 +01:00
last _message : "Poslední odeslaná zpráva"
2021-07-05 18:38:04 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "da" : // Danish
2020-09-19 20:49:33 +02:00
return {
2022-11-03 14:46:05 +01:00
last _message : "Senest sendt besked"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Letzte gesendete Nachricht"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Τελευταίο μήνυμα που εστάλη"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Último mensaje enviado"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Viimeksi lähetetty viesti"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Dernier message envoyé"
2020-09-19 20:49:33 +02:00
} ;
2021-07-05 18:38:04 +02:00
case "hi" : // Hindi
return {
2022-11-03 14:46:05 +01:00
last _message : "अंतिम भेजा गया संदेश"
2021-07-05 18:38:04 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "hr" : // Croatian
2020-09-19 20:49:33 +02:00
return {
2022-11-03 14:46:05 +01:00
last _message : "Zadnja poslana poruka"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Utoljára elküldött üzenet"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Ultimo messaggio inviato"
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 {
2022-11-03 14:46:05 +01:00
last _message : "最後に送信されたメッセージ"
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 {
2022-11-03 14:46:05 +01:00
last _message : "마지막으로 보낸 메시지"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Paskutinė išsiųsta žinutė"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Laatst verzonden bericht"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Sist sendt melding"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Ostatnio wysłana wiadomość"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Última mensagem enviada"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Ultimul mesaj trimis"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Последнее отправленное сообщение"
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 {
2022-11-03 14:46:05 +01:00
last _message : "Senast skickat meddelande"
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 {
2022-11-03 14:46:05 +01:00
last _message : "ข้อความที่ส่งล่าสุด"
2020-12-21 19:56:36 +01:00
} ;
case "tr" : // Turkish
return {
2022-11-03 14:46:05 +01:00
last _message : "Son Gönderilen Mesaj"
2020-12-21 19:56:36 +01:00
} ;
case "uk" : // Ukrainian
return {
2022-11-03 14:46:05 +01:00
last _message : "Останнє надіслане повідомлення"
2020-12-21 19:56:36 +01:00
} ;
case "vi" : // Vietnamese
return {
2022-11-03 14:46:05 +01:00
last _message : "Tin nhắn được gửi lần cuối"
2020-12-21 19:56:36 +01:00
} ;
2021-01-15 17:54:22 +01:00
case "zh-CN" : // Chinese (China)
2020-12-21 19:56:36 +01:00
return {
2022-11-03 14:46:05 +01:00
last _message : "最后发送的消息"
2020-12-21 19:56:36 +01:00
} ;
2021-01-15 17:54:22 +01:00
case "zh-TW" : // Chinese (Taiwan)
2020-12-21 19:56:36 +01:00
return {
2022-11-03 14:46:05 +01:00
last _message : "最後發送的消息"
2020-12-21 19:56:36 +01:00
} ;
default : // English
return {
2022-11-03 14:46:05 +01:00
last _message : "Last sent Message"
2020-09-19 20:49:33 +02:00
} ;
}
}
} ;
2022-09-01 14:40:11 +02:00
} ) ( window . BDFDB _Global . PluginUtils . buildPlugin ( changeLog ) ) ;
2022-11-05 16:04:00 +01:00
} ) ( ) ;