# Specification ## Keys Keys are generated based on the localization file path and the YAML key. ```json { "<path>|<key>": "<value>" } ``` Where: | Item | Description | |-----------|-----------------------------------------------------------------------| | `<path>` | The path of the YAML localization file (with `/` used as a separator) | | `<key> ` | The full YAML key with `:` used as a separator between levels | | `<value>` | The localized string | ## Examples ### Input ```yaml # config/locales/app/users.fr.yml fr: app: users: index: new: 'Nouvel utilisateur' edit: 'Modifier l’utilisateur %{user}' # config/locales/app/shared/comments.fr.yml fr: app: shared: comments: title: 'Tous les commentaires' # config/locales/admin/shared.fr.yml fr: admin: shared: footer: copyright: 'Copyright © %{year}' # config/locales/layouts.fr.yml fr: layouts: application: title: 'Mon Application' ``` ### Output With `--locale=fr` option. ```json { "app/users|app.users.index.new": "Nouvel utilisateur", "app/users|app.users.index.edit": "Modifier l’utilisateur %{user}", "app/shared/comments|app.shared.comments.title": "Tous les commentaires", "admin/shared|admin.shared.footer.copyright": "Copyright © %{year}", "layouts|layouts.application.title": "Mon Application" } ```