Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Full page calendar not picking language

joseeduardot premium asked 4 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 4 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

  • ForumUser: Premium
  • 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