diff --git a/packages/record/src/errors.ts b/packages/record/src/errors.ts index f8fb2fcf..a8503eb2 100644 --- a/packages/record/src/errors.ts +++ b/packages/record/src/errors.ts @@ -229,3 +229,15 @@ export class ImageNotFoundError extends Error { super(`"${id}" image not found.`); } } + +/** Error throw what specified language isn't found */ +export class TranslationNotFoundError extends Error { + /** + * This will be thrown when attempting to init i18n + * + * @param baseName - Language a2code with region + */ + public constructor(baseName: string) { + super(`"${baseName}" translation not found.`); + } +}