gem_i18n 0.4 → 0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gem_i18n.rb +22 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a29336fc3a95acf32ad4ddb854b6780f94d0f640fbc849a47b0443e6176e908b
4
- data.tar.gz: 12f48c567f5bb61b7d87850bb78e8319f9b7b9138c8ec759f29d0187670f7208
3
+ metadata.gz: c6d590ea823569aff4875f153806612706ee58ec0b6d360c08d4eff884de40b8
4
+ data.tar.gz: 87e9bf404e85f4ed9f8b0a2dffc6ddbfb3799cc72e792d81c989e666121e2820
5
5
  SHA512:
6
- metadata.gz: 37c1980b00ac38d85ed3832ef3b8c584eeb525cf8ea6b8d0f55feeb82d6523ee36561362151467b2c5e3346f8ea6f9a6448ba963f3c304344646acd04532a79f
7
- data.tar.gz: 3fa6b904587ea01bb1e8c7f8f42dd812843c455f97fa31837a2da2ae87d1387e519fdf1fda0046353832bbd2a1217c3d67faafeb0fcdbb9d197b3ab8ca4fd13a
6
+ metadata.gz: 11223598652013288f6aa5588723be4cdeb715cd1357e4931460190a240ada36a0a1ea0a80302e192cfe2bde2c3700a5b0a74e9bd6031b3abe2f337ab01f474b
7
+ data.tar.gz: 0e57a711a839dca68edbe4199bf9507da40c280b81841f21495fb4767481a5c743fd2e1c9fd174a8b00094981c62a790703a8c17608a8cd2ba6f7bc42e16aa06
data/lib/gem_i18n.rb CHANGED
@@ -1,5 +1,27 @@
1
1
  require "gem_i18n/engine"
2
+ require "i18n"
2
3
 
3
4
  module GemI18n
5
+ class Application < Rails::Application
6
+ # Settings in config/environments/* take precedence over those specified here.
7
+ # Application configuration should go into files in config/initializers
8
+ # -- all .rb files in that directory are automatically loaded.
9
+
10
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
11
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
12
+ # config.time_zone = 'Central Time (US & Canada)'
13
+
14
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
15
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
16
+ # config.i18n.default_locale = :de
17
+
18
+ # Do not swallow errors in after_commit/after_rollback callbacks.
19
+ config.active_record.raise_in_transactional_callbacks = true
20
+
21
+ config.i18n.default_locale = :de
22
+ config.i18n.available_locales = [:en, :fr, :de, :zh, :es, 'fr-ca']
23
+
24
+ # ActiveSupport::JSON::Encoding.encode_big_decimal_as_string = false
25
+ end
4
26
  end
5
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivak