Skip to content

v2.1.6

Choose a tag to compare

@github-actions github-actions released this 13 Sep 21:53
· 137 commits to main since this release
f80c010

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.