made translation widget self-contained