-
Notifications
You must be signed in to change notification settings - Fork 4
Localization
David Wessman edited this page Oct 6, 2015
·
1 revision
You find our locales in config/locales/
.
Here we have defined a folder structure, 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):
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:
sv:
new_model:
view_locale_thingy: Yep