import { FLAGS } from '~/utils' ; export abstract class BaseTagSystem { normalize ( locale ? , fallback = 'en' , strict = false ) { return locale || fallback ; } toBCP47 ( str ) { return str ; } fromBCP47 ( bcp47 ) { return bcp47 ; } toFlagname ( locale ) { return undefined ; } getFlagName ( locale ) { const flag = this . toFlagname ( locale ) ; if ( ! flag || ! FLAGS . includes ( flag ) ) return 'unknown' ; return flag ; } lookup ( locale ) { return locale ; } }