i18nbuild: implement syncing and add tests.