Multi language toolbar

Hello ,
My app has ltr and rtl languages

I am using toolbar to change main view and it worked well
but i have two issues
first : active class not working automatically so i used app.toolbar.setHighlight method to set active class

second : when i try to change language I use rtl file the active highlight moves in wrong way
ex :
in rtl language
the highlight at first link :

when i click on second link it becomes :

in ltr language :
the highlight at first link :

when i click on second link it becomes :

but when i change : translate3d(-100%, 0px, 0px) to be : translate3d(100%, 0px, 0px) it work will

so i think my problem in the way that the highlight translate
how i can change the way of setting the translate position when change the language from ltr to rtl