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 -
https://erpnext.com/docs/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples

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