A composition including a lubricant based on polyol esters (POEs) or PVE and a refrigerant F including from 1 to 99% by weight of trans-1,3,3,3-tetrafluoropropene (trans-HFO-1234ze) and from 1 to 99% by weight of 1,1,1,2-tetrafluoroethane. Also, the use of the composition including a lubricant and refrigerant in refrigeration, air conditioning and heat pumps.