chore: merge branch dev to main #195

Merged
Anri merged 18 commits from dev into main 2024-10-14 23:41:43 +02:00
3 changed files with 12 additions and 6 deletions
Showing only changes of commit 937627b879 - Show all commits

View file

@ -117,11 +117,11 @@ export default async (message: Message, client: Client) => {
let files = ""; let files = "";
quoted_post.attachments.forEach((file) => (files += `[${file.name}](${file.url}), `)); quoted_post.attachments.forEach((file) => (files += `[${file.name}](${file.url}), `));
embed.addFields({ embed.addFields({
// TODO: Don't pluralize when there is only one file. name:
quoted_post.attachments.size > 1
? loc.get("e_attachements")
: loc.get("e_attachement"),
// TODO: Locales
// https://git.mylloon.fr/ConfrerieDuKassoulait/Botanique/issues/188
name: "Fichiers joints",
// TODO: Check if don't exceed char limit, if yes, split // TODO: Check if don't exceed char limit, if yes, split
// files into multiples field. // files into multiples field.
value: `${files.slice(0, -2)}.`, value: `${files.slice(0, -2)}.`,

View file

@ -173,5 +173,8 @@
"c_repeat6": "enabled", "c_repeat6": "enabled",
"e_trackstart1": "Asked by", "e_trackstart1": "Asked by",
"e_trackstart2": "Duration :" "e_trackstart2": "Duration :",
"e_attachement": "Attachement",
"e_attachements": "Attachements"
} }

View file

@ -173,5 +173,8 @@
"c_repeat6": "activé", "c_repeat6": "activé",
"e_trackstart1": "Demandé par", "e_trackstart1": "Demandé par",
"e_trackstart2": "Durée :" "e_trackstart2": "Durée :",
"e_attachement": "Fichier joint",
"e_attachements": "Fichiers joint"
} }