Hi Kaustubh Kamble,
OutSystems-supported translation is at design-time for all static text. When you change the locale, if there are static translations defined for that locale your application will use them.
Dynamic translation of text like you describe would require explicitly calling an external translation service (Google, Azure, etc...) when rendering any text that requires translation.