<commit_before># I18nKeyFinder [![Build Status](https://travis-ci.org/piotr-szachewicz/rails-i18n-key-finder.svg?branch=master)](https://travis-ci.org/piotr-szachewicz/rails-i18n-key-finder)

In some complex web application sometimes it's difficult to find out where did
your I18n translations come from.

In this situations this gem comes to help! It allows you to temporarily display
the i18n keys instead of their values in the web application.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'i18n_key_finder', github: 'piotr-szachewicz/rails-i18n-key-finder'
```

And then execute:

    $ bundle

After that you need to run the I18nKeyFinder generator:

    $ rails generate i18n_key_finder:install

## Usage

You can see the I18n keys instead of their values in the application if you
start the rails server with the environment variable `SHOW_I18N_KEYS` set to
true. For example:<commit_msg>Fixed spelling in README.me.<commit_after># I18nKeyFinder [![Build Status](https://travis-ci.org/piotr-szachewicz/rails-i18n-key-finder.svg?branch=master)](https://travis-ci.org/piotr-szachewicz/rails-i18n-key-finder)

In some complex web application sometimes it's difficult to find out where did
your I18n translations come from.

In these situations this gem comes to help! It allows you to temporarily display
the i18n keys instead of their values in the web application.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'i18n_key_finder', github: 'piotr-szachewicz/rails-i18n-key-finder'
```

And then execute:

    $ bundle

After that you need to run the I18nKeyFinder generator:

    $ rails generate i18n_key_finder:install

## Usage

You can see the I18n keys instead of their values in the application if you
start the rails server with the environment variable `SHOW_I18N_KEYS` set to
true. For example:
{'fraction_non_alphanumeric': 0.08029978586723768, 'fraction_numerical': 0.023554603854389723, 'mean_word_length': 4.804347826086956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '998718', 'n_tokens_mistral': 632, 'n_tokens_neox': 584, 'n_words': 214}