i18nucleus core refactoring