Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在初始化文件中使用 I18n.t 调用。不幸的是,它不起作用。Rails 返回通常的“翻译缺失:”消息。调用时似乎尚未加载 I18n 文件。
有什么解决方法吗?
谢谢
我在使用 Rails 2.3.2 时遇到了问题。从那时起,我已经迁移到 2.3.5 并且 I18n.t 调用在我的初始化程序中工作正常。