bulky-elephant-87113
10/03/2025, 11:16 AMactiverecord.models.[model] by default for translation_key? All my models names are already translated there, per Rails' convention.miniature-optician-85831
10/03/2025, 11:16 AMbulky-elephant-87113
10/03/2025, 11:56 AMavo.resources.descriptions.[resource] for defining descriptions from locale files, instead of manually setting self.description in the resourcelemon-wall-20836
10/03/2025, 12:56 PMlemon-wall-20836
10/03/2025, 12:56 PMlemon-wall-20836
10/03/2025, 12:56 PMlemon-wall-20836
10/03/2025, 12:57 PMComment model with a Comment resource and use a translation for that and if you want to do something more specific in an association or you have a more exotic use-case, you may create a new resource for that model PhotoComment with it's own fields, actions, and translationslemon-wall-20836
10/03/2025, 12:58 PMlemon-wall-20836
10/03/2025, 12:58 PMnil, it doesn't show anythinglemon-wall-20836
10/03/2025, 1:00 PMlemon-wall-20836
10/03/2025, 1:02 PMbulky-elephant-87113
10/03/2025, 1:51 PMself.translation_keybulky-elephant-87113
10/03/2025, 1:52 PMactiverecord.attributes.[model].[attribute]lemon-wall-20836
10/03/2025, 2:07 PMlemon-wall-20836
10/03/2025, 2:07 PMbulky-elephant-87113
10/03/2025, 2:13 PMCompany,
- use self.translation_key if defined
- fallback to avo.resource_translations.company
- fallback to activerecord.models.company
- fallback to Company.to_sbulky-elephant-87113
10/03/2025, 2:14 PMlemon-wall-20836
10/03/2025, 2:16 PMlemon-wall-20836
10/03/2025, 2:16 PMbulky-elephant-87113
10/03/2025, 2:22 PMdefault https://guides.rubyonrails.org/i18n.html#defaultslemon-wall-20836
10/03/2025, 2:25 PMruby
t(self.translation_key, default: ["avo.resource_translations.company", "activerecord.models.company", Company.to_s])bulky-elephant-87113
10/03/2025, 2:28 PMbulky-elephant-87113
10/03/2025, 2:28 PMrb
t(self.translation_key, default: [:"avo.resource_translations.company", :"activerecord.models.company", Company.to_s])lemon-wall-20836
10/03/2025, 2:30 PMlemon-wall-20836
10/03/2025, 2:31 PMloud-jewelry-99127
10/03/2025, 5:11 PMactiverecord.models.*** to the chain would be a great enhancement!