1
我试图在显示表单错误时转换我的模型属性。错误本身被正确翻译,但是,错误的属性不是。在rails中翻译activerecord模型属性
我nb.yml区域我已经写:
activerecord:
attributes:
book:
price: "pris"
输出示例:价格ER的地图(最低0 tegn)
现在用此语言环境:https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/nb.yml
谢谢!你发布的链接解决了我的问题:) –