diff --git a/components/calendar/locale/en_GB.tsx b/components/calendar/locale/en_GB.tsx new file mode 100644 index 0000000000..0d081144e5 --- /dev/null +++ b/components/calendar/locale/en_GB.tsx @@ -0,0 +1,2 @@ +import en_GB from '../../date-picker/locale/en_GB'; +export default en_GB; diff --git a/components/calendar/locale/fr_FR.tsx b/components/calendar/locale/fr_FR.tsx new file mode 100644 index 0000000000..98c62aa754 --- /dev/null +++ b/components/calendar/locale/fr_FR.tsx @@ -0,0 +1,2 @@ +import fr_FR from '../../date-picker/locale/fr_FR'; +export default fr_FR; diff --git a/components/calendar/locale/it_IT.tsx b/components/calendar/locale/it_IT.tsx new file mode 100644 index 0000000000..907792ffbe --- /dev/null +++ b/components/calendar/locale/it_IT.tsx @@ -0,0 +1,2 @@ +import it_IT from '../../date-picker/locale/it_IT'; +export default it_IT; diff --git a/components/calendar/locale/nl_BE.tsx b/components/calendar/locale/nl_BE.tsx new file mode 100644 index 0000000000..7f36785fe3 --- /dev/null +++ b/components/calendar/locale/nl_BE.tsx @@ -0,0 +1,2 @@ +import nl_BE from '../../date-picker/locale/nl_BE'; +export default nl_BE; diff --git a/components/date-picker/locale/en_GB.tsx b/components/date-picker/locale/en_GB.tsx new file mode 100644 index 0000000000..8032469e05 --- /dev/null +++ b/components/date-picker/locale/en_GB.tsx @@ -0,0 +1,17 @@ +import CalendarLocale from 'rc-calendar/lib/locale/en_GB'; +import TimePickerLocale from '../../time-picker/locale/en_GB'; +import assign from 'object-assign'; + +// Merge into a locale object +const locale = { + lang: assign({ + placeholder: 'Select date', + rangePlaceholder: ['Start date', 'End date'], + }, 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; diff --git a/components/date-picker/locale/fr_FR.tsx b/components/date-picker/locale/fr_FR.tsx new file mode 100644 index 0000000000..9b45d1a76a --- /dev/null +++ b/components/date-picker/locale/fr_FR.tsx @@ -0,0 +1,17 @@ +import CalendarLocale from 'rc-calendar/lib/locale/fr_FR'; +import TimePickerLocale from '../../time-picker/locale/fr_FR'; +import assign from 'object-assign'; + +// Merge into a locale object +const locale = { + lang: assign({ + placeholder: 'Sélectionner une date', + rangePlaceholder: ['Date de début', 'Date de fin'], + }, CalendarLocale), + timePickerLocale: assign({}, TimePickerLocale), +}; + +// All settings at: +// https://github.com/ant-design/ant-design/issues/424 + +export default locale; diff --git a/components/date-picker/locale/it_IT.tsx b/components/date-picker/locale/it_IT.tsx new file mode 100644 index 0000000000..4516505eb7 --- /dev/null +++ b/components/date-picker/locale/it_IT.tsx @@ -0,0 +1,17 @@ +import CalendarLocale from 'rc-calendar/lib/locale/it_IT'; +import TimePickerLocale from '../../time-picker/locale/it_IT'; +import assign from 'object-assign'; + +// Merge into a locale object +const locale = { + lang: assign({ + placeholder: 'Selezionare la data', + rangePlaceholder: ['Data d\'inizio', 'Data di fine'], + }, CalendarLocale), + timePickerLocale: assign({}, TimePickerLocale), +}; + +// All settings at: +// https://github.com/ant-design/ant-design/issues/424 + +export default locale; diff --git a/components/date-picker/locale/nl_BE.tsx b/components/date-picker/locale/nl_BE.tsx new file mode 100644 index 0000000000..9e7385e33a --- /dev/null +++ b/components/date-picker/locale/nl_BE.tsx @@ -0,0 +1,17 @@ +import CalendarLocale from 'rc-calendar/lib/locale/nl_BE'; +import TimePickerLocale from '../../time-picker/locale/nl_BE'; +import assign from 'object-assign'; + +// Merge into a locale object +const locale = { + lang: assign({ + placeholder: 'Selecteer datum', + rangePlaceholder: ['Begin datum', 'Eind datum'], + }, CalendarLocale), + timePickerLocale: assign({}, TimePickerLocale), +}; + +// All settings at: +// https://github.com/ant-design/ant-design/issues/424 + +export default locale; diff --git a/components/locale-provider/en_GB.tsx b/components/locale-provider/en_GB.tsx new file mode 100644 index 0000000000..260799ad4f --- /dev/null +++ b/components/locale-provider/en_GB.tsx @@ -0,0 +1,46 @@ +import moment from 'moment'; +moment.locale('en-gb'); + +import Pagination from 'rc-pagination/lib/locale/en_GB'; +import DatePicker from '../date-picker/locale/en_GB'; +import TimePicker from '../time-picker/locale/en_GB'; +import Calendar from '../calendar/locale/en_GB'; + +export default { + locale: 'en-gb', + DatePicker, + TimePicker, + Calendar, + Table: { + filterTitle: 'Filter Menu', + filterConfirm: 'OK', + filterReset: 'Reset', + emptyText: 'No Data', + selectAll: 'Select Current Page', + selectInvert: 'Select Invert', + }, + Modal: { + okText: 'OK', + cancelText: 'Cancel', + justOkText: 'OK', + }, + Popconfirm: { + okText: 'OK', + cancelText: 'Cancel', + }, + Transfer: { + notFoundContent: 'Not Found', + searchPlaceholder: 'Search here', + itemUnit: 'item', + itemsUnit: 'items', + }, + Select: { + notFoundContent: 'Not Found', + }, + Upload: { + uploading: 'Uploading...', + removeFile: 'Remove file', + uploadError: 'Upload error', + previewFile: 'Preview file', + }, +}; diff --git a/components/locale-provider/fr_FR.tsx b/components/locale-provider/fr_FR.tsx new file mode 100644 index 0000000000..2698bc0313 --- /dev/null +++ b/components/locale-provider/fr_FR.tsx @@ -0,0 +1,39 @@ +import moment from 'moment'; +moment.locale('fr'); + +import Pagination from 'rc-pagination/lib/locale/fr_FR'; +import DatePicker from '../date-picker/locale/fr_FR'; +import TimePicker from '../time-picker/locale/fr_FR'; +import Calendar from '../calendar/locale/fr_FR'; + +export default { + locale: 'fr', + Pagination, + DatePicker, + TimePicker, + Calendar, + Table: { + filterTitle: 'Filtrer', + filterConfirm: 'OK', + filterReset: 'Réinitialiser', + emptyText: 'Aucune donnée', + }, + Modal: { + okText: 'OK', + cancelText: 'Annuler', + justOkText: 'OK', + }, + Popconfirm: { + okText: 'OK', + cancelText: 'Annuler', + }, + Transfer: { + notFoundContent: 'Pas de résultat', + searchPlaceholder: 'Recherche', + itemUnit: 'élément', + itemsUnit: 'éléments', + }, + Select: { + notFoundContent: 'Pas de résultat', + }, +}; diff --git a/components/locale-provider/it_IT.tsx b/components/locale-provider/it_IT.tsx new file mode 100644 index 0000000000..7b90e4ea4b --- /dev/null +++ b/components/locale-provider/it_IT.tsx @@ -0,0 +1,47 @@ +import moment from 'moment'; +moment.locale('it'); + +import Pagination from 'rc-pagination/lib/locale/it_IT'; +import DatePicker from '../date-picker/locale/it_IT'; +import TimePicker from '../time-picker/locale/it_IT'; +import Calendar from '../calendar/locale/it_IT'; + +export default { + locale: 'it', + Pagination, + DatePicker, + TimePicker, + Calendar, + Table: { + filterTitle: 'Menu Filtro', + filterConfirm: 'OK', + filterReset: 'Reset', + emptyText: 'Nessun dato', + selectAll: 'Seleziona pagina corrente', + selectInvert: 'Selezionare Inverti', + }, + Modal: { + okText: 'OK', + cancelText: 'Annulla', + justOkText: 'OK', + }, + Popconfirm: { + okText: 'OK', + cancelText: 'Annulla', + }, + Transfer: { + notFoundContent: 'Non trovato', + searchPlaceholder: 'Cerca qui', + itemUnit: 'articolo', + itemsUnit: 'elementi', + }, + Select: { + notFoundContent: 'Non trovato', + }, + Upload: { + uploading: 'Caricamento...', + removeFile: 'Rimuovi il file', + uploadError: 'Errore di caricamento', + previewFile: 'Anteprima file', + }, +}; diff --git a/components/locale-provider/nl_BE.tsx b/components/locale-provider/nl_BE.tsx new file mode 100644 index 0000000000..f8eaa8e0db --- /dev/null +++ b/components/locale-provider/nl_BE.tsx @@ -0,0 +1,46 @@ +import moment from 'moment'; +moment.locale('nl-be'); + +import Pagination from 'rc-pagination/lib/locale/nl_BE'; +import DatePicker from '../date-picker/locale/nl_BE'; +import TimePicker from '../time-picker/locale/nl_BE'; +import Calendar from '../calendar/locale/nl_BE'; + +export default { + locale: 'nl-be', + DatePicker, + TimePicker, + Calendar, + Table: { + filterTitle: 'FilterMenu', + filterConfirm: 'OK', + filterReset: 'Reset', + emptyText: 'Geen gegevens', + selectAll: 'Selecteer huidige pagina', + selectInvert: 'Selecteer huidige pagina', + }, + Modal: { + okText: 'OK', + cancelText: 'Annuleer', + justOkText: 'OK', + }, + Popconfirm: { + okText: 'OK', + cancelText: 'Annuleer', + }, + Transfer: { + notFoundContent: 'Niet gevonden', + searchPlaceholder: 'Zoek hier', + itemUnit: 'item', + itemsUnit: 'items', + }, + Select: { + notFoundContent: 'Niet gevonden', + }, + Upload: { + uploading: 'Uploaden...', + removeFile: 'Bestand verwijderen', + uploadError: 'Upload fout', + previewFile: 'Preview bestand', + }, +}; diff --git a/components/time-picker/locale/en_GB.tsx b/components/time-picker/locale/en_GB.tsx new file mode 100644 index 0000000000..b95b5a3625 --- /dev/null +++ b/components/time-picker/locale/en_GB.tsx @@ -0,0 +1,5 @@ +const locale = { + placeholder: 'Select time', +}; + +export default locale; diff --git a/components/time-picker/locale/fr_FR.tsx b/components/time-picker/locale/fr_FR.tsx new file mode 100644 index 0000000000..e6fca5d4e1 --- /dev/null +++ b/components/time-picker/locale/fr_FR.tsx @@ -0,0 +1,5 @@ +const locale = { + placeholder: 'Sélectionner l\'heure', +}; + +export default locale; diff --git a/components/time-picker/locale/it_IT.tsx b/components/time-picker/locale/it_IT.tsx new file mode 100644 index 0000000000..16dd65d4e2 --- /dev/null +++ b/components/time-picker/locale/it_IT.tsx @@ -0,0 +1,5 @@ +const locale = { + placeholder: 'Selezionare il tempo', +}; + +export default locale; diff --git a/components/time-picker/locale/nl_BE.tsx b/components/time-picker/locale/nl_BE.tsx new file mode 100644 index 0000000000..7318ca9f6e --- /dev/null +++ b/components/time-picker/locale/nl_BE.tsx @@ -0,0 +1,5 @@ +const locale = { + placeholder: 'Selecteer tijd', +}; + +export default locale;