formatMessageWithErrors
fun formatMessageWithErrors(id: String, args: FluentArgs? = null): Pair<String?, List<FluentError>>(source)
Format a message and return both the result and any errors collected during resolution. Returns (null, [...]) for a missing message id and (null, []) for an empty-value message; otherwise (text, errors).
Use this when you need to inspect FluentErrors (missing references, cycle errors, etc.) rather than just the formatted output.