import { uniq } from 'lodash' ; import { LocaleTreeItem } from '~/views' ; import { Config } from '~/core' ; export async function markKeyInUse ( item ? ) { if ( ! item ) return ; const keypath = item . node . keypath ; Config . keysInUse = uniq ( [ ... Config . keysInUse , keypath ] ) ; }