build: rework i18n-sync.sh to support new structure