Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
19
node_modules/javascript-time-ago/modules/LocaleDataStore.js
generated
vendored
Normal file
19
node_modules/javascript-time-ago/modules/LocaleDataStore.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// Fallback locale.
|
||||
// (when not a single one of the supplied "preferred" locales is available)
|
||||
var defaultLocale = 'en'; // For all locales added
|
||||
// their relative time formatter messages will be stored here.
|
||||
|
||||
var localesData = {};
|
||||
export function getLocaleData(locale) {
|
||||
return localesData[locale];
|
||||
}
|
||||
export function addLocaleData(localeData) {
|
||||
if (!localeData) {
|
||||
throw new Error('[javascript-time-ago] No locale data passed.');
|
||||
} // This locale data is stored in a global variable
|
||||
// and later used when calling `.format(time)`.
|
||||
|
||||
|
||||
localesData[localeData.locale] = localeData;
|
||||
}
|
||||
//# sourceMappingURL=LocaleDataStore.js.map
|
||||
Reference in New Issue
Block a user