Mass-metallicity relation of dwarf galaxies and its dependency on time: clues from resolved systems and comparison with massive galaxiesS. L. HidalgoA&A, 606 (2017) A115DOI: https://doi.org/10.1051/0004-6361/201630264