Learning Bug Context for PyTorch-to-JAX Translation with LLMs