You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[react-native-paper-dates] The locale en is not registered, see README!, key: typeInDate #473
import { registerTranslation } from 'react-native-paper-dates'
registerTranslation('pl', {
save: 'Save',
selectSingle: 'Select date',
selectMultiple: 'Select dates',
selectRange: 'Select period',
notAccordingToDateFormat: (inputFormat) =>
`Date format must be ${inputFormat}`,
mustBeHigherThan: (date) => `Must be later then ${date}`,
mustBeLowerThan: (date) => `Must be earlier then ${date}`,
mustBeBetween: (startDate, endDate) =>
`Must be between ${startDate} - ${endDate}`,
dateIsDisabled: 'Day is not allowed',
previous: 'Previous',
next: 'Next',
typeInDate: 'Type in date',
pickDateFromCalendar: 'Pick date from calendar',
close: 'Close',
})
I'm really happy because I successfully resolved the issue that was causing a warning. It feels great to have everything working smoothly now. Thanks so much for your help!
I think the problem stems from the documentation using en-gb as an example.
Replacing registerTranslation("en-GB", enGB); with registerTranslation("en", enGB); fixes the problem for me and doesnt require you to implement your own custom localisation.
Reacted by Ahsan Abrar, Ezekiel Komolafe, omar zaoujal, Mohammed Alsammarrai, Salah Eddine Ben Elarradia, TufayelM, Olfdev, Abhinav Deshmukh, Mir Habib Ul Latif 🇧🇩 🇵🇸, Armen and 2 more
Activity
pfiwinf commentedon Nov 4, 2023
Got the same issue
fbpatel003 commentedon Nov 5, 2023
I have same issue !
pfiwinf commentedon Nov 5, 2023
found this:
https://web-ridge.github.io/react-native-paper-dates/docs/intro
Scroll down to Custom, you can register your own locale, seems like a workaround. With this it worked for me.
UIT19521334 commentedon Jan 10, 2024
Can you explain more about the way to fix the warning
pfiwinf commentedon Jan 10, 2024
I just registered my preferred language at the "Custom" part in https://web-ridge.github.io/react-native-paper-dates/docs/intro.
Like:
And here i just added my own translation.
UIT19521334 commentedon Jan 10, 2024
I'm really happy because I successfully resolved the issue that was causing a warning. It feels great to have everything working smoothly now. Thanks so much for your help!
Nicholson85 commentedon Feb 5, 2024
I think the problem stems from the documentation using en-gb as an example.
Replacing
registerTranslation("en-GB", enGB);withregisterTranslation("en", enGB);fixes the problem for me and doesnt require you to implement your own custom localisation.asaduryan commentedon Oct 8, 2024
Check this
https://web-ridge.github.io/react-native-paper-dates/docs/intro/#supported