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

[MaterialDatePicker] Labels are not internationalized #868

Closed
nominalista opened this issue Jan 4, 2020 · 1 comment
Closed

[MaterialDatePicker] Labels are not internationalized #868

nominalista opened this issue Jan 4, 2020 · 1 comment
Labels

Comments

@nominalista
Copy link

Description: Each label occurs only in English, e.g. "Start date", "End date", "Cancel", "OK", etc. What's more the only way to change these texts is to override private string values, e.g. mtrl_picker_range_header_unselected.

Expected behavior: Either some customization or auto-internationalization of labels.

Material Library version: 1.1.0-r01

@nominalista nominalista added the bug label Jan 4, 2020
@pekingme
Copy link
Contributor

pekingme commented Jan 7, 2020

Hi @nominalista , auto-internationalization is kept low priority for current development phase. To customize these labels for other locales, please defines the corresponding string with the same resource names in the various locale resource directories.

How to use resources for localizations:
https://developer.android.com/guide/topics/resources/localization#using-framework

Resource names of used labels can be found here:
https://github.com/material-components/material-components-android/blob/master/lib/java/com/google/android/material/datepicker/res/values/strings.xml

dsn5ft added a commit that referenced this issue Sep 29, 2020
Resolves #761
Resolves #868
Resolves #1216
Resolves #1353
Resolves #1764

PiperOrigin-RevId: 334440771
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants