supabase-community / auth-ui

Pre-built Auth UI for React
https://supabase.com/docs/guides/auth/auth-helpers/auth-ui
MIT License
487 stars 121 forks source link

Remove localization from Auth UI #97

Closed silentworks closed 1 year ago

silentworks commented 1 year ago

The localization files should be stored in a common package that can be used between all auth ui libraries.

Problems

  1. Currently we are duplicating the task of having every package bundling and storing the language files in their own independent directories. This creates an issue of maintenance and it also means that we have to load all languages when we only need one (or a few) for a given project.
  2. We currently have no way of localizing the Supabase error messages that are sent back from the auth server, until this has been resolved by including proper error codes with the error responses from the auth server there is no reliable way of creating localized messages in the auth-ui packages.
silentworks commented 1 year ago

This is being worked on in PR #130