Closed jenseng closed 9 years ago
This could provide a mechanism to specify a friendlier placeholder, rather than letting it be inferred. For example:
<p translate="yes"> Create <input onChange={this.createAccounts} /> new user accounts </p>
Currently this yields "Create %{input_on_change_this_create_accounts} new accounts", which is terrible, and likely to change.
"Create %{input_on_change_this_create_accounts} new accounts"
If we used the key, you could do this:
<p translate="yes"> Create <input key="numAccounts" onChange={this.createAccounts} /> new user accounts </p>
then the string could just be "Create %{num_accounts} new accounts"
"Create %{num_accounts} new accounts"
This could provide a mechanism to specify a friendlier placeholder, rather than letting it be inferred. For example:
Currently this yields
"Create %{input_on_change_this_create_accounts} new accounts"
, which is terrible, and likely to change.If we used the key, you could do this:
then the string could just be
"Create %{num_accounts} new accounts"