Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixed translations for native date picker on Android #1684

Closed
3 tasks done
mciupka-dibit opened this issue Nov 22, 2023 · 5 comments
Closed
3 tasks done

Mixed translations for native date picker on Android #1684

mciupka-dibit opened this issue Nov 22, 2023 · 5 comments

Comments

@mciupka-dibit
Copy link

mciupka-dibit commented Nov 22, 2023

Bug Report

Problem

What is expected to happen?

The translation of the date picker should be completely in German.

What does actually happen?

2 buttons of the date picker are translated into English. The rest is German.

Samsung S23 App Debug

Information

Create new cordova project: "cordova create example-project"
Add platform: "cordova platform add android@latest"
At the example www folder: index.html: Insert
cordova run android
Click on datepicker
The datepicker looks like the image above.
The buttons marked with red circles are translated to english.
Expected behaviour: Buttons have the same language (german) than the rest.

Environment, Platform, Device

Devices with error:
Samsung Galaxy S23 / Samsung Galaxy S22
Android 14
One UI 6.0

Devices with no error:
Samsung Galaxy XCover Pro
Android 13
One UI 5.1

Seems to ab an issue with Android 14.
Tested with language German (Germany).
Please be aware that the emulator shows the correct translations. Only happens on real devices.
The devices have the standard configuration and there are no language addons etc. active.

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@breautek
Copy link
Contributor

This is likely an issue with the underlying webview rather than Cordova itself.

Cordova doesn't implement a date picker or any other HTML-DOM features, nor does it have any translations; that's provided by the webview. Some plugins may implement native UI but that doesn't seem to be the case here.

Since you have 2 Samsung devices where one exhibits the issue and the other doesn't. I'd start by recording the current Android System Webview version of both devices, then ensure both are up to date and at the same webview version. Android 13 and Android 14 devices both should have access to the same webview via Google Play. Then we can determine if the issue is either fixed, or if one breaks, either way I'd expect they will have consistent behaviour at this point.

Moving this issue to the cordova-android repo.

@breautek breautek transferred this issue from apache/cordova Nov 22, 2023
@mciupka-dibit
Copy link
Author

Samsung Galaxy S23 Android System Webview: Version 119.0.6045.67 => Problem exists
Samsung Galaxy XCover Pro Android System Webview: 115.0.5790.166 => No Problem

Samsung Galaxy XCover Pro Android System Webview: UPDATE to 119.0.6045.163 => Problem exists

Issue seems not to be fixed

@breautek
Copy link
Contributor

Yes, it does seem to have been recently introduced by the webview, as you can observe going from 115 to 119 breaks the language. It would probably be best to report your findings at https://bugs.chromium.org/p/chromium/issues/list

Please be aware that the emulator shows the correct translations. Only happens on real devices.

On this note, your current observations may also explain why it doesn't reproduce on the simulators. Android simulators ships with AOSP android, so they tend to have a really old version of the webview installed. If you install a Google Play enabled simulator with a Google Play enabled image, then the simulator will have Google Play and behave more closely to a retail device. You'll have the ability to login to a google account and update the webview to the latest version available. If you do this, I'd suspect you'll also observe the language issue on the simulator.

@mciupka-dibit
Copy link
Author

mciupka-dibit commented Nov 22, 2023

Thanks. I will report the issue there.

Here is the issue:
https://bugs.chromium.org/p/chromium/issues/detail?id=1504549

@jcesarmobile
Copy link
Member

closing since it's a bug in the WebView and it's already reported on the chromium repository, follow the linked issue for updates

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants