@wuxu
Thank you so much for the tip, I temporarily solved my problem. I used a bit of code to remove the trailing backslashes except for the homepage URL.
add_filter('trp_get_url_for_language', 'trpc_remove_end_slash', 10, 6);
function trpc_remove_end_slash($new_url, $url, $language, $abs_home, $lang_from_url_string, $lang_url_slug){
$languageCodes = ['/zh/', '/ja/', '/es/', '/de/'];
foreach ($languageCodes as $code) {
if (substr($new_url, -strlen($code)) === $code) {
return $new_url;
}
}
return untrailingslashit($new_url);
}
I had the same problem (https://wordpress.org/support/topic/transatepress-is-having-serious-problems-generating-sitemap/)
It even adds a “/” to the url at the end of the .html, which is just awful and should give a way to change it.