mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +08:00
feat: add fr_CA locale (#29748)
This commit is contained in:
parent
16218027bd
commit
e2eb810ed3
3
components/calendar/locale/fr_CA.tsx
Normal file
3
components/calendar/locale/fr_CA.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
import frCA from '../../date-picker/locale/fr_CA';
|
||||
|
||||
export default frCA;
|
27
components/date-picker/locale/fr_CA.tsx
Normal file
27
components/date-picker/locale/fr_CA.tsx
Normal file
@ -0,0 +1,27 @@
|
||||
import CalendarLocale from 'rc-picker/lib/locale/fr_CA';
|
||||
import TimePickerLocale from '../../time-picker/locale/fr_CA';
|
||||
import { PickerLocale } from '../generatePicker';
|
||||
|
||||
// Merge into a locale object
|
||||
const locale: PickerLocale = {
|
||||
lang: {
|
||||
placeholder: 'Sélectionner une date',
|
||||
yearPlaceholder: 'Sélectionner une année',
|
||||
quarterPlaceholder: 'Sélectionner un trimestre',
|
||||
monthPlaceholder: 'Sélectionner un mois',
|
||||
weekPlaceholder: 'Sélectionner une semaine',
|
||||
rangePlaceholder: ['Date de début', 'Date de fin'],
|
||||
rangeYearPlaceholder: ['Année de début', 'Année de fin'],
|
||||
rangeMonthPlaceholder: ['Mois de début', 'Mois de fin'],
|
||||
rangeWeekPlaceholder: ['Semaine de début', 'Semaine de fin'],
|
||||
...CalendarLocale,
|
||||
},
|
||||
timePickerLocale: {
|
||||
...TimePickerLocale,
|
||||
},
|
||||
};
|
||||
|
||||
// All settings at:
|
||||
// https://github.com/ant-design/ant-design/issues/424
|
||||
|
||||
export default locale;
|
File diff suppressed because it is too large
Load Diff
@ -32,6 +32,7 @@ import etEE from '../et_EE';
|
||||
import faIR from '../fa_IR';
|
||||
import fiFI from '../fi_FI';
|
||||
import frBE from '../fr_BE';
|
||||
import frCA from '../fr_CA';
|
||||
import frFR from '../fr_FR';
|
||||
import gaIE from '../ga_IE';
|
||||
import glES from '../gl_ES';
|
||||
@ -93,6 +94,7 @@ const locales = [
|
||||
faIR,
|
||||
fiFI,
|
||||
frBE,
|
||||
frCA,
|
||||
frFR,
|
||||
gaIE,
|
||||
glES,
|
||||
|
3
components/locale-provider/fr_CA.tsx
Normal file
3
components/locale-provider/fr_CA.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
import locale from '../locale/fr_CA';
|
||||
|
||||
export default locale;
|
62
components/locale/fr_CA.tsx
Normal file
62
components/locale/fr_CA.tsx
Normal file
@ -0,0 +1,62 @@
|
||||
import Pagination from 'rc-pagination/lib/locale/fr_CA';
|
||||
import DatePicker from '../date-picker/locale/fr_CA';
|
||||
import TimePicker from '../time-picker/locale/fr_CA';
|
||||
import Calendar from '../calendar/locale/fr_CA';
|
||||
import { Locale } from '../locale-provider';
|
||||
|
||||
const localeValues: Locale = {
|
||||
locale: 'fr',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtrer',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Réinitialiser',
|
||||
selectAll: 'Sélectionner la page actuelle',
|
||||
selectInvert: 'Inverser la sélection de la page actuelle',
|
||||
selectionAll: 'Sélectionner toutes les données',
|
||||
sortTitle: 'Trier',
|
||||
expand: 'Développer la ligne',
|
||||
collapse: 'Réduire la ligne',
|
||||
triggerDesc: 'Trier par ordre décroissant',
|
||||
triggerAsc: 'Trier par ordre croissant',
|
||||
cancelSort: 'Annuler le tri',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuler',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Annuler',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'Rechercher',
|
||||
itemUnit: 'élément',
|
||||
itemsUnit: 'éléments',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Aucune donnée',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Téléchargement...',
|
||||
removeFile: 'Effacer le fichier',
|
||||
uploadError: 'Erreur de téléchargement',
|
||||
previewFile: 'Fichier de prévisualisation',
|
||||
downloadFile: 'Télécharger un fichier',
|
||||
},
|
||||
Text: {
|
||||
edit: 'Éditer',
|
||||
copy: 'Copier',
|
||||
copied: 'Copie effectuée',
|
||||
expand: 'Développer',
|
||||
},
|
||||
PageHeader: {
|
||||
back: 'Retour',
|
||||
},
|
||||
};
|
||||
|
||||
export default localeValues;
|
8
components/time-picker/locale/fr_CA.tsx
Normal file
8
components/time-picker/locale/fr_CA.tsx
Normal file
@ -0,0 +1,8 @@
|
||||
import { TimePickerLocale } from '../index';
|
||||
|
||||
const locale: TimePickerLocale = {
|
||||
placeholder: "Sélectionner l'heure",
|
||||
rangePlaceholder: ['Heure de début', 'Heure de fin'],
|
||||
};
|
||||
|
||||
export default locale;
|
@ -46,6 +46,7 @@ The following languages are currently supported:
|
||||
| Persian | fa_IR |
|
||||
| Finnish | fi_FI |
|
||||
| French (Belgium) | fr_BE |
|
||||
| French (Canada) | fr_CA |
|
||||
| French (France) | fr_FR |
|
||||
| Irish (Ireland) | ga_IE |
|
||||
| Galician (Spain) | gl_ES |
|
||||
|
@ -43,6 +43,7 @@ return (
|
||||
| 波斯语 | fa_IR |
|
||||
| 芬兰语 | fi_FI |
|
||||
| 法语(比利时) | fr_BE |
|
||||
| 法语(加拿大) | fr_CA |
|
||||
| 法语(法国) | fr_FR |
|
||||
| 爱尔兰语 | ga_IE |
|
||||
| 加利西亚语(西班牙) | gl_ES |
|
||||
|
@ -131,8 +131,8 @@
|
||||
"rc-menu": "~8.10.0",
|
||||
"rc-motion": "^2.4.0",
|
||||
"rc-notification": "~4.5.2",
|
||||
"rc-pagination": "~3.1.2",
|
||||
"rc-picker": "~2.5.1",
|
||||
"rc-pagination": "~3.1.6",
|
||||
"rc-picker": "~2.5.10",
|
||||
"rc-progress": "~3.1.0",
|
||||
"rc-rate": "~2.9.0",
|
||||
"rc-resize-observer": "^1.0.0",
|
||||
|
Loading…
Reference in New Issue
Block a user