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

feat: added in languages #88

Closed Hallidayo closed 1 year ago

Hallidayo commented 1 year ago

What kind of change does this PR introduce?

Feature - Localization

What is the new behavior?

I've added in some starter translations into auth. The following have been added:

Language Code
Chinese (Simplified) zh_tw
Chinese (Traditional) zh_cn
Danish dk
Dutch nl
Finnish fi
French fr
Greek gr
Hindi hi
Italian it
Korean ko
Malay ms
Norwegian no
Polish pl
Portuguese pt
Russian ru
Serbian se
Sinhala si
Spanish es
Swedish se
Thai ti
Turkish tu
Ukrainian uk

Additional context

These translations were all done using Google Translate

@MildTomato @thorwebdev @silentworks

silentworks commented 1 year ago

Thank you for this @Hallidayo but we are looking to remove localization from the distributed auth-ui as its making the npm package huge for people who don't need all languages. I will leave this PR open as we re-evaluate how to best approach this.

ki7 commented 1 year ago

Hello all. @silentworks This feature would be much appreciated obviously. If hands are need once the approche found, i' ll be more than happy to help.

silentworks commented 1 year ago

Thanks for this PR, we've moved all additional languages to a new directory in the root of this repository. This is because we no longer ship the additional languages with any of the packages, It is now up to the user to import the package they wish to use into their project by downloading the files from this repository.