Jasgeet Sekhon
Jasgeet Sekhon

Reputation: 11

How to change locale in aurelia-froala-editor?

How to change language of froala-editor using aurelia? Where do I exactly need to add scripts of language files?

Have already checked https://www.froala.com/wysiwyg-editor/languages but I cannot figure out how to add these script files in aurelia.

Upvotes: 1

Views: 607

Answers (1)

Rabah
Rabah

Reputation: 2062

just import the language that you need, the languages are located in froala-editor/js/languages folder.

import 'froala-editor';
import 'froala-editor/js/languages/fr';

then define the language:

$('.editor').froalaEditor({
  language: 'fr'
});

Upvotes: 2

Related Questions