Multilanguage website on two different domains

Method 1.
You can use .pot file to store translation and use wordpress default translator functions for all of your strings such as __e()

Method 2:
It is better to use any translator plugin since it will do all the necessory work for you.

Few of them are here

https://wpml.org/
https://wordpress.org/plugins/polylang/