gem_i18n 0.4 → 0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gem_i18n.rb +22 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6d590ea823569aff4875f153806612706ee58ec0b6d360c08d4eff884de40b8
|
4
|
+
data.tar.gz: 87e9bf404e85f4ed9f8b0a2dffc6ddbfb3799cc72e792d81c989e666121e2820
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|