fix has behavior when flag are not defined at buildtime
add doc for i18n
add has documentation and update README
add samples