import Lang from "../types/lang" ; const getLanguage = ( lang ? ) => { switch ( typeof lang ) { case "object" : return lang ; case "string" : return require ( `suneditor/src/lang/${ lang }.js` ) ; default : return undefined ; } } ; export default getLanguage ;