<commit_before>Introduction
==============
An plugin for localizing applications written by AngularJS Framework.

What can it do?
* Use as filter, directive and service.
* Auto generate HTML attributes (such as *placeholder* attribute).
* Switch language on the fly.
* **Support partial message files.** You can import many message files for a language.
* **Allow a message refers to other messages.**

Install
===
Via `bower`:

    bower install hoiio-i18n
    
Include `hoiio-i18n.js` and `hoiio-i18n-adapter.js` files in `<script>` tag
    
How to use
===
Assume message service as:

    greetings: {
      hello: "Hello {{name}}, your age is {{age}}"
    }
    

#### With `i18n` filter ####
---
Format: `{{ 'messageCode' | i18n : mappingParameter : 'literalParameter' : ... : 'pn' }}`

Example:

    <input placeholder="{{ 'greetings.hello' | i18n : name : '20' }}">
    
`name` parameter will be mapped with property `name` of `scope`, `'20'` is literal string.


#### With `i18n` directive ####<commit_msg>Modify doc for version 1.2.0<commit_after>Introduction
==============
An plugin for localizing applications written by AngularJS Framework.

What can it do?
* Use as filter, directive and service.
* Auto generate HTML attributes (such as *placeholder* attribute).
* Switch language on the fly.
* **Support partial message files.** You can import many message files for a language.
* **Allow a message refers to other messages.**
* **Use cache for decreasing message translation time** (v1.2.0 or later).

Install
===
Via `bower`:

    bower install hoiio-i18n
    
Include `hoiio-i18n.js` and `hoiio-i18n-adapter.js` files in `<script>` tag
    
How to use
===
Assume message service as:

    greetings: {
      hello: "Hello {{name}}, your age is {{age}}"
    }
    

#### With `i18n` filter ####
---
Format: `{{ 'messageCode' | i18n : mappingParameter : 'literalParameter' : ... : 'pn' }}`

Example:

    <input placeholder="{{ 'greetings.hello' | i18n : name : '20' }}">
    
`name` parameter will be mapped with property `name` of `scope`, `'20'` is literal string.


#### With `i18n` directive ####
{'fraction_non_alphanumeric': 0.15311909262759923, 'fraction_numerical': 0.01984877126654064, 'mean_word_length': 3.7360178970917226, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1128986', 'n_tokens_mistral': 685, 'n_tokens_neox': 642, 'n_words': 244}