public static GetIndexedObjects()

in src/loaderUtils.ts [19:37]


    public static GetIndexedObjects(pathToLocales: string, skipEnUs?: boolean): IndexedObjects {
        let indexedObject: IndexedObjects = new IndexedObjects();

        let locales: string[] = fs.readdirSync(pathToLocales);

        if (skipEnUs) {
            locales = locales.filter(x => x !== "en-US");
        }

        locales.filter(x => x !== "qps-ploc" && fs.lstatSync(path.join(pathToLocales, x)).isDirectory()).forEach((locale) => {
            let localePath: string = path.join(pathToLocales, locale);

            let fileString: string = fs.readFileSync(path.join(localePath, "resources.resjson"), "utf8");

            indexedObject[locale] = JSON.parse(fileString.replace('\uFEFF', ''));
        });

        return indexedObject;
    }