updating the references to the languages directory as per @grappler's original implementation