We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
You find our locales in config/locales/. Here we have defined a folder structure, models, views, gems, defaults.
config/locales/
models
views
gems
defaults
For a new ActiveRecord-model, you should create:
config/locales/models/new_model.sv.yml (or your preferred language) It should have this structure (to start with):
config/locales/models/new_model.sv.yml
sv: activerecord: models: new_model: one: New model other: New models attributes: new_model: title: Titel description: Beskrivning
All locales belonging to a view of a certain model/controller/namespace can be placed in config/locales/views/. Start the file with:
config/locales/views/
sv: new_model: view_locale_thingy: Yep