Full page calendar not picking language


Topic: Full page calendar not picking language

joseeduardot pro premium asked 5 years ago

Expected behavior

Actual behavior

Resources (screenshotenter image description heres, code snippets etc.)

import MDBFullCalendar from 'mdb-react-calendar';
import { addHours, addDays, addWeeks, startOfWeek } from 'date-fns';
import { Grid, Row, Col } from 'react-bootstrap';
import './style.css';
import Button from '../../components/CustomButton/CustomButton.jsx';
import { Form, Input, Select, FileInput } from '@rocketseat/unform';
import moment from 'moment';
import PtBr from 'date-fns/locale/pt-BR';

...

this.handleTasksUpdate(e)} locale={PtBr} addTaskTitle={"Adicionar evento"} editTaskTitle={"Editar evento"} controlLabels={['Hoje', 'Mês', 'Semana', 'Lista']} modalControlLabels={["Remover","Fechar","Salvar"]}/>


Piotr Glejzer staff answered 5 years ago

Hi,

I already tested it and it's working.

  <MDBFullCalendar
    controlLabels={['Dziś', 'Miesiąc', 'Tydzień', 'Lista']}
    modalControlLabels={['Usuń', 'Do Tyłu', 'Zrób to']}
    modalFormLabels={['Tytuł', 'Start', 'Koniec', 'Kolor']}
    tasks={this.state.tasks}
  />

enter image description here


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: 4.25.0
  • Device: Razer Blade Pro
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No