Skip to content

Instantly share code, notes, and snippets.

@rexxars rexxars/gist:1460020 forked from caillou/gist:1446583
Created Dec 11, 2011

Embed
What would you like to do?
Translation for relativeDate of moment.js
/*jslint white: false */
var langs;
langs = {
"de" : {
today: "heute um %time",
tomorrow: 'morgen um %time',
next: '%weekday um %time',
yesterday: 'gestern um %time',
last: 'letzten %weekday um %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: 'Oggi alle %time',
tomorrow: 'Domani alle %time',
next: '%weekday alle %time',
yesterday: 'Ieri alle %time',
last: 'lo scorso %weekday alle %time'
},
"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: 'Сегодня в %time',
tomorrow: 'Завтра в %time',
next: function () {
var nextArray, weekday;
weekday = parseInt(this.format('d'), 10);
nextArray = [
'В понедельник в %time',
'Во вторник в %time',
'В среду в %time',
'В четверг в %time',
'В пятницу в %time',
'В субботу в %time',
'В воскресенье в %time'
];
return nextArray[weekday];
},
yesterday: 'Вчера в %time',
last: function () {
var lastArray, weekday;
weekday = parseInt(this.format('d'), 10);
lastArray = [
'В прошлый понедельник в %time',
'В прошлый вторник в %time',
'В прошлую среду* в %time',
'В прошлый четверг в %time',
'В прошлую пятницу** в %time',
'В прошлую субботу*** в %time',
'В прошлое воскресенье в %time'
];
return lastArray[weekday];
}
},
"sv" : {
today: 'Idag klockan %time',
tomorrow: 'Imorgon klockan %time',
next: '%weekday klockan %time',
yesterday: 'Igår klockan %time',
last: 'Förra %weekdayen klockan %time'
},
"nb" : {
today: 'I dag klokken %time',
tomorrow: 'I morgen klokken %time',
next: '%weekday klokken %time',
yesterday: 'I går klokken %time',
last: 'Forrige %weekday klokken %time'
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.