Skip to main content

Crate openauth_i18n

Crate openauth_i18n 

Source
Expand description

Internationalization plugin for OpenAuth (Better Auth i18n parity).

Re-exports§

pub use types::translation_dictionary;
pub use types::I18nOptions;
pub use types::LocaleDetectionStrategy;
pub use types::LocaleResolver;
pub use types::TranslationDictionary;
pub use types::TranslationKey;

Modules§

types
Options for the OpenAuth i18n plugin (parity with @better-auth/i18n).

Enums§

I18nConfigError

Constants§

VERSION
Crate version (matches Better Auth package version.ts intent).

Functions§

i18n
i18n plugin for OpenAuth: translates message on JSON error responses using code as the lookup key.