Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps and try to help with the issue quickly.
After implementing the custom code, you need to re-translate the current pages / make a small change, save and re-translate. For new pages, you can just search for the number value in ATE to translate it.