There seems to be an internal check in Google Translate that tries to ensure that the output length is consistent with the input length, otherwise it will fall back to the old translation model. However, you can fool this check by padding your input with a bunch of dots.