[repater_field_type] How to translate "add_row", "collapse", "expand" and "delete" Button in module development?
Created 7 years ago by annelaimHello world!;
I glade to use PyroCMS, it's an awesome CMS with laravel features, and that so good,
Anyway,i would like to make a module for pyro, And in an admin section i use a repeater field for add multiple object in a form.
But i can't translate any buttons in the repeater form, such "add_row" button text...
Who we can do that in module developpement, please? is there a tutorial, or anything to follow?
And, I think a little demo in the module tutorial video will be a good point 😄
Thanks for regards.
There is a config option you can use for that sorry! I've updated translation:
https://pyrocms.com/documentation/grid-field-type/latest#introduction/configuration https://pyrocms.com/documentation/repeater-field-type/latest#introduction/configuration
Thank you for the kind words! Glad you like Pyro 😊
PS - collapse and delete are not configurable but you can use the translator module to help you easily PR a translation:
Thanks for your fast answer;
I'm glad to see how to translate the "add_row" button,
I've got a last question: in the config, "add_row", what type of value it takes? Is this a hardcoded text or it can a value how we can translate? like another button or field?
Thanks for all, and I wich you a good luck for all;
There is a config option you can use for that sorry! I've updated translation:
https://pyrocms.com/documentation/grid-field-type/latest#introduction/configuration https://pyrocms.com/documentation/repeater-field-type/latest#introduction/configuration
Thank you for the kind words! Glad you like Pyro 😊