Skip to content

Releases: marcellosso/better-auth-localization

v3.0.0

04 Mar 21:17

Choose a tag to compare

Major Changes

  • Migrate to better-auth v1.5.0 (thanks @samerkh)

v.2.3.1

25 Feb 02:23

Choose a tag to compare

2.3.1

Patch Changes

  • Added missing permissions in release GH action

2.3.0

Minor Changes

  • Added support for Czech (cs-CZ) (thanks @michaeldoubek)
  • Added support for Captcha plugin

v2.2.2

10 Nov 23:12

Choose a tag to compare

Patch Changes

    • Added support for az-AZ (Azerbaijani) (thanks @mehdiasadli)
    • Added support for bn-BD (Bengali) (thanks @ktisakib)

v2.2.1

29 Oct 01:02

Choose a tag to compare

Patch Changes

  • Changes on DOC

v2.2.0

29 Oct 00:42

Choose a tag to compare

Minor Changes

    • Added support for translations in plugins (thanks @ylyra)
    • To contribute a new language, just run pnpm generate:locale and enter the language code, it will generate the new language files for you to edit and add translations (@ylyra is the best)
    • Added support for ckb-IQ (Kurdish Sorani) (thanks @didar-dev)

v2.1.10

22 Oct 17:27

Choose a tag to compare

Patch Changes

v2.1.9

14 Oct 03:49
cfdc06e

Choose a tag to compare

Patch Changes

  • Fix: Missing error USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL

v2.1.8

22 Sep 03:53

Choose a tag to compare

Patch Changes

  • fix: preserve original error codes in translations (thanks @tockawaffle)

v2.1.7

13 Sep 23:23
4be3e5a

Choose a tag to compare

Patch Changes

  • Fixed issue where translations were not applied on server side requests
  • Added support for Danish (Thanks @BjornFrancke)

v2.1.6

13 Sep 21:53
f80c010

Choose a tag to compare

Patch Changes

  • Providing custom translations no longer override the whole translation for used language
    Before when providing a custom translation for a specific error code, the whole translation for the language was overridden.

    localization({
      defaultLocale: "pt-BR",
      translations: {
        "pt-BR": {
          USER_NOT_FOUND: "Usuário não encontrado",
        },
      },
    });

    If any other error code happened, it would fallback to the default translation due to the code missing from the custom translation. Now it will just use the default translation.