Translation on system.gui.confirm()

Have a project where French and English will be used. The system.gui.confirm() popup is always in english. How do i switch based on language selection? Or is the Yes / No part of the machine’s language settings?

Yes/no is coming from Java, so it’s not translatable.

This would be a great suggestion for our ideas forum.