googlesamples / mlkit

A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature request] Add a parameter to specify the locale of Document Scanner library

bkhezry opened this issue · comments

Enhance GmsDocumentScannerOptions with a parameter to specify the scanner activity's locale, allowing users to display scanner activity texts in a preferred language.

Currently, the strings in UI is based on the Android System Language Setting. Do you want to use a different language from System setting? Could you explain a bit more why you need this so we understand your use case better?

@ai-plays Imagine an app with multiple languages. If you change the language of the app, this language change will not be reported to the document scanning library and will be displayed with the default language of Android system.
For support multiple language's app, the library should get a config for specify the locale of the app.