i18n icon indicating copy to clipboard operation
i18n copied to clipboard

Improve user-friendly error output for Fluent

Open m-xim opened this issue 8 months ago • 1 comments

FTL file:

hello = Hello, <b>{ $firstname } { $lastname }</b>!

Before:

fluent.runtime.errors.FluentReferenceError: Unknown external: firstname

After:

aiogram_i18n.exceptions.FluentMessageError: 
2 errors for key 'hello':
  Unknown external: firstname (type=FluentReferenceError)
  Unsupported external type: lastname, <class 'NoneType'> (type=TypeError)

m-xim avatar May 10 '25 04:05 m-xim

@andrew000

m-xim avatar Jun 08 '25 13:06 m-xim