-
-
Save caillou/1446583 to your computer and use it in GitHub Desktop.
{ | |
de : { | |
today: "heute um %time", | |
tomorrow: 'morgen um %time', | |
next: '%weekday um %time', | |
yesterday: 'gestern um %time', | |
last: 'letzten %weekday um %time' | |
}, | |
it: { | |
today: 'Oggi alle %time', | |
tomorrow: 'Domani alle %time', | |
next: '%weekday alle %time', | |
yesterday: 'Ieri alle %time', | |
last: 'lo scorso %weekday alle %time' | |
}, | |
en: { | |
today: 'Today at %time', | |
tomorrow: 'Tomorrow at %time', | |
next: '%weekday at %time', // e.g. Friday at 13:45 | |
yesterday: 'Yesterday at %time', | |
last: 'last %weekday at %time' // e.g. last Sunday at 13:45 | |
}, | |
en-GB : { | |
today: 'Today at %time', | |
tomorrow: 'Tomorrow at %time', | |
next: '%weekday at %time', // e.g. Friday at 13:45 | |
yesterday: 'Yesterday at %time', | |
last: 'last %weekday at %time' // e.g. last Sunday at 13:45 | |
}, | |
es : { | |
today: 'hoy a las %time', | |
tomorrow: 'mañana a las %time', | |
next: '%weekday a las %time', | |
yesterday: 'ayer a las %time', | |
last: 'el %weekday pasado a las %time' | |
}, | |
fr : { | |
today: "ajourd'hui à %time", | |
tomorrow: 'demain à %time', | |
next: '%weekday à %time', | |
yesterday: 'hier à %time', | |
last: '%weekday denier à %time' | |
}, | |
it : { | |
today: '', | |
tomorrow: '', | |
next: '', | |
yesterday: '', | |
last: '' | |
}, | |
kr : { | |
today: '', | |
tomorrow: '', | |
next: '', | |
yesterday: '', | |
last: '' | |
}, | |
nb : { | |
today: '', | |
tomorrow: '', | |
next: '', | |
yesterday: '', | |
last: '' | |
}, | |
nl : { | |
today: '', | |
tomorrow: '', | |
next: '', | |
yesterday: '', | |
last: '' | |
}, | |
pl : { | |
today: 'Dziś o %time', | |
tomorrow: 'Jutro o %time', | |
next: 'W %weekday o %time', // e.g. Friday at 13:45 | |
yesterday: 'Wczoraj o %time', | |
last: 'W zeszły/łą %weekday o %time' // e.g. last Sunday at 13:45 | |
}, | |
pt : { | |
today: '', | |
tomorrow: '', | |
next: '', | |
yesterday: '', | |
last: '' | |
}, | |
ru : { | |
today: '', | |
tomorrow: '', | |
next: '', | |
yesterday: '', | |
last: '' | |
}, | |
sv : { | |
today: 'Idag klockan %time', | |
tomorrow: 'Imorgon klockan %time', | |
next: '%weekday klockan %time', | |
yesterday: 'Igår klockan %time', | |
last: 'Förra %weekdayen klockan %time' | |
} | |
} |
@robnyman: is the postfix 'en' for every day? Then I could just do the following:
last: 'Förra {%weekday}en klockan %time'
Yes, that should work fine!
Dutch:
"nl" : {
today: 'vandaag om %time',
tomorrow: 'morgen om %time',
next: '%weekday om %time',
yesterday: 'gisteren om %time',
last: 'verleden %weekday om %time'
},
"pt" : {
today: 'Hoje às %time',
tomorrow: 'Amanhã às %time',
next: '%weekday às %time',
yesterday: 'Ontem às %time',
last: 'Último(a) %weekday às %time'
},
Thx @ruanmer ... Portuguese is pushed!
just added danish translation in fork
@mrbase: I'd love to integrate it… But this is just an addition to an existing framework. So you'd need to add danish here first: https://github.com/timrwood/moment/tree/master/lang
fair @caillou, just added a pull request to moment with the danish translation
"kr" : {
today: function(){ return this.format('오늘 a h:mm') },
tomorrow: function(){ return this.format('내일 a h:mm') },
next: function(){ return this.format('dddd a h:mm') },
yesterday: function(){ return this.format('어제 a h:mm') },
last: function(){ return this.format('지난주 dddd a h:mm') }
},
I'm not sure, but it could possibly work.
danish now added to moment
Albanian
"sq" : {
today: 'Sot në %time',
tomorrow: 'Nesër në %time',
next: '%weekday në %time',
yesterday: 'Dje në %time',
last: 'e kaluar %weekday në %time'
},
Swedish:
en-GB : {
today: 'Idag klockan %time',
tomorrow: 'Imorgon klockan %time',
next: '%weekday klockan %time', // e.g. Friday at 13:45
yesterday: 'Igår klockan %time',
last: 'Förra %weekday klockan %time' // e.g. last Sunday at 13:45
},
You could also omit the word klockan in most cases, When it comes to last weekday of a kind, it's a bit different in Swedish.
For instance, Wednesday is onsdag, but last Wednesday is förra onsdagen (see the addition at the end).