Multilingual Capabilities Every WYSIWYG Editor Should Have

Froala editor offers multilingual capabilities including rtl support.

Everyone loves to use WYSIWYG editors. They are easy to use as well as convenient.  In addition to that, you don’t need to be able to code to get beautiful results. However, not all editors are created equally, especially when it comes to their multilingual capabilities. As a result of this, if you regularly use more than one language, you will face issues integrating them with your web application. There is, however, a simple solution to your problems — the Froala Editor. Froala comes with multilingual capabilities so, you can change the language of your content in no time.

In this post, you will find all the details about Froala’s WYSIWYG Editor and why you should use Froala.

What is Froala?

Froala is a feature-rich WYSIWYG HTML editor. It is built using the latest technologies, including jQuery and HTML5. As a result,  Froala provides your users with an outstanding editing experience. Better yet, you can quickly and easily integrate it into any kind of project. All you need is basic HTML and JavaScript knowledge. Froala is also a platform-independent Javascript editor. This means you can use it flawlessly on many different types of devices including smartphones, tablets, and PCS. As if that wasn’t enough, Froala is one of the few editors that also supports Retina Ready flat design.

Froala: Is it multilingual?

Froala’s default language is English. However, it is a multilingual editor. Right now, it supports over 38 different languages:

  1. Arabic
  2. Bosnian
  3. Chinese (China)
  4. Chinese (Taiwan)
  5. Croatian
  6. Czech
  7. Danish
  8. Dutch
  9. German
  10. Greek
  11. English (Canada)
  12. English (United Kingdom)
  13. Estonian
  14. Finnish
  15. French
  16. Hebrew
  17. Hungarian
  18. Indonesian
  19. Italian
  20. Japanese
  21. Korean
  22. Kurdish
  23. Montenegrin
  24. Norwegian
  25. Persian
  26. Polish
  27. Portuguese
  28. Brazil
  29. Portuguese
  30. Portugal
  31. Romanian
  32. Russian
  33. Serbian
  34. Slovak
  35. Spanish
  36. Swedish
  37. Thai
  38. Turkish
  39. Ukrainian
  40. Vietnamese

How to Change the Language in Froala

The process of changing languages in Froala is extremely straightforward. For example, let’s say that you are working in English and you want to change the language to Spanish. All you need to do to make the change is include the JavaScript file for your specific language. once you have done that,  create a function to set the language to Spanish. Take a look at this example:

HTML

<div id="edit"></div>

JavaScript

<!-- Include the language file. -->

<script src='../langs/es.js'></script>

<script>
$(function() {
$('div#froala-editor').froalaEditor({
// Set the language code.
language: 'es'
})
});
</script>

Does Froala offer RTL support?

RTL support is very important for any WYSIWYG HTML editor, especially if you have an international audience. With RTL you can deliver a proper experience to all of your users, whether their language utilizes a script that reads right-to-left or left-to-right. For example, unlike English, the Arabic language is read from right to left.

This means that because of the Froala editor’s full RTL support, people of all countries and languages will have a great experience using the WYSIWYG editor.

You can also configure the RTL support very easily. You just need to set the direction field to ‘rtl.’ Let’s take a look at this example:

HTML

<div id="froala-editor">

<p>The rich text editor has full RTL support. Set the <a href="../docs/options#direction" title="direction option" target="_blank">direction</a> option to rtl and writing in Arabic or Farsi will feel naturally.</p>

</div>

JavaScript

<script>
new FroalaEditor('div#froala-editor', {
direction: 'rtl'
})
</script>

Once you have specified the direction as ‘rtl,’ the text will read from right to left.

With RTL support specified your text will read from right to left.

You can play with the source codes at JSFiddle.

Why should you use Froala?

There are plenty of reasons to pick Froala as your editor of choice. Firstly, Froala is an amazing editor that everyone loves to use. Second, it supports inline editing, so what you see is actually what you get. Thirdly, Froala supports cross-browser and cross-platform functionalities. Finally, Froala is easy to upgrade and integrate with projects your projects.

Froala is a lightweight WYSIWYG HTML Editor written in Javascript. It equips your applications with rich text editing capabilities. Try it now for free.

Posted on June 11, 2021

Md. Ehsanul Haque Kanan

Md. Ehsanul Haque Kanana former writer for Froala, showcased exceptional talent and dedication during their tenure with the company.

No comment yet, add your voice below!


Add a Comment

Your email address will not be published.

    Hide Show