https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/call_pyosmium.sh
Resulting in changes like this (old is ">", new is "<" here:
70c70
< -287245 | Parc Cenedlaethol Eryri / Snowdonia National Park
-287245 | Parc Cenedlaethol Eryri
The language extract logic is at:
https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/update_render.sh#L268