new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Plugins · all subjects

i18n/overview

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

i18n error response format

When an error occurs and a translation is available, the response includes: code (the error code), message (the translated message), and originalMessage (the original English message). Example: { code: 'INVALID_EMAIL_OR_PASSWORD', message: 'Email ou mot de passe invalide', originalMessage: 'Invalid email or password' }.

i18n fallback behavior

The plugin applies the following fallback logic: if a translation is not found for a specific error code in the detected locale, the built-in English message is kept; if the detected locale is not in the translations dictionary, the plugin falls back to defaultLocale; if no locale can be detected from any strategy, the plugin falls back to defaultLocale (defaults to 'en'); non-error responses are never modified.

i18n common error codes

Common error codes that can be translated include: USER_NOT_FOUND ('User not found'), INVALID_EMAIL_OR_PASSWORD ('Invalid email or password'), INVALID_PASSWORD ('Invalid password'), CREDENTIAL_ACCOUNT_NOT_FOUND ('Credential account not found'), EMAIL_NOT_VERIFIED ('Email not verified'), SESSION_EXPIRED ('Session expired'). Full list available in Error Codes Reference.

Give your agent this brain