googlesamples / mlkit

A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS
Apache License 2.0
3.51k stars 2.92k forks source link

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

Open bkhezry opened 6 months ago

bkhezry commented 6 months ago

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

ai-plays commented 6 months ago

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?

bkhezry commented 5 months ago

@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.