Might be simpler to do something like `<li style="float:${"left" if get_language_bidi() else "right"}"><a href=...`