enhance i18n plugin to support relative path in plugin, and return smarter function, instead of object