Start adding some i18n.
This commit is contained in:
parent
988dbbad42
commit
4d3857c135
5 changed files with 30 additions and 3 deletions
9
config/initializers/locales.rb
Normal file
9
config/initializers/locales.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
# Build map of domain extensions and their corresponding language.
|
||||
# array contains: domain extension, locale
|
||||
#
|
||||
DEFAULT_LANGUAGE_BY_DOMAIN = {
|
||||
"com" => "en",
|
||||
"net" => "en",
|
||||
"de" => "de"
|
||||
}
|
||||
4
config/locales/de.yml
Normal file
4
config/locales/de.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
de:
|
||||
birthdays:
|
||||
birthdays: "Geburtstage"
|
||||
for_next_days: "für die nächsten 7 Tage"
|
||||
|
|
@ -2,4 +2,6 @@
|
|||
# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
|
||||
|
||||
en:
|
||||
hello: "Hello world"
|
||||
birthdays:
|
||||
birthdays: "Birthdays"
|
||||
for_next_days: "for the next 7 days"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue