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
Is your feature request related to a problem? Please describe.
Hi,
So, while using the ngx-bootstrap library, I just noticed that you're using the same config for the fr and fr-ca. But there is a minor difference in L formar(FR: DD/MM/YYY while FR-CA: YYYY-DD-MM) which is cauing problem in our app UI.
I've added the updated code. Please update it. thanks!
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
Please add following config!
import { LocaleData } from '../locale/locale.class';
//! moment.js locale configuration
//! locale : French Canadian [fr-CA]
//! author : John Fischer : https://github.com/jfroffice
export const frCALocale: LocaleData = {
abbr: 'fr-CA',
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
monthsParseExact: true,
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
weekdaysParseExact: true,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY-MM-DD', // Canadian format is different: Year-Month-Day
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm'
},
calendar: {
sameDay: '[Aujourd’hui à] LT',
nextDay: '[Demain à] LT',
nextWeek: 'dddd [à] LT',
lastDay: '[Hier à] LT',
lastWeek: 'dddd [dernier à] LT',
sameElse: 'L'
},
relativeTime: {
future: 'dans %s',
past: 'il y a %s',
s: 'quelques secondes',
ss: '%d secondes',
m: 'une minute',
mm: '%d minutes',
h: 'une heure',
hh: '%d heures',
d: 'un jour',
dd: '%d jours',
M: 'un mois',
MM: '%d mois',
y: 'un an',
yy: '%d ans'
},
dayOfMonthOrdinalParse: /\d{1,2}(er|e|)/,
ordinal(_num: number, period: string): string {
const num = Number(_num);
switch (period) {
case 'D':
return num + (num === 1 ? 'er' : '');
default:
case 'M':
case 'Q':
case 'DDD':
case 'd':
return num + (num === 1 ? 'er' : 'e');
case 'w':
case 'W':
return num + (num === 1 ? 're' : 'e');
}
},
week: {
dow: 1, // Monday is the first day of the week.
doy: 4 // The week that contains Jan 4th is the first week of the year.
}
};
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
No alternative
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Hi,
So, while using the ngx-bootstrap library, I just noticed that you're using the same config for the fr and fr-ca. But there is a minor difference in L formar(FR: DD/MM/YYY while FR-CA: YYYY-DD-MM) which is cauing problem in our app UI.
I've added the updated code. Please update it. thanks!
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
Please add following config!
The text was updated successfully, but these errors were encountered: