Ai And When in the YLT
2 verses of the Young's Literal Translation have both "ai" and "when".
Joshua 8:14 And it cometh to pass, when the king of Ai seeth it, that hasten, and rise early, and go out do the men of the city to meet Israel for battle, he and all his people, at the appointed season, at the front of the plain, and he hath not known that an ambush is against him, on the rear of the city.
Joshua 10:1 And it cometh to pass, when Adoni-Zedek king of Jerusalem heareth that Joshua hath captured Ai, and doth devote it (as he had done to Jericho and to her king so he hath done to Ai and to her king), and that the inhabitants of Gibeon have made peace with Israel, and are in their midst, --