FirebaseUI-iOS icon indicating copy to clipboard operation
FirebaseUI-iOS copied to clipboard

Localized strings ?

Open LeChatNoir69 opened this issue 10 years ago • 10 comments

Hi there, Objective-C under iOS9, last Firebase SDK, last FirebaseUI version. I try to add French support. So I just copy/paste strings from the FirebaseAuthUI.strings in my own .strings files but it doesn't work.

I then try to add FirebaseAuthUI.strings in my project but not better.

I can't get it work.

Any idea ?

Anyway, thxs for the great job :)

LeChatNoir69 avatar Aug 09 '16 21:08 LeChatNoir69

Is this a real bug ?

LeChatNoir69 avatar Aug 16 '16 06:08 LeChatNoir69

This is a bug on the framework's side. Localization is something we'd like to do all at once, rather than one locale at a time.

Unfortunately I'm not sure when we'll get around to doing that.

morganchen12 avatar Aug 16 '16 17:08 morganchen12

Ok. I understood that we can override strings file in our app project… Can I help in something (i’m french so I can at least produce the french file :))

Le 16 août 2016 à 19:12, Morgan Chen [email protected] a écrit :

This is a bug on the framework's side. Localization is something we'd like to do all at once, rather than one locale at a time.

Unfortunately I'm not sure when we'll get around to doing that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/firebase/FirebaseUI-iOS/issues/110#issuecomment-240170840, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJZOpXOO4SWHECSNMajkDgH0FkuOS4tks5qge91gaJpZM4JgiRa.

LeChatNoir69 avatar Aug 16 '16 20:08 LeChatNoir69

I think if you set the custom bundle like this, you should be able to use your own translations. authUI.customStringsBundle = [NSBundle mainBundle];

ch40w31 avatar Aug 16 '16 21:08 ch40w31

You’re right, It works :) Thxs !

Le 16 août 2016 à 23:02, Chao Wei [email protected] a écrit :

I think if you set the custom bundle like this, you should be able to use your own translations. authUI.customStringsBundle = [NSBundle mainBundle];

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/firebase/FirebaseUI-iOS/issues/110#issuecomment-240237845, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJZOiSpI0AYfHjnSgrOnRF5GX4y-z_iks5qgiVqgaJpZM4JgiRa.

LeChatNoir69 avatar Aug 16 '16 21:08 LeChatNoir69

Great! Thanks for the quick verification.

For anyone running into the same issue, this is documented at https://github.com/firebase/FirebaseUI-iOS/tree/master/FirebaseUI/Auth#custom-strings

ch40w31 avatar Aug 16 '16 21:08 ch40w31

Hi, like LeChatNoir69 I try to add french to my project.

I'am kind of lost, can I accomplish this using Podfile or should I do a manual install of FirebaseAuthUI in my project?

I already added in my appdelegate this lines:

FUIAuth *authUI = [FUIAuth defaultAuthUI];
authUI.customStringsBundle = [NSBundle mainBundle];

And I also added in my folder String: ->en.lproj->FirebaseAuthUI.strings ->fr.lproj->FirebaseAuthUI.strings

But I can't see any change in the UI. I'm not sure how to proceed. Any clues?

jrbecart avatar May 24 '17 04:05 jrbecart

You just have to define theses strings files in your project : FirebaseAuthUI.strings FirebaseFacebookAuthUI.strings FirebaseGoogleAuthUI.strings

Just look at theses files in the project and you'll find all keys too translate.

LeChatNoir69 avatar May 25 '17 06:05 LeChatNoir69

@LeChatNoir69 , @jrbecart it is not as easy as it sounds. I have been trying to do this for a while now without any success. Check this question from 4-5 months ago here: https://github.com/firebase/FirebaseUI-iOS/issues/125

If, however, there has been an update on this and now it works, please let me know. Cheers.

yorgosg avatar May 25 '17 12:05 yorgosg

@LeChatNoir69 It works!!!

I added this missing files: FirebaseFacebookAuthUI.strings FirebaseGoogleAuthUI.strings and Twitter

Thanks!

jrbecart avatar May 25 '17 14:05 jrbecart