firebase / firebaseui-web

FirebaseUI is an open-source JavaScript library for Web that provides simple, customizable UI bindings on top of Firebase SDKs to eliminate boilerplate code and promote best practices.
https://firebase.google.com/
Apache License 2.0
4.58k stars 1.06k forks source link

💁🏻‍♂️ Feedback and suggestions about localization within Firebase #662

Open ScreamZ opened 4 years ago

ScreamZ commented 4 years ago

In 2020, localization is not an option anymore

It's a first-class feature that is required in almost every project.

I know that firebase is free, but still… I'm paying for services due to my usage. I think this would be a great thing for both firebase platform and users to be able to translate this module correctly. You'll reach more developers and we would be even happier to build apps ;)

This is not something very hard I guess when we know the technical level of people like @CodingDoug @jenperson @ToddKerpelman and many others @ firebase (ping @nicolasgarnier).

Problem with current configuration

I don't think many people keep using the UMD CDN build, most people build their app using react/vue or even angular… (I'm sorry WordPress users 😅)

Everything gets packaged in something like webpack or rollup… ES6 / CommonJS is a need.

If you have a multi-localized app, it's not scalable. You can't even simply update the lib to leverage patches.

Simple Solution

I would be very happy to help with that, but I think It would be quicker for me to rework all of this with react-js due to the complexity of the code here Ahah 😅 But even though, I can help on some parts (@nicolasgarnier if you need some help on react)

Best wishes for this Christmas,

Andréas

barbalex commented 4 years ago

I am developing an app for users in Switzerland, using firebase auth. I can configure email to arrive in German. But the Login pops up in English and that is not adjustable?

Somehow this makes me think that firebase auth could be the next service that Google will suddenly kill. It certainly does not look like it gets a lot of love.

Google may not have realized, but most of the world speaks other languages. In Switzerland we speak four (I myself three of them). And none of them is English.

So I guess I will have to use a different service.

bojeil-google commented 4 years ago

Hey @barbalex, please follow the instructions on localization as documented in the README. We have supported localization for years. Google does realize the importance of supporting non-English languages.

barbalex commented 4 years ago

@bojeil-google Please tell me how I should do that in a Gatsby app using firebaseui-web-react. There is an issue about this here: https://github.com/firebase/firebaseui-web-react/issues/21.

barbalex commented 4 years ago

Plus: This issue would enable using your own wording. For instance: German is not the same as Swiss German. And not every app would want to use the same sentences. A more flexible approach would help a lot.

barbalex commented 4 years ago

Please don't understand me wrong: I am not trying to talk firebase auth bad. I am trying to use it instead of auth0. Which was WAY to complicated. So far I have really enjoyed the dev experience with firebase auth. This has been the first hickup.

bojeil-google commented 4 years ago

Hey @barbalex, we do support a lot of languages but unfortunately we can't support all the languages in the world. You can also add your own customized translation by plugging it here and then rebuilding with your own translations.

barbalex commented 4 years ago

Yeah, but how am I going to integrate the rebuilt version with firebaseui-web-react? (or probably vue or angular)

bojeil-google commented 4 years ago

I will reach out to colleagues who own the react version to respond to your question. Unfortunately, I am not the react expert. It may be hard to perceive, but even Firebase has limited resources. We have tons of things we are working on which we think offer great value to our developers and that developers will love. This means we have to prioritize things on our end and shift resources from one place to another. That sometimes also means we can't build everything that gets requested (at least not in the timelines that people expect) and we do get a lot of requests.

barbalex commented 4 years ago

They (or is that them?) have contacted you here https://github.com/firebase/firebaseui-web-react/issues/21#issuecomment-371528237 requesting npm-versions of the localizations. That was two years ago and nothing has changed.

This issue proposes another solution that might be even better.

I realize that not everything is possible. Thanks anyway for your feedback.

jhuleatt commented 4 years ago

@barbalex for gatsby-specific localization questions, please file a new issue in firebaseui-web-react and @ me so that I can help without cluttering this thread. Let's keep this issue focused on the original feature request to make firebaseui-web itself more configurable.

landsman commented 2 years ago

Guys let's do something with this, please. It's a shame.

As I mentioned here: https://github.com/firebase/firebaseui-web-react/issues/21#issuecomment-987801917. The community can help, if you will prepare the battle plan 🙏