You can include a page relative to the namespace you are in as your topbar.
Here's a thread outlining that:
https://forum.dokuwiki.org/thread/10606.
The code for main.php would look like this:
<?php tpl_include_page('topbar', true, true)?>
And then just make a 'topbar' page in every language's root namespace.