Transformer does not work on DC. Direct current have a variable magnetic field induced if fed through the primary winding of transformer. Thus, only a constant magnetic field will act o secondary and shall not induce any voltage across the terminals of the same. So, it works on AC circuits only.