Framework for layout and rendering of i18n text