Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
13
node_modules/relative-time-format/modules/CLDR/getLocalesList.js
generated
vendored
Normal file
13
node_modules/relative-time-format/modules/CLDR/getLocalesList.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
/**
|
||||
* Returns a list of all locales supported by CLDR.
|
||||
* @return {string[]}
|
||||
*/
|
||||
|
||||
export default function getLocalesList() {
|
||||
return fs.readdirSync(path.join(__dirname, '../../node_modules/cldr-dates-full/main/')).filter(function (name) {
|
||||
return fs.statSync(path.join(__dirname, '../../node_modules/cldr-dates-full/main', name)).isDirectory();
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=getLocalesList.js.map
|
||||
Reference in New Issue
Block a user