Differences between prod and src are usually big smells. If it was a silent failure (without any error in the console), it could mean that $translate is known but not yet initialized with the translations the moment it's called.

Seems like a timing/async issue to me. We probably were just lucky in src mode.