Custom translation gets deleted on plugin update

The WordPress automatic update deletes the plugin directory before unzipping the new version. Any suggestions on how to handle this, besides maintaining the language files outside the plugin folder?