import { Locale } from './types' ; export abstract class InlangError extends Error { } export class UninitializedError extends InlangError { constructor ( ) { super ( `Inlang is not initialized. Did you forget to setTranslations()?` ) ; } } export class MissingVariableError extends InlangError { constructor ( input , args = { } ) { super ( `Missing variable "${ args . specificVariable ?? 'variable' }" for "${ input }"` ) ; } } export class UnknownVariableError extends InlangError { constructor ( input , args = { } ) { super ( `Unknown variable "${ args . specificVariable }" for "${ input }"` ) ; } } export class TranslationsDoNotExistError extends InlangError { constructor ( args ) { super ( `Translations for the specified locale "${ args . locale }" 
            do not exist (yet). If the warning is unexpected, have you published your changes?` ) ; } } export class UnknownError extends InlangError { constructor ( message ) { super ( message ) ; } }