Change lang attribute inside templates