@microblink/blinkid-in-browser-sdk
Version:
A simple ID scanning library for WebAssembly-enabled browsers.
81 lines (80 loc) • 5.32 kB
TypeScript
/**
* Copyright (c) Microblink Ltd. All rights reserved.
*/
export declare const defaultTranslations: {
readonly "help-button-lobby-tooltip": "Need help?";
readonly "help-button-back": "Back";
readonly "help-button-next": "Next";
readonly "help-button-done": "Done";
readonly "help-button-start-scanning": "Start Scanning";
readonly "help-doc-valid-title": "Keep all the details visible";
readonly "help-doc-valid-description": "Make sure you keep the document well lit. All document fields should be visible on the camera screen.";
readonly "help-doc-invalid-invisible-fields-title": "Keep all the details visible";
readonly "help-doc-invalid-invisible-fields-description": "Make sure you aren't covering parts of the document with a finger, including the bottom lines. Also, watch out for hologram reflections that go over the document fields.";
readonly "help-doc-invalid-harsh-light-title": "Watch out for harsh light";
readonly "help-doc-invalid-harsh-light-description": "Avoid direct harsh light because it reflects from the document and can make parts of the document unreadable. If you can't read data on the document, it won't be visible to the camera either.";
readonly "help-doc-invalid-to-much-motion-title": "Keep still while scanning";
readonly "help-doc-invalid-to-much-motion-description": "Try to keep the phone and document still while scanning. Moving either can blur the image and make data on the document unreadable.";
readonly "action-alt-camera": "Device camera";
readonly "action-alt-gallery": "From gallery";
readonly "action-message": "Scan or choose from gallery";
readonly "action-message-camera": "Device camera";
readonly "action-message-camera-disabled": "Camera disabled";
readonly "action-message-camera-not-allowed": "Camera not allowed";
readonly "action-message-camera-in-use": "Camera in use";
readonly "action-message-image": "From gallery";
readonly "action-message-image-not-supported": "Not supported";
readonly "camera-disabled": "Camera disabled";
readonly "camera-not-allowed": "Cannot access camera.";
readonly "camera-in-use": "Camera is already used by another application.";
readonly "camera-generic-error": "Cannot access camera.";
readonly "camera-feedback-scan-front": readonly ["Scan the front side", "of a document"];
readonly "camera-feedback-scan-back": readonly ["Scan the back side", "of a document"];
readonly "camera-feedback-flip": "Flip to the back side";
readonly "camera-feedback-barcode-message": "Scan the barcode";
readonly "camera-feedback-move-farther": "Move farther";
readonly "camera-feedback-move-closer": "Move closer";
readonly "camera-feedback-adjust-angle": "Adjust the angle";
readonly "camera-feedback-blur": "Keep still";
readonly "camera-feedback-glare": "Tilt or move document to remove reflections";
readonly "camera-feedback-wrong-side": "Flip the document";
readonly "camera-feedback-face-photo-covered": "Keep face photo fully visible";
readonly "camera-feedback-barcode": readonly ["Scan the barcode"];
readonly "camera-feedback-move-top-page": "Move to the top page";
readonly "camera-feedback-move-bottom-page": "Move to the bottom page";
readonly "camera-feedback-move-left-page": "Move to the left page";
readonly "camera-feedback-move-right-page": "Move to the right page";
readonly "camera-feedback-scan-top-page": "Scan the top page";
readonly "camera-feedback-scan-bottom-page": "Scan the bottom page";
readonly "camera-feedback-scan-left-page": "Scan the left page";
readonly "camera-feedback-scan-right-page": "Scan the right page";
readonly "drop-info": "Drop image here";
readonly "drop-error": "Whoops, we don't support that image format. Please upload a JPEG or PNG file.";
readonly "initialization-error": "Failed to load component. Try using another device or update your browser.";
readonly "process-image-box-first": "Front side image";
readonly "process-image-box-second": "Back side image";
readonly "process-image-box-add": "Add image";
readonly "process-image-upload-cta": "Upload";
readonly "process-image-message": "Just a moment.";
readonly "process-image-message-inline": "Processing";
readonly "process-image-message-inline-done": "Processing done";
readonly "process-api-message": "Just a moment";
readonly "process-api-retry": "Retry";
readonly "feedback-scan-unsuccessful-title": "Scan unsuccessful";
readonly "feedback-scan-unsuccessful": "We weren't able to recognize your document. Please try again.";
readonly "feedback-error-generic": "Whoops, that didn't work. Please give it another go.";
readonly "check-internet-connection": "Check internet connection.";
readonly "network-error": "Network error.";
readonly "scanning-not-available": "Scanning not available.";
readonly "modal-window-close": "Close";
};
export type Translations = typeof defaultTranslations;
export type TranslationKey = keyof Translations;
export type TranslationValue = string | string[];
export type GenericTranslations = Record<TranslationKey, TranslationValue>;
export declare class TranslationService {
translations: GenericTranslations;
constructor(alternativeTranslations?: Partial<GenericTranslations>);
i(key: TranslationKey): TranslationValue;
private isExpectedValue;
}