Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add documentation about translating button texts

  • Loading branch information...
commit 759ea88a93c3c091224ccd706c61e09333ba6ff5 1 parent c6057b4
Vesa Vänskä vesan authored carlosantoniodasilva committed

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. +8 0 README.rdoc
8 README.rdoc
Source Rendered
@@ -308,6 +308,14 @@ Finally, you can also overwrite any label, hint or placeholder inside your view,
308 308
309 309 There are other options that can be configured through I18n API, such as required text, boolean and button texts. Be sure to check our locale file or the one copied to your application after you run "rails generate simple_form:install".
310 310
  311 +For translating buttons, use Rails' built-in I18n support:
  312 +
  313 + en:
  314 + helpers:
  315 + user:
  316 + create: "Add User"
  317 + update: "Save Changes"
  318 +
311 319 == Configuration
312 320
313 321 SimpleForm has several configuration values. You can read and change them in the initializer created by SimpleForm, so if you haven't executed the command below yet, please do:

0 comments on commit 759ea88

Please sign in to comment.
Something went wrong with that request. Please try again.