Skip to content

Commit

Permalink
Add zh-cn locale
Browse files Browse the repository at this point in the history
Also:
 - Fix wrong configuration path in README.md
  • Loading branch information
flingfox63 authored and snmgian committed Sep 19, 2016
1 parent b886e6f commit 172388f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -156,7 +156,7 @@ require 'sidekiq/scheduler'

Sidekiq.configure_server do |config|
config.on(:startup) do
Sidekiq.schedule = YAML.load_file(File.expand_path("../../config/scheduler.yml", __FILE__))
Sidekiqs.chedule = YAML.load_file(File.expand_path('../sidekiq_scheduler.yml', File.dirname(__FILE__)))
Sidekiq::Scheduler.reload_schedule!
end
end
Expand Down
11 changes: 11 additions & 0 deletions web/locales/zh-cn.yml
@@ -0,0 +1,11 @@
zh-cn:
recurring_jobs: 周期作业
name: 名称
description: 描述
interval: 间隔
class:
queue: 队列
arguments: 参数
enqueue_now: 立即执行
next_time: 下次执行时间
no_next_time: 已无后续作业

0 comments on commit 172388f

Please sign in to comment.