Sha256: cd45c4d88def19566f9d5fd6f3d9a157e91115655322685fd17eb4b074762830

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

# initialization of redis store
TRANSLATION_STORE = Redis.new
begin
   TRANSLATION_STORE.ping
rescue Redis::CannotConnectError => e
   puts "Error: Redis is not turned ON ! Please do so with 'redis-server' " 
   exit 1
end
I18n.backend = I18n::Backend::Chain.new(I18n::Backend::KeyValue.new(TRANSLATION_STORE), I18n.backend)
RedisDictionary::Engine.redis = TRANSLATION_STORE

# You can set your available locales
# I18n.available_locales = [:en, :cs]

# default locale
I18n.default_locale = :en

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redis_dictionary-1.0.1 lib/generators/redis_dictionary/install/templates/redis_dictionary.rb.erb