import path from "path" ; import Immutable from "immutable" ; class Language extends Immutable . Record ( { title : String ( ) , path : String ( ) , } ) { getTitle ( ) { return this . get ( "title" ) ; } getPath ( ) { return this . get ( "path" ) ; } getID ( ) { return path . basename ( this . getPath ( ) ) ; } } export default Language ;