我正在尝试将 Mobility gem 与 Rails Admin 一起使用。我可以通过 Rails Admin 界面编辑字段(如 Ngo 模型的 Impact_description),它正确地更改了翻译表:
但问题是,Rails 管理界面没有显示正确的翻译(它显示在 pt-BR,即使应用程序是英文的):
有没有人成功地将 Rails Admin 与 Mobility gem 集成?感谢关注
编辑:在我的rails_admin.rb
(初始化程序)中,我有所有操作的常规配置(仅更改新的):
config.actions do
dashboard # mandatory
index # mandatory
new do
except [RewardRule, SuggestedFeed]
end
export
import
bulk_delete
show
edit
# delete
clone
show_in_app
## With an audit adapter, you can add:
# history_index
# history_show
end
对于 Ngo 模型,我没有任何自定义配置,只是它包含在 Rails Admin 模型中:
# rails_admin.rb
config.included_models = [..., Ngo, ...]