Skip to content

Instantly share code, notes, and snippets.

@twetzel
Created September 3, 2014 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twetzel/ccf6d3f48223ae44f447 to your computer and use it in GitHub Desktop.
Save twetzel/ccf6d3f48223ae44f447 to your computer and use it in GitHub Desktop.
example label translation including active-record and active-model attributes
de:
attributes: &activerecord_attributes
user: &users_labels
email: "E-Mail"
name: "Name"
first_name: "Vorname"
last_name: "Nachname"
remember_me: "Angemeldet bleiben"
user:
one: "Nutzer"
other: "Nutzer"
helpers:
label:
user:
<<: *users_labels
genders:
male: "Herr"
female: "Frau"
placeholder:
user:
your_email: "Deine E-Mail-Adresse"
your_password: "Dein Password"
errors: &email_error
messages:
email: "ist keine gültige E-Mail-Adresse"
activemodel:
attributes:
<<: *activerecord_attributes
errors:
<<: *email_error
activerecord:
attributes:
<<: *activerecord_attributes
errors:
<<: *email_error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment