Translations don't work

Hi, I created custom script for adding button in the sales invoice, then I added translation for this button’s label but it doesn’t work.
maybe someone had the same problem and can help me?

You may want to use the __() for translations.

More help on custom scripts -

Thank you but I used __() before button’s label and my question isn’t about custom scripts