Improve documentation and tests for i18n