1

我想在 resque 工作中使用 i8ng?可能吗?

4

1 回答 1

3

是的,您应该可以访问 resque 作业中的整个 rails 堆栈。

如果没有,您可以随时手动进行:

   require 'i8ln'
   config = YAML.load_file("#{Rails.root}/config/locales/en.yml")
   ...
   ...
于 2012-05-01T15:24:48.410 回答