fix has behavior when flag are not defined at buildtime
add doc for i18n