2020-02-27 08:44:03 +01:00
//META{"name":"CreationDate","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/CreationDate","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/CreationDate/CreationDate.plugin.js"}*//
2018-10-11 10:21:26 +02:00
class CreationDate {
2019-01-17 23:48:29 +01:00
getName ( ) { return "CreationDate" ; }
2020-01-05 16:11:10 +01:00
getVersion ( ) { return "1.3.5" ; }
2019-01-17 23:48:29 +01:00
getAuthor ( ) { return "DevilBro" ; }
getDescription ( ) { return "Displays the Creation Date of an Account in the UserPopout and UserModal." ; }
2019-01-26 22:45:19 +01:00
2019-09-04 12:34:02 +02:00
constructor ( ) {
2019-02-22 21:39:10 +01:00
this . changelog = {
2020-01-05 16:11:10 +01:00
"added" : [ [ "Days Ago" , "Added a days ago $daysago placeholder, to check how it works read the guide in the settings" ] ] ,
2019-11-03 22:06:52 +01:00
"improved" : [ [ "New Library Structure & React" , "Restructured my Library and switched to React rendering instead of DOM manipulation" ] ]
2019-02-22 21:39:10 +01:00
} ;
2019-09-04 12:34:02 +02:00
2019-11-14 17:56:26 +01:00
this . patchedModules = {
after : {
UserPopout : "render" ,
AnalyticsContext : "render"
}
2018-12-30 12:01:01 +01:00
} ;
2019-09-04 12:34:02 +02:00
}
2019-01-26 22:45:19 +01:00
2019-09-04 12:34:02 +02:00
initConstructor ( ) {
2018-10-11 10:21:26 +02:00
this . css = `
2019-11-05 10:34:24 +01:00
$ { BDFDB . dotCNS . userpopout + BDFDB . dotCN . userpopoutheadertext } {
2019-11-03 22:06:52 +01:00
margin - bottom : 8 px ;
2018-11-23 16:58:59 +01:00
}
2019-11-03 22:06:52 +01:00
. creationDate + $ { BDFDB . dotCN . userpopoutcustomstatus } {
margin - top : 4 px ;
2018-12-30 12:01:01 +01:00
}
2018-10-11 10:21:26 +02:00
$ { BDFDB . dotCNS . themelight + BDFDB . dotCN . userpopoutheadernormal } . creationDate {
2019-09-04 12:34:02 +02:00
color : # b9bbbe ;
2018-10-11 10:21:26 +02:00
}
2019-01-22 12:22:17 +01:00
$ { BDFDB . dotCNS . themelight + BDFDB . dotCN . userpopoutheader + BDFDB . notCN . userpopoutheadernormal } . creationDate ,
2018-10-11 10:21:26 +02:00
$ { BDFDB . dotCNS . themedark + BDFDB . dotCN . userpopoutheader } . creationDate {
color : hsla ( 0 , 0 % , 100 % , . 6 ) ;
}
$ { BDFDB . dotCNS . themelight + BDFDB . dotCN . userprofiletopsectionnormal } . creationDate {
2019-09-04 12:34:02 +02:00
color : hsla ( 216 , 4 % , 74 % , . 6 ) ;
2018-10-11 10:21:26 +02:00
}
2019-01-22 12:22:17 +01:00
$ { BDFDB . dotCN . themelight } [ class *= 'topSection' ] $ { BDFDB . notCN . userprofiletopsectionnormal } . creationDate ,
2018-10-11 10:21:26 +02:00
$ { BDFDB . dotCN . themedark } [ class *= 'topSection' ] . creationDate {
color : hsla ( 0 , 0 % , 100 % , . 6 ) ;
} ` ;
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
this . defaults = {
settings : {
addInUserPopout : { value : true , description : "Add in User Popouts:" } ,
2019-03-31 09:54:48 +02:00
addInUserProfil : { value : true , description : "Add in User Profile Modal:" } ,
2019-02-22 21:39:10 +01:00
displayTime : { value : true , description : "Display the Time in the Timestamp:" } ,
displayDate : { value : true , description : "Display the Date in the Timestamp:" } ,
cutSeconds : { value : false , description : "Cut off Seconds of the Time:" } ,
forceZeros : { value : false , description : "Force leading Zeros:" } ,
otherOrder : { value : false , description : "Show the Time before the Date:" }
2018-10-11 10:21:26 +02:00
} ,
choices : {
creationDateLang : { value : "$discord" , description : "Creation Date Format:" }
2019-02-22 21:39:10 +01:00
} ,
formats : {
ownFormat : { value : "$hour:$minute:$second, $day.$month.$year" , description : "Own Format:" }
2018-10-11 10:21:26 +02:00
}
} ;
}
2019-01-26 22:45:19 +01:00
2020-02-23 18:55:20 +01:00
getSettingsPanel ( collapseStates = { } ) {
2020-01-17 19:50:31 +01:00
if ( ! window . BDFDB || typeof BDFDB != "object" || ! BDFDB . loaded || ! this . started ) return ;
2019-10-22 19:49:57 +02:00
let settings = BDFDB . DataUtils . get ( this , "settings" ) ;
let choices = BDFDB . DataUtils . get ( this , "choices" ) ;
let formats = BDFDB . DataUtils . get ( this , "formats" ) ;
2020-03-28 07:55:39 +01:00
let settingsPanel , settingsItems = [ ] , innerItems = [ ] ;
2019-11-03 22:06:52 +01:00
2020-03-28 07:55:39 +01:00
for ( let key in settings ) settingsItems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsSaveItem , {
2019-11-03 22:06:52 +01:00
className : BDFDB . disCN . marginbottom8 ,
type : "Switch" ,
plugin : this ,
keys : [ "settings" , key ] ,
label : this . defaults . settings [ key ] . description ,
value : settings [ key ] ,
onChange : ( e , instance ) => {
BDFDB . ReactUtils . forceUpdate ( BDFDB . ReactUtils . findOwner ( BDFDB . ReactUtils . findOwner ( instance , { name : "BDFDB_SettingsPanel" , up : true } ) , { name : "BDFDB_Select" , all : true , noCopies : true } ) ) ;
}
} ) ) ;
2020-03-28 07:55:39 +01:00
settingsItems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormDivider , {
2019-11-03 22:06:52 +01:00
className : BDFDB . disCN . marginbottom8
} ) ) ;
2020-03-28 07:55:39 +01:00
for ( let key in choices ) settingsItems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsSaveItem , {
2019-11-03 22:06:52 +01:00
className : BDFDB . disCN . marginbottom8 ,
type : "Select" ,
plugin : this ,
keys : [ "choices" , key ] ,
label : this . defaults . choices [ key ] . description ,
basis : "70%" ,
value : choices [ key ] ,
options : BDFDB . ObjectUtils . toArray ( BDFDB . ObjectUtils . map ( this . languages , ( lang , id ) => { return { value : id , label : lang . name } } ) ) ,
searchable : true ,
optionRenderer : lang => {
return BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Flex , {
align : BDFDB . LibraryComponents . Flex . Align . CENTER ,
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Flex . Child , {
grow : 0 ,
shrink : 0 ,
basis : "40%" ,
children : lang . label
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Flex . Child , {
grow : 0 ,
shrink : 0 ,
basis : "60%" ,
children : this . getTimestamp ( this . languages [ lang . value ] . id )
} )
]
} ) ;
} ,
valueRenderer : lang => {
return BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Flex , {
align : BDFDB . LibraryComponents . Flex . Align . CENTER ,
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Flex . Child , {
grow : 0 ,
shrink : 0 ,
children : lang . label
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Flex . Child , {
grow : 1 ,
shrink : 0 ,
basis : "70%" ,
children : this . getTimestamp ( this . languages [ lang . value ] . id )
} )
]
} ) ;
}
} ) ) ;
2020-03-28 07:55:39 +01:00
settingsItems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormDivider , {
2019-11-03 22:06:52 +01:00
className : BDFDB . disCN . marginbottom8
} ) ) ;
2020-03-28 07:55:39 +01:00
for ( let key in formats ) settingsItems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsSaveItem , {
2019-11-03 22:06:52 +01:00
className : BDFDB . disCN . marginbottom8 ,
type : "TextInput" ,
plugin : this ,
keys : [ "formats" , key ] ,
label : this . defaults . formats [ key ] . description ,
basis : "70%" ,
value : formats [ key ] ,
onChange : ( e , instance ) => {
BDFDB . ReactUtils . forceUpdate ( BDFDB . ReactUtils . findOwner ( BDFDB . ReactUtils . findOwner ( instance , { name : "BDFDB_SettingsPanel" , up : true } ) , { name : "BDFDB_Select" , all : true , noCopies : true } ) ) ;
}
} ) ) ;
2020-03-28 07:55:39 +01:00
settingsItems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . CollapseContainer , {
2019-11-03 22:06:52 +01:00
title : "Placeholder Guide" ,
dividertop : true ,
2020-02-23 18:55:20 +01:00
collapseStates : collapseStates ,
children : [
"$hour will be replaced with the current hour" ,
"$minute will be replaced with the current minutes" ,
"$second will be replaced with the current seconds" ,
"$msecond will be replaced with the current milliseconds" ,
"$timemode will change $hour to a 12h format and will be replaced with AM/PM" ,
"$year will be replaced with the current year" ,
"$month will be replaced with the current month" ,
"$day will be replaced with the current day" ,
"$monthnameL will be replaced with the monthname in long format based on the Discord Language" ,
"$monthnameS will be replaced with the monthname in short format based on the Discord Language" ,
"$weekdayL will be replaced with the weekday in long format based on the Discord Language" ,
"$weekdayS will be replaced with the weekday in short format based on the Discord Language" ,
"$daysago will be replaced with a string to tell you how many days ago the event occured. For Example: " + BDFDB . LanguageUtils . LanguageStringsFormat ( "ACTIVITY_FEED_USER_PLAYED_DAYS_AGO" , 3 )
] . map ( string => {
2019-11-03 22:06:52 +01:00
return BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormText , {
type : BDFDB . LibraryComponents . FormComponents . FormTextTypes . DESCRIPTION ,
children : string
} ) ;
2020-02-23 18:55:20 +01:00
} )
2019-11-03 22:06:52 +01:00
} ) ) ;
2020-03-28 07:55:39 +01:00
return settingsPanel = BDFDB . PluginUtils . createSettingsPanel ( this , settingsItems ) ;
2018-10-11 10:21:26 +02:00
}
//legacy
load ( ) { }
start ( ) {
2020-01-17 19:50:31 +01:00
if ( ! window . BDFDB ) window . BDFDB = { myPlugins : { } } ;
if ( window . BDFDB && window . BDFDB . myPlugins && typeof window . BDFDB . myPlugins == "object" ) window . BDFDB . myPlugins [ this . getName ( ) ] = this ;
2020-01-21 12:56:26 +01:00
let libraryScript = document . querySelector ( "head script#BDFDBLibraryScript" ) ;
2019-05-26 13:55:26 +02:00
if ( ! libraryScript || ( performance . now ( ) - libraryScript . getAttribute ( "date" ) ) > 600000 ) {
2018-10-11 10:21:26 +02:00
if ( libraryScript ) libraryScript . remove ( ) ;
libraryScript = document . createElement ( "script" ) ;
2019-05-26 13:55:26 +02:00
libraryScript . setAttribute ( "id" , "BDFDBLibraryScript" ) ;
2018-10-11 10:21:26 +02:00
libraryScript . setAttribute ( "type" , "text/javascript" ) ;
2019-10-18 10:56:41 +02:00
libraryScript . setAttribute ( "src" , "https://mwittrien.github.io/BetterDiscordAddons/Plugins/BDFDB.min.js" ) ;
2019-01-17 23:48:29 +01:00
libraryScript . setAttribute ( "date" , performance . now ( ) ) ;
2020-01-14 00:06:07 +01:00
libraryScript . addEventListener ( "load" , _ => { this . initialize ( ) ; } ) ;
2018-10-11 10:21:26 +02:00
document . head . appendChild ( libraryScript ) ;
}
2020-01-17 19:50:31 +01:00
else if ( window . BDFDB && typeof BDFDB === "object" && BDFDB . loaded ) this . initialize ( ) ;
2020-01-14 00:06:07 +01:00
this . startTimeout = setTimeout ( _ => {
2019-11-01 10:27:07 +01:00
try { return this . initialize ( ) ; }
catch ( err ) { console . error ( ` %c[ ${ this . getName ( ) } ]%c ` , "color: #3a71c1; font-weight: 700;" , "" , "Fatal Error: Could not initiate plugin! " + err ) ; }
} , 30000 ) ;
2018-10-11 10:21:26 +02:00
}
initialize ( ) {
2020-01-17 19:50:31 +01:00
if ( window . BDFDB && typeof BDFDB === "object" && BDFDB . loaded ) {
2019-01-22 11:05:54 +01:00
if ( this . started ) return ;
2019-10-22 18:55:25 +02:00
BDFDB . PluginUtils . init ( this ) ;
2019-09-04 12:34:02 +02:00
2019-10-22 18:55:25 +02:00
this . languages = Object . assign ( { "own" : { name : "Own" , id : "own" , integrated : false , dic : false } } , BDFDB . LanguageUtils . languages ) ;
2019-01-26 22:45:19 +01:00
2019-10-22 18:55:25 +02:00
BDFDB . ModuleUtils . forceAllUpdates ( this ) ;
2018-10-11 10:21:26 +02:00
}
2019-11-01 10:14:50 +01:00
else console . error ( ` %c[ ${ this . getName ( ) } ]%c ` , "color: #3a71c1; font-weight: 700;" , "" , "Fatal Error: Could not load BD functions!" ) ;
2018-10-11 10:21:26 +02:00
}
stop ( ) {
2020-01-17 19:50:31 +01:00
if ( window . BDFDB && typeof BDFDB === "object" && BDFDB . loaded ) {
2019-10-22 11:37:23 +02:00
this . stopping = true ;
2019-11-03 22:06:52 +01:00
BDFDB . ModuleUtils . forceAllUpdates ( this ) ;
2019-10-22 18:55:25 +02:00
BDFDB . PluginUtils . clear ( this ) ;
2018-10-11 10:21:26 +02:00
}
}
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
// begin of own functions
2019-01-26 22:45:19 +01:00
2019-11-03 22:06:52 +01:00
processUserPopout ( e ) {
2019-11-05 09:15:23 +01:00
if ( e . instance . props . user && BDFDB . DataUtils . get ( this , "settings" , "addInUserPopout" ) ) {
2019-11-03 22:06:52 +01:00
let [ children , index ] = BDFDB . ReactUtils . findChildren ( e . returnvalue , { name : "CustomStatus" } ) ;
if ( index > - 1 ) this . injectDate ( children , 2 , e . instance . props . user ) ;
2019-02-22 21:39:10 +01:00
}
}
2019-11-03 22:06:52 +01:00
processAnalyticsContext ( e ) {
2019-11-11 10:48:30 +01:00
if ( typeof e . returnvalue . props . children == "function" && e . instance . props . section == "Profile Modal" && BDFDB . DataUtils . get ( this , "settings" , "addInUserProfil" ) ) {
2019-11-03 22:06:52 +01:00
let renderChildren = e . returnvalue . props . children ;
2019-11-17 12:34:38 +01:00
e . returnvalue . props . children = ( ... args ) => {
let renderedChildren = renderChildren ( ... args ) ;
2019-11-21 20:55:37 +01:00
let [ children , index ] = BDFDB . ReactUtils . findChildren ( renderedChildren , { name : [ "DiscordTag" , "ColoredFluxTag" ] } ) ;
2019-11-03 22:06:52 +01:00
if ( index > - 1 ) this . injectDate ( children , 1 , children [ index ] . props . user ) ;
return renderedChildren ;
} ;
2019-02-22 21:39:10 +01:00
}
}
2019-11-03 22:06:52 +01:00
injectDate ( children , index , user ) {
children . splice ( index , 0 , BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextScroller , {
className : "creationDate " + BDFDB . disCN . textrow ,
children : this . labels . createdat _text . replace ( "{{time}}" , this . getTimestamp ( this . languages [ BDFDB . DataUtils . get ( this , "choices" , "creationDateLang" ) ] . id , user . createdAt ) )
} ) ) ;
2018-10-11 10:21:26 +02:00
}
2019-01-26 22:45:19 +01:00
2019-02-22 21:39:10 +01:00
getTimestamp ( languageid , time ) {
let timeobj = time ? time : new Date ( ) ;
if ( typeof time == "string" ) timeobj = new Date ( time ) ;
if ( timeobj . toString ( ) == "Invalid Date" ) timeobj = new Date ( parseInt ( time ) ) ;
if ( timeobj . toString ( ) == "Invalid Date" ) return ;
2019-10-22 19:49:57 +02:00
let settings = BDFDB . DataUtils . get ( this , "settings" ) , timestring = "" ;
2019-02-22 21:39:10 +01:00
if ( languageid != "own" ) {
let timestamp = [ ] ;
if ( settings . displayDate ) timestamp . push ( timeobj . toLocaleDateString ( languageid ) ) ;
if ( settings . displayTime ) timestamp . push ( settings . cutSeconds ? this . cutOffSeconds ( timeobj . toLocaleTimeString ( languageid ) ) : timeobj . toLocaleTimeString ( languageid ) ) ;
if ( settings . otherOrder ) timestamp . reverse ( ) ;
timestring = timestamp . length > 1 ? timestamp . join ( ", " ) : ( timestamp . length > 0 ? timestamp [ 0 ] : "" ) ;
if ( timestring && settings . forceZeros ) timestring = this . addLeadingZeros ( timestring ) ;
}
else {
2019-10-22 20:16:05 +02:00
let ownformat = BDFDB . DataUtils . get ( this , "formats" , "ownFormat" ) ;
2019-10-24 11:47:57 +02:00
languageid = BDFDB . LanguageUtils . getLanguage ( ) . id ;
2020-01-05 16:11:10 +01:00
let hour = timeobj . getHours ( ) , minute = timeobj . getMinutes ( ) , second = timeobj . getSeconds ( ) , msecond = timeobj . getMilliseconds ( ) , day = timeobj . getDate ( ) , month = timeobj . getMonth ( ) + 1 , timemode = "" , daysago = Math . round ( ( new Date ( ) - timeobj ) / ( 1000 * 60 * 60 * 24 ) ) ;
2019-02-22 21:39:10 +01:00
if ( ownformat . indexOf ( "$timemode" ) > - 1 ) {
timemode = hour >= 12 ? "PM" : "AM" ;
hour = hour % 12 ;
hour = hour ? hour : 12 ;
}
timestring = ownformat
. replace ( "$hour" , settings . forceZeros && hour < 10 ? "0" + hour : hour )
. replace ( "$minute" , minute < 10 ? "0" + minute : minute )
. replace ( "$second" , second < 10 ? "0" + second : second )
2019-09-24 09:48:01 +02:00
. replace ( "$msecond" , settings . forceZeros ? ( msecond < 10 ? "00" + msecond : ( msecond < 100 ? "0" + msecond : msecond ) ) : msecond )
2019-02-22 21:39:10 +01:00
. replace ( "$timemode" , timemode )
. replace ( "$weekdayL" , timeobj . toLocaleDateString ( languageid , { weekday : "long" } ) )
. replace ( "$weekdayS" , timeobj . toLocaleDateString ( languageid , { weekday : "short" } ) )
. replace ( "$monthnameL" , timeobj . toLocaleDateString ( languageid , { month : "long" } ) )
. replace ( "$monthnameS" , timeobj . toLocaleDateString ( languageid , { month : "short" } ) )
2020-01-06 15:06:06 +01:00
. replace ( "$daysago" , daysago > 0 ? BDFDB . LanguageUtils . LanguageStringsFormat ( "ACTIVITY_FEED_USER_PLAYED_DAYS_AGO" , daysago ) : BDFDB . LanguageUtils . LanguageStrings . SEARCH _SHORTCUT _TODAY )
2019-02-22 21:39:10 +01:00
. replace ( "$day" , settings . forceZeros && day < 10 ? "0" + day : day )
. replace ( "$month" , settings . forceZeros && month < 10 ? "0" + month : month )
2020-01-05 16:11:10 +01:00
. replace ( "$year" , timeobj . getFullYear ( ) )
. trim ( ) . split ( " " ) . filter ( n => n ) . join ( " " ) ;
2019-02-22 21:39:10 +01:00
}
2018-10-11 10:21:26 +02:00
return timestring ;
}
2019-01-26 22:45:19 +01:00
2019-02-22 21:39:10 +01:00
cutOffSeconds ( timestring ) {
2019-11-03 22:06:52 +01:00
return timestring . replace ( /(.{1,2}:.{1,2}):.{1,2}(.*)/ , "$1$2" ) . replace ( /(.{1,2}\..{1,2})\..{1,2}(.*)/ , "$1$2" ) . replace ( /(.{1,2} h .{1,2} min) .{1,2} s(.*)/ , "$1$2" ) ;
2019-02-22 21:39:10 +01:00
}
2018-10-11 10:21:26 +02:00
addLeadingZeros ( timestring ) {
2018-12-30 12:01:01 +01:00
let chararray = timestring . split ( "" ) ;
let numreg = /[0-9]/ ;
for ( let i = 0 ; i < chararray . length ; i ++ ) {
2018-10-11 10:21:26 +02:00
if ( ! numreg . test ( chararray [ i - 1 ] ) && numreg . test ( chararray [ i ] ) && ! numreg . test ( chararray [ i + 1 ] ) ) chararray [ i ] = "0" + chararray [ i ] ;
}
2019-02-22 21:39:10 +01:00
2018-10-11 10:21:26 +02:00
return chararray . join ( "" ) ;
}
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
setLabelsByLanguage ( ) {
2019-10-24 11:47:57 +02:00
switch ( BDFDB . LanguageUtils . getLanguage ( ) . id ) {
2018-10-11 10:21:26 +02:00
case "hr" : //croatian
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Izrađen {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "da" : //danish
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Oprettet den {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "de" : //german
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Erstellt am {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "es" : //spanish
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Creado el {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "fr" : //french
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Créé le {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "it" : //italian
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Creato il {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "nl" : //dutch
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Gemaakt op {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "no" : //norwegian
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Opprettet på {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "pl" : //polish
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Utworzono {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "pt-BR" : //portuguese (brazil)
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Criado em {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "fi" : //finnish
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Luotu {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "sv" : //swedish
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Skapat den {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "tr" : //turkish
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Oluşturma tarihi {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "cs" : //czech
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Vytvořeno dne {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "bg" : //bulgarian
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Създадена на {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "ru" : //russian
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Создано {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "uk" : //ukrainian
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Створено {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "ja" : //japanese
return {
2019-04-04 21:16:49 +02:00
createdat _text : "{{time}} 作成日"
2018-10-11 10:21:26 +02:00
} ;
case "zh-TW" : //chinese (traditional)
return {
2019-04-04 21:16:49 +02:00
createdat _text : "創建於 {{time}}"
2018-10-11 10:21:26 +02:00
} ;
case "ko" : //korean
return {
2019-04-04 21:16:49 +02:00
createdat _text : "{{time}} 생성 일"
2018-10-11 10:21:26 +02:00
} ;
default : //default: english
return {
2019-04-04 21:16:49 +02:00
createdat _text : "Created on {{time}}"
2018-10-11 10:21:26 +02:00
} ;
}
}
}