import stringifySourcePresets , { sourcePresets } from './sources' ; const enabledSources = sourcePresets . map ( ( { id , name , fromto } ) => ( { id , name , fromto } ) ) ; const translationConfig = { translation_hotkey : 'enter' , translation_recent : [ ] , translation_recent_numbers : 10 , translation_picked : [ ] , translation_current_source : enabledSources [ 0 ] , translation_enabled_sources : enabledSources , translation_sources : stringifySourcePresets , } ; export const prefixer = ( name ) : string => `translation_${ name }` ; export default translationConfig ;