주의 : 요청당 5천자까지 번역이 권장되므로 대량의 텍스트엔 부적합하다.
준비해야 하는 패키지 : UipathTeam.String.Activities
App key는 프로젝트 사이트에 요청하는 게 일반적이나 개발자가 직접 받아야 되는 케이스가 있다.
그럼 프로젝트용으로 받은 구글 아이디에서 Console을 접속해 API를 받으면 된다.
[API 및 서비스 - 사용자 인증 정보 - API Key]
https://console.cloud.google.com/navigation-error;errorUrl=%2Fhome%2Fdashboard
Google Cloud Platform
하나의 계정으로 모든 Google 서비스를 Google Cloud Platform을 사용하려면 로그인하세요.
accounts.google.com
Key를 입력 후 Source Language Code와 Target Language Code를 입력하면 Input Text를 번역해 Output으로 돌려준다. [code는 하단 참조]
이때 언어 자동감지를 하게 하려면 Source Language Code를 빈 String("")으로 주면 된다.
[Language Codes]
https://developers.google.com/admin-sdk/directory/v1/languages
Languages Codes | Directory API | Google Developers
Send feedback Languages Codes The language codes in the table below are supported for the field Customer.language. Name Code Amharic am Arabic ar Basque eu Bengali bn English (UK) en-GB Portuguese (Brazil) pt-BR Bulgarian bg Catalan ca Cherokee chr Croatia
developers.google.com
'RPA Uipath' 카테고리의 다른 글
[Uipath] Before-After 기능을 간단히 쓰려고 하는 경우(문자열 편집 꿀팁) (0) | 2021.12.17 |
---|---|
[Uipath] 트리거 형태에 따라 다른 설정을 하여 작업하고 싶은 경우 (0) | 2021.11.29 |
[Uipath] 간단한 내용 일치 여부 판단 시 쓸 수 있는 방법 (1) | 2021.10.26 |
Uipath 인증서 교체 이슈(20.4 포함 그 이전 버전) (0) | 2021.10.19 |
[Uipath] 구조화된 텍스트를 DataTable로 가져와야 되는 경우 (0) | 2021.10.05 |