<ejs-richtexteditor id="defaultRTE" [toolbarSettings]='tools' locale="pt">
</ejs-richtexteditor> |
import { L10n } from '@syncfusion/ej2-base';
//Configure the locale date here
L10n.load({
pt: {
richtexteditor: {
alignments: 'Alinhamentos',
justifyLeft: 'Alinhar à esquerda',
justifyCenter: 'Alinhar ao centro',
. . .
}
}
});
import { Component } from '@angular/core';
import { ToolbarService, LinkService, ImageService, HtmlEditorService } from '@syncfusion/ej2-angular-richtexteditor';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
providers: [ToolbarService, LinkService, ImageService, HtmlEditorService]
})
export class AppComponent {
public tools: ToolbarModule = {
items: [
'Bold',
. . .
. . .
]
};
} |
import { L10n, setCulture } from '@syncfusion/ej2-base';
L10n.load({
pt: {
uploader: {
uploadFailedMessage: 'Falha no upload do arquivo',
uploadSuccessMessage: 'Arquivo enviado com sucesso'
},
richtexteditor: {
alignments: 'Alinhamentos',
justifyLeft: 'Alinhar à esquerda',
. . .
}
}
});
setCulture('pt'); |