I tried translating the game into Japanese, but the text ends up overflowing on both sides. How can I fix this?

I ran into this exact same issue and managed to engineer an automated line-wrapping and UI font fix that completely solves the text overflow on both sides (you can see it working in my post with screenshots right below!). Feel free to email me at zxxz14371@gmail.com if you want help fixing your Japanese pack!