Home › Forums › Feature Requests › Adjustable Textdomains and Textdomains in PHP Export › Reply To: Adjustable Textdomains and Textdomains in PHP Export
I would love to have translatable strings as an export. What I mean is instead of the output being this:
'label' => 'Label', 'name' => 'label', 'instructions' => 'Instructions',
The output would be:
'label' => __( 'Label' ), 'name' => 'label', 'instructions' => __( 'Instructions' ),
A textdomain is fairly easy to add using a build process such as the ‘addtextdomain’ task in this grunt plugin: https://www.npmjs.org/package/grunt-wp-i18n.
I think the PHP tools within WordPress contain a similar function.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!