How to translate WP plugin name?

I didn’t find the right way but figured out this way:

if (get_locale() == 'fa_IR') {
            parent::__construct(
                'araccordion_widget',
                __('افزونه وردپرس', $text_domain),
                array( 'description' => __( 'توضیحات افزونه به زبان فارسی در اینجا نوشته میشود.', $text_domain ), )
            );
        }
        else {
            parent::__construct(
                'araccordion_widget',
                __('WordPress Widget', $text_domain),
                array( 'description' => __( 'The description in English, goes here', $text_domain ), )
            );
        }

It works though it doesn’t seem the right way because if the widget is translated to more languages in the future, I’ve to add an elseif for it too. Otherwise the title and the desc will be still English in that new language.