23 lines
639 B
JavaScript
23 lines
639 B
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const path_1 = __importDefault(require("path"));
|
|
const immutable_1 = __importDefault(require("immutable"));
|
|
class Language extends immutable_1.default.Record({
|
|
title: String(),
|
|
path: String()
|
|
}) {
|
|
getTitle() {
|
|
return this.get("title");
|
|
}
|
|
getPath() {
|
|
return this.get("path");
|
|
}
|
|
getID() {
|
|
return path_1.default.basename(this.getPath());
|
|
}
|
|
}
|
|
exports.default = Language;
|