config/locales. Each YAML file contains one top level key which is the language code for the translations contained within that file. The following is a snippet showing the basic layout of a locale file:
spreekey so that they don't conflict with translations from other parts of the parent application.
rails-i18nfor their translations to be available within your application. They are made available automatically, because both
rails-i18n. Its relative key within those translation files would need to be this:
config/localesdirectory where developers can include YAML files for each language they wish to support.
Spree.t()helper method even if they only include a single default language locale file (as other users can simply include the required YAML file and translations in their site extension).