Place the eggplants in a saucepan, cover with water and add salt. Bring to a boil and cook for 8-10 minutes. Check with a knife: the eggplant flesh should become soft, but not fall apart.
Transfer the eggplants to a plate and cool slightly. Finely chop the garlic or press it through a garlic press.
Cut the eggplants into large pieces and stuff them with garlic.
Place peppercorns and bay leaf on the bottom of the jar. You can add spices to your taste. Place the stuffed eggplants in the jar and pour in the brine. Close the lid. Now you can put them in the refrigerator to soak overnight. Serve the eggplants with onions and vegetable oil.