提交 a8f8214a 编写于 作者: A Alberto Almagro

[ci skip] Use yml extension for locale files

The default extension we use for locale files is `.yml`. This patch
reflects this in the documentation example.
上级 12e8c537
......@@ -558,25 +558,25 @@ For example, your `config/locales` directory could look like this:
```
|-defaults
|---es.rb
|---en.rb
|---es.yml
|---en.yml
|-models
|---book
|-----es.rb
|-----en.rb
|-----es.yml
|-----en.yml
|-views
|---defaults
|-----es.rb
|-----en.rb
|-----es.yml
|-----en.yml
|---books
|-----es.rb
|-----en.rb
|-----es.yml
|-----en.yml
|---users
|-----es.rb
|-----en.rb
|-----es.yml
|-----en.yml
|---navigation
|-----es.rb
|-----en.rb
|-----es.yml
|-----en.yml
```
This way, you can separate model and model attribute names from text inside views, and all of this from the "defaults" (e.g. date and time formats). Other stores for the i18n library could provide different means of such separation.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册