Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74765

How to set syncfusion components pt-BR

$
0
0

I am having difficulty understanding how to define the internationalization and globalization of the Angular Synfusion components.

In stackoverflow in Portuguese nobody can help me with something that I believe is simple, so I'm asking this here.

At the moment I'm using the Angular Schedule component, it's all in English and I want it all in Portuguese.

The only thing I need is to understand what I actually do to make this work, as I looked in the documentation and could not figure out which files I need to change to set.

It asks to configure the file system.config.js but this file does not exist in my Angular project.

  1. Set the locale from en-US to pt-BR on all components and time format.

https://ej2.syncfusion.com/angular/documentation/schedule/localization/#globalization

https://cdn.syncfusion.com/js/assets/i18n/ej.culture.pt-BR.min.js

template.html:

<!-- Setting the locale to the value 'pt-BR' is not enough. -->

<ejs-schedule #scheduleObj width='100%' height='500px' locale="pt-BR" [currentView]="currentView" [selectedDate]="selectedDate"
    [group]="group" [eventSettings]="eventSettings" (actionComplete)="onActionComplete($event)">
    <e-resources>
        <e-resource field='salaId' title='Selecione a sala' [dataSource]='salasAtendimento'
            [allowMultiple]='allowMultiple' name='Salas' textField='nome' idField='id' colorField='color'>
        </e-resource>
        <e-resource field='profissionalId' title='Profissionais' [dataSource]='profissionais'
            [allowMultiple]='allowMultiple' name='Profissionais' textField='nome' idField='id' groupIDField='salaId'
            colorField='color'>
        </e-resource>
    </e-resources>
    <e-views>
        <e-view option="TimelineDay"></e-view>
        <e-view option="TimelineWeek"></e-view>
        <e-view option="Agenda"></e-view>
    </e-views>
</ejs-schedule>

Viewing all articles
Browse latest Browse all 74765

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>