Get shipping translation according to language

Hello I am able to get the product title and other language dependent attributes with respect to language by quering to the particular view table. But I have seen that the Shipping unit for shipping is same for both English and German. Tables store Days, Weeks and Months in both view tables. But When I see the front end of the shop it display with translation. I want to know how front end works. How it do translation of Dsys, weeks and months with respect to language? I have checked the documentation but unable to find any method for it.

Regards,
Awais Qarni

Found the answer… For others use the following code


oxLang::getInstance()->translateString( 'days', 1), false )

Where 1 is the language code in which you want the translation.

Thanks for your own feedback at least, Awais :wink: