Finish the translate function.The whole project's function is complete.