add translation on client side and moving isLoading into a directive