_l10nInit() {
        const l10nData = [];
        let l10nFiles;

        try {
            l10nFiles = lsSync(this.config.l10n, 0);
        } catch (e) {
            log.fatal(`Unable to find the localization data file ${this.config.l10nFile}`);

            return this;
        }

        l10nFiles.forEach(filepath => {
            l10nData.push(loadYaml(filepath));
        });

        // Merge the objects in reverse order so that the first one loaded wins.
        this._l10nData = deepExtend.apply(deepExtend, l10nData.reverse());
        this._l10nFormatter = new MessageFormat(this.locale).compile(this._l10nData);

        return this;
    }
/**
     * Load the string resources and formatters used for localization.
     *
     * @private
     * @returns {this}
     */
Load the string resources and formatters used for localization.
@private
@returns {this}
Load the string resources and formatters used for localization . @private @returns { this }
_l10nInit() {
        const l10nData = [];
        let l10nFiles;
        try {
            l10nFiles = lsSync(this.config.l10n, 0);
        } catch (e) {
            log.fatal(`Unable to find the localization data file ${this.config.l10nFile}`);
            return this;
        }
        l10nFiles.forEach(filepath => {
            l10nData.push(loadYaml(filepath));
        });
        this._l10nData = deepExtend.apply(deepExtend, l10nData.reverse());
        this._l10nFormatter = new MessageFormat(this.locale).compile(this._l10nData);
        return this;
    }
_l10nInit ( ) { const l10nData = [ ] ; let l10nFiles ; try { l10nFiles = lsSync ( this . config . l10n , 0 ) ; } catch ( e ) { log . fatal ( ` ${ this . config . l10nFile } ` ) ; return this ; } l10nFiles . forEach ( filepath => { l10nData . push ( loadYaml ( filepath ) ) ; } ) ; this . _l10nData = deepExtend . apply ( deepExtend , l10nData . reverse ( ) ) ; this . _l10nFormatter = new MessageFormat ( this . locale ) . compile ( this . _l10nData ) ; return this ; }
Load the string resources and formatters used for localization.
Load the string resources and formatters used for localization .
// Merge the objects in reverse order so that the first one loaded wins.