KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I started populating an en yaml file in Rails and I can already tell it will get messy and out of hand before too long. Is there a convention to keeping this file organized? So far I have this structure: language: resource: pages: # index, show, new, edit page html elements: # h1, title activerecord: attributes: model: property: Now I have the following things that I want to fit into this structure but I'm unsure how to: Navigation Button text (save changes, create account, etc) Error messages from controller flash How to add multi-word keys. Do I use a space or an underscore? For exmaple, t(".update button") ) or t(".update_button") Is there a convention to locale file structure?
Tags (comma-separated)
Save Edits
Cancel