froala / angular-froala

Angular.js bindings for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
MIT License
306 stars 123 forks source link

How to change language #142

Closed clluiz closed 7 years ago

clluiz commented 7 years ago

There is a option to chang de language?

stefanneculai commented 7 years ago

@clluiz yes, you should set the language via the language option: https://github.com/froala/angular-froala#options https://www.froala.com/wysiwyg-editor/languages

Khrystyna commented 7 years ago

@stefanneculai I am passing the language code as an option, but it still doesn't work. Can it be that locale files are not included into build version?

stefanneculai commented 7 years ago

@Khrystyna you should include the language files separately, they are not included in the package by default.

fiatkongen commented 5 years ago

Has anyone made this work? I have included the danish language file from https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.9.5/js/languages/da.js

And added to options: language: 'da'

But it still does not work

langereissilvio commented 5 years ago

@fiatkongen Not sure if you solved it or not, but I managed to get it working by importing the file directly into your component: import 'node_modules/froala-editor/js/languages/nl.js';

C0rporeus commented 4 years ago

@fiatkongen No estoy seguro si lo resolvió o no, pero logré hacerlo funcionar importando el archivo directamente a su componente:import 'node_modules/froala-editor/js/languages/nl.js';

me too

Leelakrishna2091997 commented 2 years ago

@fiatkongen Not sure if you solved it or not, but I managed to get it working by importing the file directly into your component: import 'node_modules/froala-editor/js/languages/nl.js';

Thank u @langereissilvio that worked. Used in angular 10.