From a8f8214aef3da476e3c5779bc67ce37c29e81880 Mon Sep 17 00:00:00 2001 From: Alberto Almagro Date: Thu, 27 Feb 2020 22:55:50 +0100 Subject: [PATCH] [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. --- guides/source/i18n.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/guides/source/i18n.md b/guides/source/i18n.md index fc5c1ba0bb..25d85288d4 100644 --- a/guides/source/i18n.md +++ b/guides/source/i18n.md @@ -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. -- GitLab