Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Latest commit

 

History

History
24 lines (17 loc) · 1023 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 1023 Bytes

Refinery CMS I18n Build Status

I18n logic extracted from Refinery CMS, for Refinery CMS.

gem 'refinerycms-i18n', '~> 4.0.1'
bundle install
rails g refinery:i18n
Refinery::I18n.configure do |config|
   config.default_locale = :en

  # config.current_locale = :en

  # config.default_frontend_locale = :en

   config.frontend_locales = [:en,:ar]

   config.locales = {:en=>"English", :ar=>"Arabic"}
   #, :nl=>"Nederlands", :pt=>"Português", :"pt-BR"=>"Português brasileiro", :da=>"Dansk", :nb=>"Norsk Bokmål", :sl=>"Slovenian", :es=>"Español", :it=>"Italiano", :de=>"Deutsch", :lv=>"Latviski", :ru=>"Русский", :sv=>"Svenska", :pl=>"Polski", :"zh-CN"=>"简体中文", :"zh-TW"=>"繁體中文", :el=>"Ελληνικά", :rs=>"Srpski", :cs=>"Česky", :sk=>"Slovenský", :ja=>"日本語", :bg=>"Български", :hu=>"Hungarian", :uk=>"Українська"}
end