implement dialog window and i18n in client-side