Problem description Scaffold generators currently create code that is not internationalized. Examples include flash messages from the controller and button names and links in the erb templates. This is also an issue because the namespace for these translations is also undefined, so it is difficult to add the translations to the rails-i18n project. Other components such as ActiveRecord currently do define the scoping for I18n messages, so it seems reasonable to add the same for the railties/generators scaffold code.
Proposal Define a scope for these translations (i.e. “scaffold/controller”, “scaffold/erb”). Create a PR for adding the translation code to the templates Add the keys for en to the locale file in railties Follow up with rails-18n team to include a module for scaffold translations.
Thoughts?