Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1,938 additions
and
2,425 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
0001-locale-fix-importing-locales-using-path.resolve.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 129917559f40bf9ab29b8360abd2f78763fa625b Mon Sep 17 00:00:00 2001 | ||
From: Ventsislav Dimitrov <vdimitrovv@users.noreply.github.com> | ||
Date: Fri, 25 Oct 2019 18:02:23 +0100 | ||
Subject: [PATCH] [locale] fix: importing locales using path.resolve | ||
|
||
--- | ||
src/lib/locale/locales.js | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/src/lib/locale/locales.js b/src/lib/locale/locales.js | ||
index b0e030db..a689c97e 100644 | ||
--- a/src/lib/locale/locales.js | ||
+++ b/src/lib/locale/locales.js | ||
@@ -53,7 +53,8 @@ function loadLocale(name) { | ||
try { | ||
oldLocale = globalLocale._abbr; | ||
var aliasedRequire = require; | ||
- aliasedRequire('./locale/' + name); | ||
+ var path = aliasedRequire('path'); | ||
+ aliasedRequire(path.resolve(__dirname, './locale/' + name)); | ||
getSetGlobalLocale(oldLocale); | ||
} catch (e) {} | ||
} | ||
-- | ||
2.21.0 (Apple Git-122) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
//! moment.js locale configuration | ||
|
||
;(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' | ||
&& typeof require === 'function' ? factory(require('../moment')) : | ||
typeof define === 'function' && define.amd ? define(['../moment'], factory) : | ||
factory(global.moment) | ||
}(this, (function (moment) { 'use strict'; | ||
|
||
|
||
var ocLnc = moment.defineLocale('oc-lnc', { | ||
months : { | ||
standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split('_'), | ||
format: 'de genièr_de febrièr_de març_d\'abril_de mai_de junh_de julhet_d\'agost_de setembre_d\'octòbre_de novembre_de decembre'.split('_'), | ||
isFormat: /D[oD]?(\s)+MMMM/ | ||
}, | ||
monthsShort : 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split('_'), | ||
monthsParseExact : true, | ||
weekdays : 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split('_'), | ||
weekdaysShort : 'dg._dl._dm._dc._dj._dv._ds.'.split('_'), | ||
weekdaysMin : 'dg_dl_dm_dc_dj_dv_ds'.split('_'), | ||
weekdaysParseExact : true, | ||
longDateFormat : { | ||
LT : 'H:mm', | ||
LTS : 'H:mm:ss', | ||
L : 'DD/MM/YYYY', | ||
LL : 'D MMMM [de] YYYY', | ||
ll : 'D MMM YYYY', | ||
LLL : 'D MMMM [de] YYYY [a] H:mm', | ||
lll : 'D MMM YYYY, H:mm', | ||
LLLL : 'dddd D MMMM [de] YYYY [a] H:mm', | ||
llll : 'ddd D MMM YYYY, H:mm' | ||
}, | ||
calendar : { | ||
sameDay : '[uèi a] LT', | ||
nextDay : '[deman a] LT', | ||
nextWeek : 'dddd [a] LT', | ||
lastDay : '[ièr a] LT', | ||
lastWeek : 'dddd [passat a] LT', | ||
sameElse : 'L' | ||
}, | ||
relativeTime : { | ||
future : 'd\'aquí %s', | ||
past : 'fa %s', | ||
s : 'unas segondas', | ||
ss : '%d segondas', | ||
m : 'una minuta', | ||
mm : '%d minutas', | ||
h : 'una ora', | ||
hh : '%d oras', | ||
d : 'un jorn', | ||
dd : '%d jorns', | ||
M : 'un mes', | ||
MM : '%d meses', | ||
y : 'un an', | ||
yy : '%d ans' | ||
}, | ||
dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, | ||
ordinal : function (number, period) { | ||
var output = (number === 1) ? 'r' : | ||
(number === 2) ? 'n' : | ||
(number === 3) ? 'r' : | ||
(number === 4) ? 't' : 'è'; | ||
if (period === 'w' || period === 'W') { | ||
output = 'a'; | ||
} | ||
return number + output; | ||
}, | ||
week : { | ||
dow : 1, // Monday is the first day of the week. | ||
doy : 4 | ||
} | ||
}); | ||
|
||
return ocLnc; | ||
|
||
}))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.