Thank you for contacting WPML support.
- Please use updated code: ...
- Then go to WPML -> Theme and Plugins localization -> Rescan strings in your theme.
- Go to WPML >> String translation >> Search for the string you want to translate >> Add translation >> Check "Translation is complete” >> Save.