<commit_before># locale plugin

## Overview
This plugin will add Locale in Preference and change the language associated with a selected locale.

Each plugin make a directory associated with a language code in the nls(National Language Support) folder then resource bundles are added in this directory.

## Structure

```
webida.locale
├┬─ nls
│├┬─ en-us                  
││└── resource.js           - english resource bundle.<commit_msg>[DOCUMENT](#575) How to add language<commit_after># locale plugin

## Overview
This plugin will add Locale in Preference and change the language associated with a selected locale.

How to add a language:

Add a locale code as an item to the locale of locale-preference.js. In case of German, you can add the locale code like this form, "{label: 'germany', value: 'de-de'}", is following RFC-5646.

Each plugin make a directory associated with a language code in the nls(National Language Support) folder then resource bundles are added in this directory.

## Structure

```
webida.locale
├┬─ nls
│├┬─ en-us                  
││└── resource.js           - english resource bundle.
{'fraction_non_alphanumeric': 0.08050089445438283, 'fraction_numerical': 0.006261180679785331, 'mean_word_length': 3.5860655737704916, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5926636', 'n_tokens_mistral': 308, 'n_tokens_neox': 303, 'n_words': 150}