Open
Reported for: Gravity Forms Multilingual 1.8.5
Overview of the issue
When you use the new International (formatted) phone field introduced in Gravity Forms 3.0 and set custom Country and Phone sublabels, those sublabels do not appear in the Translation Editor.
Workaround
Please, make sure of having a full site backup of your site before proceeding.
- Open your theme’s functions.php file.
- Add the following code:
// gfml-362 workaround (GF3 International formatted phone sub-labels) - remove to revert add_filter( 'gform_multilingual_field_keys', function ( $keys ) { foreach ( array( 'countrySublabel', 'phoneSublabel' ) as $key ) { if ( ! in_array( $key, $keys, true ) ) { $keys[] = $key; } } return $keys; } );