我开始在Rails中填充一个en yaml文件,我已经可以告诉它在太久之前会变得混乱和失控.是否存在保持此文件有序的约定?
到目前为止,我有这样的结构:
language:
resource:
pages: # index, show, new, edit
page html elements: # h1, title
activerecord:
attributes:
model:
property:
Run Code Online (Sandbox Code Playgroud)
现在我有以下我想要适应这个结构的东西,但我不确定如何:
t(".update button"))或t(".update_button")区域设置文件结构是否有约定?
yaml structure ruby-on-rails internationalization ruby-on-rails-3