Skip to content

Commit

Permalink
Agregar labels para salas
Browse files Browse the repository at this point in the history
  • Loading branch information
arendondiosa committed Jun 3, 2024
1 parent e475546 commit a7d974f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/app/[lang]/schedule/components/Event.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ import React from 'react';
import { Col, Row } from 'react-bootstrap';
import { faLocationDot } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { useI18n } from '@/contexts/I18nContext';

const Event = ({ talk, event, speakers, type, size, lang, index }) => {
const i18nDictionary = useI18n();

return (
<Col
xs={12}
Expand Down Expand Up @@ -55,11 +58,13 @@ const Event = ({ talk, event, speakers, type, size, lang, index }) => {
{talk?.spoken_language && event?.room && (
<>
<Col xs={12} md={6} className="event-description right">
{talk?.spoken_language}
{talk?.spoken_language &&
i18nDictionary?.sections?.schedule?.language[talk?.spoken_language]}
</Col>
<Col xs={12} md={6} className="event-description left">
<span>
<FontAwesomeIcon icon={faLocationDot} /> {event?.room || ''}
<FontAwesomeIcon icon={faLocationDot} />{' '}
{event?.room && i18nDictionary?.sections?.schedule?.room[event?.room]}
</span>
</Col>
</>
Expand Down
11 changes: 10 additions & 1 deletion src/data/dictionaries/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@
"description": "PyCon Colombia can be your platform to gain brand recognition, take leads and recruit from an audience of highly skilled professionals!"
},
"schedule": {
"title": "Schedule"
"title": "Schedule",
"room": {
"main": "Main",
"aux_1": "Auxiliary Room 1",
"aux_2": "Auxiliary Room 2"
},
"language": {
"english": "English",
"spanish": "Spanish"
}
}
},
"languages": {
Expand Down
11 changes: 10 additions & 1 deletion src/data/dictionaries/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@
"description": "PyCon Colombia can be your platform to gain brand recognition, take leads and recruit from an audience of highly skilled professionals!"
},
"schedule": {
"title": "Cronograma"
"title": "Cronograma",
"room": {
"main": "Sala Principal",
"aux_1": "Sala Auxiliar 1",
"aux_2": "Sala Auxiliar 2"
},
"language": {
"english": "Inglés",
"spanish": "Español"
}
}
},
"languages": {
Expand Down

0 comments on commit a7d974f

Please sign in to comment.