fix missing locales (#188)
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 21s

This commit is contained in:
Mylloon 2024-10-14 20:58:59 +02:00
parent b873842cac
commit 937627b879
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 12 additions and 6 deletions

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"
} }