From 30303a3ad0d0f31d93c25f42bfd10d70e8277b72 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 10 Dec 2022 22:27:08 +0100 Subject: Update --- app/banner.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'app/banner.js') diff --git a/app/banner.js b/app/banner.js index 7401572..dc1a06b 100644 --- a/app/banner.js +++ b/app/banner.js @@ -116,9 +116,9 @@ async function refreshBanner(offline, french) { ${data['id'] === "unknown" ? ` - Unknown member (${data['system']['name']} System) + ${french ? "Membre inconnu" : "Unknown member"} (${data['system']['name']} System) ` : data['id'] === "fusion" ? (data['name'] === "fusion" ? ` - Multiple merged members + ${french ? "Plusieurs membres fusionnés" : "Multiple merged members"} ` : data['name']) : data['name']} @@ -128,26 +128,26 @@ async function refreshBanner(offline, french) { ${data['badges'].length === 0 ? " " : ""} -
+
${french ? `Préfixe${data['prefixes'].length > 1 ? 's' : ''} ` : `Prefix${data['prefixes'].length > 1 ? 'es' : ''}`}:
${data['prefixes'].join(', ')}
- + ${french ? "" : ` ${french ? "Pronoms :" : "Pronouns:"}
${data['id'] === "fusion" ? "she/her" : data['pronouns']} -
+
`} ${!data['median'] && data['id'] !== "unknown" ? ` ${data["id"] === "fusion" ? ` - Fronting since:
+ ${french ? "Fronte depuis " : "Fronting since"}:
${data['last_fronted'] ? ` ${data['last_fronted']['now'] ? ` ${data['last_fronted']['relative']}
  ` : ` - Not fronting
  + ${french ? "Pas au front" : "Not fronting"}
  `} - ` : `Not fronting
 `}` : ` + ` : `${french ? "Pas au front" : "Not fronting"}
 `}` : ` ${french ? "Front :" : "Last fronted:"}
${data['last_fronted'] ? ` ${data['last_fronted']['now'] ? ` @@ -162,26 +162,26 @@ async function refreshBanner(offline, french) { ` : ''} ${data['id'] !== "fusion" ? ` - ${data['id'] === "unknown" ? "Species: best to ask" : ` - Species: + ${data['id'] === "unknown" ? (french ? "Espèce : préférez demander" : "Species: best to ask") : ` + ${french ? "Espèce :" : "Species:"} ${data['species'].map(species => ` ${species['name']} `).join("")}`} ` : ''} ${data['id'] !== "fusion" ? ` - System: - ${data['system']['name']} + ${french ? "Position :" : "Location:"} + ${data['system']['page'] ? ` ${data['system']['name']}` : ` ${data['system']['name']}`} ${data['system']['subsystem'] ? ` -
Subsystem: ${data['system']['subsystem']['name']} - ` : data['system']['temporary'] ? '
(temporary)' : ''} +
${french ? "Sous-système :" : "Subsystem:"} ${data['system']['subsystem']['name']} + ` : data['system']['temporary'] ? (french ? '
(temporaire)' : '
(temporary)') : ''}
` : ''}
${data['id'] !== "unknown" && data['id'] !== "fusion" ? `
- ${french ? (data['relations']['marefriends'].length > 1 ? 'Partenaires ' : 'Partenaire ') : `Marefriend${data['relations']['marefriends'].length > 1 ? 's' : ''}`}: ${data['relations']['marefriends'].length > 1 ? '
' : ''} + ${french ? (data['relations']['marefriends'].length > 1 ? 'Copines ' : 'Copine ') : `Marefriend${data['relations']['marefriends'].length > 1 ? 's' : ''}`}: ${data['relations']['marefriends'].length > 1 ? '
' : ''} ${data['relations']['marefriends'].map(relation => ` `).join(``)} ${data['relations']['marefriends'].length === 0 ? '-' : ''} @@ -194,7 +194,7 @@ async function refreshBanner(offline, french) {
${data['little'] ? ` - ${french ? (data['relations']['sisters'].length > 1 ? 'Caretakers ' : 'Caretaker ') : `Caretaker${data['relations']['caretakers'].length > 1 ? 's' : ''}`}: ${data['relations']['caretakers'].length > 1 ? '
' : ''} + ${french ? (data['relations']['sisters'].length > 1 ? 'Gardiens ' : 'Gardien ') : `Caretaker${data['relations']['caretakers'].length > 1 ? 's' : ''}`}: ${data['relations']['caretakers'].length > 1 ? '
' : ''} ${data['relations']['caretakers'].map(relation => ` `).join(``)} ${data['relations']['caretakers'].length === 0 ? '-' : ''} -- cgit