code prettify and add I18N function for models