neeto-ui
neeto-ui copied to clipboard
Support translations.
Found few instances for hardcoded string.
BlockNavigation
- All of your unsaved changes will be lost. This can't be undone.
- Discard changes.
- You have unsaved changes
ActionBlock - Save changes
- Cancel
DatePicker - Today
Table - Insert column right
- Insert column left
- Column info
- Hide column
- Delete column
TimePicker - Hour
- Minute
- Seconds
TreeSelect - No options
We should translate these when using other locale.
I looked into antd and materialUI both uses react context api to set locale. I think internally we can use approach similar to our other packages, at the same time create a Provider component that handle locale/translations for external use.
antd: https://ant.design/components/config-provider mui: https://mui.com/material-ui/guides/localization/
cc: @josephmathew900 @AbhayVAshokan @ajmaln
@gaagul _a