In your theme's functions.php
file, or in a custom plugin insert this code:
<?php
add_filter( 'rank_math/frontend/title', function( $title ) {
$translatepress_translation = custom_get_translatepress_translation($title);
if ($translatepress_translation != null) {
$title = $translatepress_translation;