Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added French translation + remove duplicates in en-US #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 34 additions & 3 deletions lib/datetime.js
@@ -1,4 +1,3 @@

var locales = { var locales = {
'en-US': { 'en-US': {
dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
Expand All @@ -24,8 +23,6 @@ var locales = {
hoursAgo: '%t hours ago', hoursAgo: '%t hours ago',
dayAgo: 'a day ago', dayAgo: 'a day ago',
daysAgo: '%t days ago', daysAgo: '%t days ago',
dayAgo: 'a day ago',
daysAgo: '%t days ago',


secondIn: 'in a second', secondIn: 'in a second',
secondsIn: 'in %t seconds', secondsIn: 'in %t seconds',
Expand All @@ -35,6 +32,40 @@ var locales = {
hoursIn: 'in %t hours', hoursIn: 'in %t hours',
dayIn: 'in a day', dayIn: 'in a day',
daysIn: 'in %t days', daysIn: 'in %t days',
},
'fr-FR': {
dayNames: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"],
dayNamesAbbreviated: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"],
monthNames: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août",
"Septembre", "Octobre", "Novembre", "Décembre"],
monthNamesAbbreviated: ["Jan", "Fev", "Mar", "Avr", "Mai", "Jui", "Jul",
"Aou", "Sep", "Oct", "Nov", "Dec"],

ampm: {'AM': 'AM', 'PM': 'PM'},

daySuffixes: {1: 'er', 2: 'nd', 3: 'eme', 4: 'eme'},

dateTimeFormat: '%a %d %b %Y %T %Z',
dateFormat: '%d/%m/%y',
timeFormat: '%T',

secondAgo: 'il y a une seconde',
secondsAgo: 'il y a %t secondes',
minuteAgo: 'il y a une minute',
minutesAgo: 'il y a %t minutes',
hourAgo: 'il y a une heure',
hoursAgo: 'il y a %t hours',
dayAgo: 'il y a un jour',
daysAgo: 'il y a %t jours',

secondIn: 'dans une seconde',
secondsIn: 'dans %t secondes',
minuteIn: 'dans une minute',
minutesIn: 'dans %t minutes',
hourIn: 'dans une heure',
hoursIn: 'dans %t heures',
dayIn: 'dans un jour',
daysIn: 'dans %t jours',
} }
}; };


Expand Down