Move error i18n to client side