-
-
Notifications
You must be signed in to change notification settings - Fork 50.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update locale es_ES (Spanish) (#5932)
* Update locale es_ES (Spanish) * Fix indent
- Loading branch information
Showing
5 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,2 @@ | ||
import es_ES from '../../date-picker/locale/es_ES'; | ||
export default es_ES; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,17 @@ | ||
import CalendarLocale from 'rc-calendar/lib/locale/es_ES'; | ||
import TimePickerLocale from '../../time-picker/locale/es_ES'; | ||
import assign from 'object-assign'; | ||
|
||
// Merge into a locale object | ||
const locale = { | ||
lang: assign({ | ||
placeholder: 'Seleccionar fecha', | ||
rangePlaceholder: ['Fecha inicial', 'Fecha final'], | ||
}, CalendarLocale), | ||
timePickerLocale: assign({}, TimePickerLocale), | ||
}; | ||
|
||
// All settings at: | ||
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json | ||
|
||
export default locale; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,5 @@ | ||
const locale = { | ||
placeholder: 'Seleccionar hora', | ||
}; | ||
|
||
export default locale; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters