Add messages resource and preview generator script