Mohamad
Mohamad

Reputation: 35349

Are there naming conventions in yaml format?

Are there naming conventions I can follow when writing an i18n yaml file for my Rails app?

I have a "Save changes" button that corresponds to Users.update. I'm not sure what to call the key:

users.edit.update
users.edit.update_button
users.edit.save_changes
users.edit.btn_update

Are there any naming conventions I can follow?

Upvotes: 5

Views: 5494

Answers (1)

cristi_razvi
cristi_razvi

Reputation: 764

There is no set convention. You should choose the most natural approach for your application and your programming language.

Upvotes: 3

Related Questions