diff --git a/README.md b/README.md index c69c8fd..7a8bce1 100644 --- a/README.md +++ b/README.md @@ -58,22 +58,22 @@ Take a look at all the features and discover the possibilities! |-------------------|--------------------------|--------------------------------| |English |djj123dj |🟢 Up To Date | |Dutch |djj123dj |🟢 Up To Date | -|French |sankedev |🟠 Will be updated next version | +|French |sankedev |🟢 Up To Date | |Romanian |sankedev |🟢 Up To Date | -|Spanish |redactado & josuens |🟠 Will be updated next version | +|Spanish |redactado & josuens |🟢 Up To Date | |German |david.3 |🟢 Up To Date | -|Italian |maurizio26 |🟠 Will be updated next version | +|Italian |maurizio26 |🟢 Up To Date | |Czech |spyeye_ |🟢 Up To Date | |Arabic |Sarcastic#9318 |🔴 Outdated | |Danish |.the_gamer |🟢 Up To Date | -|Portuguese |quiradon |🟠 Will be updated next version | +|Portuguese |quiradon |🔴 Outdated | |Russian |apexo & ander |🟢 Up To Date | |Ukrainian |ander |🟢 Up To Date | |Turkish |Hydra#0009 |🔴 Outdated | -|Polish |mkevas |🟠 Will be updated next version | +|Polish |mkevas |🟢 Up To Date | |Slovenian |n1kkec |🔴 Outdated | |Thai |modshd |🟢 Up To Date | -|Norwegian |noonenook |🟠 Will be updated next version | +|Norwegian |noonenook |🟢 Up To Date | |Greek |stefanos__. |🔴 Outdated | ## links diff --git a/core/utils/getButton.js b/core/utils/getButton.js index 36348a5..06cfd08 100644 --- a/core/utils/getButton.js +++ b/core/utils/getButton.js @@ -2,22 +2,26 @@ const discord = require("discord.js") const bot = require("../../index") const config = bot.config const l = bot.language +const b = discord.ButtonStyle -/**@returns {"DANGER"|"SUCCESS"|"PRIMARY"|"SECONDARY"} */ +/** + * @param {String} color + * @returns {"DANGER"|"SUCCESS"|"PRIMARY"|"SECONDARY"} */ const getColor = (color) => { - const b = discord.ButtonStyle - if (color.toLowerCase() == "red"){ - return b.Danger - }else if (color.toLowerCase() == "green"){ - return b.Success - }else if (color.toLowerCase() == "blue" || color.toLowerCase() == "blurple"){ - return b.Primary - }else if (color.toLowerCase() == "black" || color.toLowerCase() == "gray" || color.toLowerCase() == "grey"){ - return b.Secondary - }else if (color == "DANGER" || color == "SECONDARY" || color == "SUCCESS" || color == "PRIMARY"){ - return color - }else if (color.toLowerCase() == "none" || color.toLowerCase() == "false" || color.toLowerCase() == ""){ - return b.Secondary + if (color){ + if (color.toLowerCase() == "red"){ + return b.Danger + }else if (color.toLowerCase() == "green"){ + return b.Success + }else if (color.toLowerCase() == "blue" || color.toLowerCase() == "blurple"){ + return b.Primary + }else if (color.toLowerCase() == "black" || color.toLowerCase() == "gray" || color.toLowerCase() == "grey"){ + return b.Secondary + }else if (color.toUpperCase() == "DANGER" || color.toUpperCase() == "SECONDARY" || color.toUpperCase() == "SUCCESS" || color.toUpperCase() == "PRIMARY"){ + return color + }else if (color.toLowerCase() == "none" || color.toLowerCase() == "false" || color.toLowerCase() == ""){ + return b.Secondary + }else return b.Secondary }else return b.Secondary } diff --git a/language/french.json b/language/french.json index 223e397..c58cc11 100644 --- a/language/french.json +++ b/language/french.json @@ -99,37 +99,37 @@ "available":"La transcript est disponible ici" }, "stats":{ - "globalTitle":"Global Stats", - "ticketTitle":"Ticket Stats for {0}", - "userTitle":"User Stats for {0}", - "systemTitle":"System Stats", - "versionTitle":"Bot Version", + "globalTitle":"Statistiques mondiales", + "ticketTitle":"Statistiques des tickets pour {0}", + "userTitle":"Statistiques utilisateur pour {0}", + "systemTitle":"Statistiques du système", + "versionTitle":"Version du bot", - "ticketsCreated":"Tickets Created", - "ticketsClosed":"Tickets Closed", - "ticketsDeleted":"Tickets Deleted", - "ticketsReopened":"Tickets Reopened", - "ticketsAutoclosed":"Tickets Autoclosed", - "transcriptsCreated":"Transcripts Created", - "startupDate":"Startup Date", - "latestUpdate":"Latest Update", - "ticketCreatedOn":"Ticket Created On", - "ticketCreatedBy":"Ticket Created By", - "messagesSent":"Messages Sent", + "ticketsCreated":"Tickets créés", + "ticketsClosed":"Tickets fermés", + "ticketsDeleted":"Tickets supprimés", + "ticketsReopened":"Tickets rouverts", + "ticketsAutoclosed":"Tickets fermés automatiquement", + "transcriptsCreated":"Transcriptions créées", + "startupDate":"Date de démarrage du bot", + "latestUpdate":"Dernière mise à jour", + "ticketCreatedOn":"Ticket créé le", + "ticketCreatedBy":"Ticket créé par", + "messagesSent":"Messages envoyés", "status":"Status", "participants":"Participants", "role":"Role", "switches":{ - "globalAdmin":"Global Admin", - "ticketAdmin":"Ticket Admin", - "member":"Member", - "open":"Open", - "reopened":"Reopened", - "closed":"Closed", - "autoclosed":"Autoclosed" + "globalAdmin":"Administrateur global", + "ticketAdmin":"Administrateur des Tickets", + "member":"Membre", + "open":"Ouvrir", + "reopened":"Rouvert", + "closed":"Fermée", + "autoclosed":"fermeture automatique" }, - "errorUserNotFound":"This user can't be found in the stats database!" + "errorUserNotFound":"Cet utilisateur est introuvable dans la base de données de statistiques!" } } diff --git a/language/indonesian.json b/language/indonesian.json index 00252b1..51cfb82 100644 --- a/language/indonesian.json +++ b/language/indonesian.json @@ -99,37 +99,37 @@ "available":"Transkrip tersedia di sini" }, "stats":{ - "globalTitle":"Global Stats", - "ticketTitle":"Ticket Stats for {0}", - "userTitle":"User Stats for {0}", - "systemTitle":"System Stats", - "versionTitle":"Bot Version", + "globalTitle":"Statistik Global", + "ticketTitle":"Status Tiket Untuk {0}", + "userTitle":"Status Pengguna Untuk {0}", + "systemTitle":"Status Sistem", + "versionTitle":"Versi Robot", - "ticketsCreated":"Tickets Created", - "ticketsClosed":"Tickets Closed", - "ticketsDeleted":"Tickets Deleted", - "ticketsReopened":"Tickets Reopened", - "ticketsAutoclosed":"Tickets Autoclosed", - "transcriptsCreated":"Transcripts Created", - "startupDate":"Startup Date", - "latestUpdate":"Latest Update", - "ticketCreatedOn":"Ticket Created On", - "ticketCreatedBy":"Ticket Created By", - "messagesSent":"Messages Sent", + "ticketsCreated":"Tiket Dibuat", + "ticketsClosed":"Tiket Ditutup", + "ticketsDeleted":"Tiket Dihapus", + "ticketsReopened":"Tiket Dibuka Kembali", + "ticketsAutoclosed":"Tiket Ditutup Otomatis", + "transcriptsCreated":"Transkrip Dibuat", + "startupDate":"Tanggal Mulai", + "latestUpdate":"Pembaruan Terbaru", + "ticketCreatedOn":"Tiket Dibuat Pada", + "ticketCreatedBy":"Tiket Dibuat Oleh", + "messagesSent":"Pesan Terkirim", "status":"Status", - "participants":"Participants", - "role":"Role", + "participants":"Partisipan", + "role":"Peran", "switches":{ - "globalAdmin":"Global Admin", + "globalAdmin":"Admin Global", "ticketAdmin":"Ticket Admin", - "member":"Member", - "open":"Open", - "reopened":"Reopened", - "closed":"Closed", - "autoclosed":"Autoclosed" + "member":"Anggota", + "open":"Buka", + "reopened":"Dibuka kembali", + "closed":"Ditutup", + "autoclosed":"Ditutup Otomatis" }, - "errorUserNotFound":"This user can't be found in the stats database!" + "errorUserNotFound":"Pengguna ini tidak dapat ditemukan dalam basis data statistik!" } } \ No newline at end of file diff --git a/language/italian.json b/language/italian.json index 965344c..17fa3ad 100644 --- a/language/italian.json +++ b/language/italian.json @@ -98,38 +98,38 @@ "estimated":"Tempo estimato", "available":"La trascrizione è disponibile qui" }, - "stats":{ - "globalTitle":"Global Stats", - "ticketTitle":"Ticket Stats for {0}", - "userTitle":"User Stats for {0}", - "systemTitle":"System Stats", - "versionTitle":"Bot Version", + "stats": { + "globalTitle": "Statistiche Globali", + "ticketTitle": "Statistiche Ticket per {0}", + "userTitle": "Statistiche Utenti per {0}", + "systemTitle": "Sistema Statistiche", + "versionTitle": "Versione Bot", - "ticketsCreated":"Tickets Created", - "ticketsClosed":"Tickets Closed", - "ticketsDeleted":"Tickets Deleted", - "ticketsReopened":"Tickets Reopened", - "ticketsAutoclosed":"Tickets Autoclosed", - "transcriptsCreated":"Transcripts Created", - "startupDate":"Startup Date", - "latestUpdate":"Latest Update", - "ticketCreatedOn":"Ticket Created On", - "ticketCreatedBy":"Ticket Created By", - "messagesSent":"Messages Sent", - "status":"Status", - "participants":"Participants", - "role":"Role", + "ticketsCreated": "Tickets Creato", + "ticketsClosed": "Tickets Chiuso", + "ticketsDeleted": "Tickets Eliminato", + "ticketsReopened": "Tickets Riaperto", + "ticketsAutoclosed": "Tickets Chiuso Automaticamente", + "transcriptsCreated": "Transcrizione Creata", + "startupDate": "Data Inizio", + "latestUpdate": "Ultimo Update", + "ticketCreatedOn": "Ticket Creato Su", + "ticketCreatedBy": "Ticket Creato Da", + "messagesSent": "Messaggi Inviati", + "status": "Stato", + "participants": "Partecipanti", + "role": "Ruolo", - "switches":{ - "globalAdmin":"Global Admin", - "ticketAdmin":"Ticket Admin", - "member":"Member", - "open":"Open", - "reopened":"Reopened", - "closed":"Closed", - "autoclosed":"Autoclosed" + "switches": { + "globalAdmin": "Amministratore Globale", + "ticketAdmin": "Amministratore Ticket", + "member": "Membro", + "open": "Aperto", + "reopened": "Riaperto", + "closed": "Chiuso", + "autoclosed": "Chiuso Automaticamente" }, - "errorUserNotFound":"This user can't be found in the stats database!" + "errorUserNotFound": "Questo utente non può essere trovato nel database delle statistiche!" } } \ No newline at end of file diff --git a/language/polish.json b/language/polish.json index 447f85d..653125b 100644 --- a/language/polish.json +++ b/language/polish.json @@ -99,37 +99,37 @@ "available":"Transkrypcja jest dostępna tutaj" }, "stats":{ - "globalTitle":"Global Stats", - "ticketTitle":"Ticket Stats for {0}", - "userTitle":"User Stats for {0}", - "systemTitle":"System Stats", - "versionTitle":"Bot Version", + "globalTitle":"Globalne Statystyki", + "ticketTitle":"Statystyki biletów dla {0}", + "userTitle":"Statystyki użytkowników dla {0}", + "systemTitle":"Statystyki systemu", + "versionTitle":"Wersja bota", - "ticketsCreated":"Tickets Created", - "ticketsClosed":"Tickets Closed", - "ticketsDeleted":"Tickets Deleted", - "ticketsReopened":"Tickets Reopened", - "ticketsAutoclosed":"Tickets Autoclosed", - "transcriptsCreated":"Transcripts Created", - "startupDate":"Startup Date", - "latestUpdate":"Latest Update", - "ticketCreatedOn":"Ticket Created On", - "ticketCreatedBy":"Ticket Created By", - "messagesSent":"Messages Sent", + "ticketsCreated":"Bilety stworzone", + "ticketsClosed":"Bilety zamknięte", + "ticketsDeleted":"Bilety skasowane", + "ticketsReopened":"Bilety otwarte ponownie", + "ticketsAutoclosed":"Bilety automatycznie zamknięte", + "transcriptsCreated":"Utworzono transkrypcje", + "startupDate":"Data uruchomienia", + "latestUpdate":"Najnowsza aktualizacja", + "ticketCreatedOn":"Bilet został utworzony dnia", + "ticketCreatedBy":"Bilet stworzony przez", + "messagesSent":"Wiadomość wysłana", "status":"Status", - "participants":"Participants", - "role":"Role", + "participants":"Uczestnicy", + "role":"Rola", "switches":{ - "globalAdmin":"Global Admin", - "ticketAdmin":"Ticket Admin", - "member":"Member", - "open":"Open", - "reopened":"Reopened", - "closed":"Closed", - "autoclosed":"Autoclosed" + "globalAdmin":"Globalny administrator", + "ticketAdmin":"Admin biletowy", + "member":"Użytkownik", + "open":"Otwarte", + "reopened":"Otwarte ponownie", + "closed":"Zamknięte", + "autoclosed":"Automatycznie zamknięte" }, - "errorUserNotFound":"This user can't be found in the stats database!" + "errorUserNotFound":"Tego użytkownika nie można znaleźć w bazie statystyk!" } } \ No newline at end of file diff --git a/language/spanish.json b/language/spanish.json index eb663fd..4ff1c63 100644 --- a/language/spanish.json +++ b/language/spanish.json @@ -99,37 +99,37 @@ "available":"La transcripción estará disponible aquí" }, "stats":{ - "globalTitle":"Global Stats", - "ticketTitle":"Ticket Stats for {0}", - "userTitle":"User Stats for {0}", - "systemTitle":"System Stats", - "versionTitle":"Bot Version", + "globalTitle":"Estadísticas Globales", + "ticketTitle":"Estadísitcas para el ticket {0}", + "userTitle":"Estadísticas para el usuario {0}", + "systemTitle":"Estadísticas del sistema", + "versionTitle":"Versión del bot", - "ticketsCreated":"Tickets Created", - "ticketsClosed":"Tickets Closed", - "ticketsDeleted":"Tickets Deleted", - "ticketsReopened":"Tickets Reopened", - "ticketsAutoclosed":"Tickets Autoclosed", - "transcriptsCreated":"Transcripts Created", - "startupDate":"Startup Date", - "latestUpdate":"Latest Update", - "ticketCreatedOn":"Ticket Created On", - "ticketCreatedBy":"Ticket Created By", - "messagesSent":"Messages Sent", - "status":"Status", - "participants":"Participants", - "role":"Role", + "ticketsCreated":"Tickets Creados", + "ticketsClosed":"Tickets Cerrados", + "ticketsDeleted":"Tickets Eliminados", + "ticketsReopened":"Tickets Reabiertos", + "ticketsAutoclosed":"Tickets Cerrados automáticamente", + "transcriptsCreated":"Transcripciones Creadas", + "startupDate":"Fecha de Inicio", + "latestUpdate":"Última Actualización", + "ticketCreatedOn":"Ticket creado el", + "ticketCreatedBy":"Ticket creado por", + "messagesSent":"Mensajes enviados", + "status":"Estado", + "participants":"Participantes", + "role":"Rol", "switches":{ - "globalAdmin":"Global Admin", - "ticketAdmin":"Ticket Admin", - "member":"Member", - "open":"Open", - "reopened":"Reopened", - "closed":"Closed", - "autoclosed":"Autoclosed" + "globalAdmin":"Admin Global", + "ticketAdmin":"Admin del Ticket", + "member":"Miembro", + "open":"Abierto", + "reopened":"Reabierto", + "closed":"Cerrado", + "autoclosed":"Cerrado automáticamente" }, - "errorUserNotFound":"This user can't be found in the stats database!" + "errorUserNotFound":"¡Este usuario no pudo ser encontrado en la base de datos de estadísitcas!" } } \ No newline at end of file