-
Notifications
You must be signed in to change notification settings - Fork 156
Expand file tree
/
Copy pathpt-br.js
More file actions
55 lines (51 loc) · 1.89 KB
/
pt-br.js
File metadata and controls
55 lines (51 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*!
* dataFormat.js language configuration
* language : portuguese brazil (pt-br)
* author : Fernando Leal : https://github.com/fernandocode
*/
(function (global) {
'use strict';
var language = {
i18n: {
dayNames: [
'Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab',
'Domingo', 'Segunda-Feira', 'Terça-Feira', 'Quarta-Feira', 'Quinta-Feira', 'Sexta-Feira', 'Sábado'
],
monthNames: [
'Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez',
'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'
]
},
masks: {
'default': 'ddd dd mmm yyyy HH:MM:ss',
'shortDate': 'd/m/yy',
'mediumDate': 'dd/mm/yyyy',
'longDate': 'd mmmm, yyyy',
'fullDate': 'dddd, d mmmm, yyyy',
'shortTime': 'H:MM',
'mediumTime': 'H:MM:ss',
'longTime': 'H:MM:ss Z',
'isoDate': 'yyyy-mm-dd',
'isoTime': 'HH:MM:ss',
'isoDateTime': 'yyyy-mm-dd\'T\'HH:MM:sso',
'isoUtcDateTime': 'UTC:yyyy-mm-dd\'T\'HH:MM:ss\'Z\'',
'expiresHeaderFormat': 'ddd, dd mmm yyyy HH:MM:ss Z'
}
};
// Node
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && global.dateFormat) {
if (!global.dateFormat.language) {
global.dateFormat.language = [];
}
global.dateFormat.language['pt-br'] = language;
}
// set default (Browser)
if (global.dateFormat.language['pt-br']) {
global.dateFormat.i18n = global.dateFormat.language['pt-br'].i18n;
global.dateFormat.masks = global.dateFormat.language['pt-br'].masks;
}
}(this));