The translation feature has been available on Gboard for Android since 2017.
Google has added the "Translate" feature on its third-party keyboard - Gboard - for iOS users to allow them to type and translate text into different languages. According to Google Translate website, it supports a total of 103 languages. Users can also manually choose the input language if Google Translate gets it wrong, though the app is often very accurate. Text can be copy and pasted in to be translated. The Translate feature remembers the previous output language, speeding up future translations. The updated Gboard app is now available in Apple's App Store and offers a number of other features that are not available in the stock Apple keyboard, including glide typing.