<commit_before># Dbi18

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'dbi18'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install dbi18

## Usage

TODO: Write usage instructions here

## Contributing
<commit_msg>add usage<commit_after># Dbi18

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'dbi18'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install dbi18

## Usage

rails g dbi18 任意参数
rails g model language name:string

#name.rb
db_i18n(:name,[:en,:zh])

在model里加入这个方法后会生成name_en和name_zh的方法

n = Name.new;
n.name_en = "english"
n.name_zh = "china"
n.save

#console
n.name #如果model里添加了db_i18n的方法会根据I18n.locale的值来判断当前的值,
如果没加则会取出原有的name属性.否则就会提示未定义的方法
#如果想取出自定义的值可以用以下的方式
n.name_en
n.name_zh


## Contributing

{'fraction_non_alphanumeric': 0.08200455580865604, 'fraction_numerical': 0.022779043280182234, 'mean_word_length': 4.201183431952662, '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': '2782775', 'n_tokens_mistral': 400, 'n_tokens_neox': 381, 'n_words': 94}