<commit_before># ng-i18next - use i18next with [AngularJS](https://www.angularjs.org/) [![Build Status](https://travis-ci.org/i18next/ng-i18next.svg?branch=master)](https://travis-ci.org/i18next/ng-i18next) #

Project goal is to provide an easy way to use [i18next](http://i18next.com/) with [AngularJS](http://angularjs.org/):

- `ng-i18next` directive
- `i18next` filter

First check out the [documentation](http://i18next.com) by <NAME>.

# Features #
- AngularJS provider, directive and filter
- variable binding (translates again when variable changes)
- nested translations (`$t('hello')`; see [i18next documentation](http://i18next.com/pages/doc_features.html))
- scope variables in translations (if the translation contains directives of variables like `{{hello}}`, they'll get compiled)
- sprintf support (directive and provider)
- support for default values to be displayed before i18next engine is initialized

# Installation #
You can install `ng-i18next` as a bower dependency:

	bower install ng-i18next


# Usage #
First add

- `AngularJS`
- `i18next`
- `ng-i18next`

to your HTML file. `AngularJS` and `i18next` have to be loaded **before** `ng-i18next`!

Make sure you require `jm.i18next` as a dependency of your AngularJS module. Also configurate the provider first:<commit_msg>Readme: Add dependency entry: ngSantize<commit_after># ng-i18next - use i18next with [AngularJS](https://www.angularjs.org/) [![Build Status](https://travis-ci.org/i18next/ng-i18next.svg?branch=master)](https://travis-ci.org/i18next/ng-i18next) #

Project goal is to provide an easy way to use [i18next](http://i18next.com/) with [AngularJS](http://angularjs.org/):

- `ng-i18next` directive
- `i18next` filter

First check out the [documentation](http://i18next.com) by <NAME>.

# Features #
- AngularJS provider, directive and filter
- variable binding (translates again when variable changes)
- nested translations (`$t('hello')`; see [i18next documentation](http://i18next.com/pages/doc_features.html))
- scope variables in translations (if the translation contains directives of variables like `{{hello}}`, they'll get compiled)
- sprintf support (directive and provider)
- support for default values to be displayed before i18next engine is initialized

# Installation #
You can install `ng-i18next` as a bower dependency:

	bower install ng-i18next


# Usage #
First add

- [`AngularJS`](https://angularjs.org)
- [`ngSanitize`](https://docs.angularjs.org/api/ngSanitize#!)
- `i18next`
- `ng-i18next`

to your HTML file. `AngularJS`, `ngSanitize` and `i18next` have to be loaded **before** `ng-i18next`!

Make sure you require `jm.i18next` as a dependency of your AngularJS module. Also configurate the provider first:
{'fraction_non_alphanumeric': 0.1304667401690555, 'fraction_numerical': 0.030871003307607496, 'mean_word_length': 4.917391304347826, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, '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': '3561223', 'n_tokens_mistral': 926, 'n_tokens_neox': 860, 'n_words': 269}