Ajoute un attribut sur les emojis

fix #2136
pull/2139/head
Johan Girod 2022-05-10 12:27:21 +02:00
parent 552f64eb1f
commit 37f9b5844e
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ type PropType = {
// - using a real React component works better with the translation scripts
export default function Emoji({ emoji, alt, title }: PropType) {
const language = useTranslation().i18n.language
alt ??= emoji
const siteUrl =
language === 'fr'
? import.meta.env.VITE_FR_BASE_URL