"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LanguagesMatcher = void 0;
const tslib_1 = require("tslib");
const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
const base_1 = require("./base");
class LanguagesMatcher extends base_1.Matcher {
    matches({ language }, { matchLanguages }) {
        if (is_1.default.undefined(matchLanguages)) {
            return null;
        }
        if (is_1.default.undefined(language)) {
            return false;
        }
        return matchLanguages.includes(language);
    }
}
exports.LanguagesMatcher = LanguagesMatcher;
//# sourceMappingURL=languages.js.map