<commit_before># I18n::Workflow

This gem contains a workflow for I18n in Rails projects. I18n is a
great tool for translating an application, but the workflow might get
tedious when working with larger applications and managing a lot of
translations. The workflow in this gem builds upon the basics of I18n
and extends it to make translating easier.

## Installation

Add this line to your application's Gemfile:

    gem 'i18n-workflow'

And then execute:

    $ bundle

See Usage below for the specific initialisation codes for each part of the workflow. If
you want to initialize the complete workflow, please add the following to the configuration
of your application:

```ruby
# config/initializers/locale.rb
I18n.exception_handler = I18n::Workflow::ExceptionHandler.new unless Rails.env.production?
I18n.backend.class.send(:include, I18n::Backend::Fallbacks)
I18n.backend.class.send(:include, I18n::Backend::Cascade)
I18n.backend.class.send(:include, I18n::Workflow::AlwaysCascade)
I18n.backend.class.send(:include, I18n::Workflow::ExplicitScopeKey)

# Make sure to disable raising error in ActionView:<commit_msg>No gem release, use Github repo<commit_after># I18n::Workflow

This gem contains a workflow for I18n in Rails projects. I18n is a
great tool for translating an application, but the workflow might get
tedious when working with larger applications and managing a lot of
translations. The workflow in this gem builds upon the basics of I18n
and extends it to make translating easier.

## Installation

Add this line to your application's Gemfile:

    gem 'i18n-workflow', github: 'moneybird/i18n-workflow'

And then execute:

    $ bundle

See Usage below for the specific initialisation codes for each part of the workflow. If
you want to initialize the complete workflow, please add the following to the configuration
of your application:

```ruby
# config/initializers/locale.rb
I18n.exception_handler = I18n::Workflow::ExceptionHandler.new unless Rails.env.production?
I18n.backend.class.send(:include, I18n::Backend::Fallbacks)
I18n.backend.class.send(:include, I18n::Backend::Cascade)
I18n.backend.class.send(:include, I18n::Workflow::AlwaysCascade)
I18n.backend.class.send(:include, I18n::Workflow::ExplicitScopeKey)

# Make sure to disable raising error in ActionView:
{'fraction_non_alphanumeric': 0.07712418300653595, 'fraction_numerical': 0.02701525054466231, 'mean_word_length': 5.597701149425287, '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': '6900576', 'n_tokens_mistral': 714, 'n_tokens_neox': 648, 'n_words': 254}