WIP: WPML Media to put a different svg for each language

In Bricks Builder 1.12.4, my solution still working but now in the svg.php we need to replace

// Default: Get SVG from file ID
		if ( $source === 'file' && ! empty( $settings['file']['id'] ) ) {
			$svg_path = get_attached_file( $settings['file']['id'] );
			$svg      = $svg_path ? Helpers::file_get_contents( $svg_path ) : false;
		}

By this one

// Default: Get SVG from file ID
		if ( $source === 'file' && ! empty( $settings['file']['id'] ) ) {
			$svg_id = apply_filters( 'wpml_object_id', $settings['file']['id'], 'attachment', FALSE ); 
			$svg_path = get_attached_file( $svg_id ); 
			$svg = $svg_path ? Helpers::file_get_contents( $svg_path ) : false;
		}

I hope this bug will be solved one day.
You can see the code working on this website where we need to put different svg translation by language : Impactful cakes - Vegan, raw & radically responsible - Nats Rawline

Greetings,