add localization

This commit is contained in:
Yan
2017-10-11 17:29:28 +06:30
parent 4ab89efaf2
commit 476aafa791
6 changed files with 34 additions and 2 deletions

View File

@@ -13,6 +13,8 @@ module SXRestaurants
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
config.i18n.default_locale = :'en'
config.active_record.time_zone_aware_types = [:datetime, :time]
config.active_job.queue_adapter = :sidekiq
config.time_zone = 'Asia/Rangoon'

View File

@@ -1,4 +1,5 @@
en:
welcome: "Welcome"
views:
pagination:
first: "« First"

18
config/locales/mm.yml Normal file
View File

@@ -0,0 +1,18 @@
mm:
welcome: "လာပါ"
views:
pagination:
first: "« ပထမ"
last: "အဆံုး »"
previous: "‹ ေနာက္သို့"
next: "ေရ့သို့ ›"
truncate: "…"
helpers:
page_entries_info:
one_page:
display_entries:
zero: "No %{entry_name} found"
one: "Displaying <b>1</b> %{entry_name}"
other: "Displaying <b>all %{count}</b> %{entry_name}"
more_pages:
display_entries: "Displaying %{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> of <b>%{total}</b> in total"

View File

@@ -2,7 +2,7 @@ require 'sidekiq/web'
Rails.application.routes.draw do
scope "(:locale)", locale: /en|mm/ do
root 'home#index'
mount Sidekiq::Web => '/kiq'
@@ -375,3 +375,4 @@ Rails.application.routes.draw do
resources :commissioners
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
end