fixes #14741 - translate template kind string, not object
Also convert translation keys to strings in debug mode to preventconcatenation errors.
fixes #14741 - translate template kind string, not object
Also convert translation keys to strings in debug mode to prevent
concatenation errors.