Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If the an empty string is passed to AITranslator.translate, then echo it back. This does two things: - Aligns with the spec more since it wants us to echo back any non-translatable content. - Fixes an issue where passing an empty string to translate causes us to reject the translate promise. Fixed: 392057205, 395120677 Change-Id: I05bda0c7b8b75145d9b9fd58183bdaf174e8dd95 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6245038 Commit-Queue: Nathan Memmott <memmott@chromium.org> Reviewed-by: Ming-Ying Chung <mych@chromium.org> Cr-Commit-Position: refs/heads/main@{#1421657}
- Loading branch information