Add localization middleware in demo project