capacitor-translate
v0.0.18
Published
Capacitor Plugin to translate info
Downloads
56
Readme
capacitor-translate
Capacitor Plugin to translate info
Install
npm install capacitor-translate
npx cap syncAPI
translate(...)
translate(options: TranslateOptions) => Promise<TranslateResult>| Param | Type |
| ------------- | ------------------------------------------------------------- |
| options | TranslateOptions |
Returns: Promise<TranslateResult>
Interfaces
TranslateResult
| Prop | Type |
| -------------------- | ------------------------------ |
| SourceLanguage | string |
| TargetLanguage | string |
| ImageData | VisionImageData[] |
VisionImageData
| Prop | Type |
| -------------------- | ------------------------- |
| LogoInfoList | VisionItem[] |
| ObjectInfoList | VisionItem[] |
| LabelInfoList | VisionItem[] |
VisionItem
| Prop | Type |
| -------------------- | ------------------- |
| Name | string |
| TranslatedName | string |
| Score | number |
| Weight | number |
TranslateOptions
| Prop | Type |
| ---------------------- | ---------------------------------------------------------------------- |
| data | VisionPayload |
| targetLanguage | string |
| sourceLanguage | string |
| translateOptions | { logos?: boolean; objects?: boolean; labels?: boolean; } |
VisionPayload
| Prop | Type |
| --------------- | ------------------------------ |
| ImageData | VisionImageData[] |
