Dash layout localization

I’m using django_plotly_dash in my django app
I’m trying to add arabic translation to dash screen
I tried to use normal django localization with gettext but it didn’t work
I’m wondering how multi language localization should be applied to normal dash applications?