L10N is a smart and simple-to-use jQuery plugin created for your multilingual website that enables the user to translate the web content by selecting a language from a language switcher.

The plugin automatically stores the language you users selected in the local storage. If not found on the next visit, it will automatically select the proper language depending on the html lang attribute.

<h1 class="l10n">Demo</h1>
<blockquote class="l10n">
Music is a moral law. It gives soul to the universe, wings to the mind, flight to the imagination, and charm and gaiety to life and to everything.
</blockquote>
<cite class="l10n">Plato</cite>

const l10n = $('.l10n').l10n({
lang: 'en',
dictList: words
});

5. Switch to a specific language.

l10n.setLanguage('ar');

6. Get the text to be translated.

l10n.getText('Your text');

7. Enable the dynamic language switching. When enabled, the plugin automatically translates your webpage based on the language selection stored in the local storage, or the language name defined in the html lang attribute.