0

I have a project with primary login, signup, and home screen functionalities. In my project, the string keys are not taking the value from localizable strings. It is not getting from the bundle path. Here is the code where I am calling the strings file. It works fine in the English language but not working in the french language.

Screen Shot:-

Add language

Screen Shot

Automatic created two files one is English and another one is french.

Screen Shot

When I run the app in the English language works fine, but When I change the language from the scheme, I get the error below when I run the app in the french language.

Screen Shot

Change Language

Screen Shot

Localizable.strings

French

Screen Shot

English

Screen Shot

View Controller and Localization Extension

Screen Shot

Alert Enum

Screen Shot

Question: How to run the app in french and English language?

Can someone please explain to me how to do this, I've tried with the above but have no results yet. Correct me if I'm wrong.

Any help would be greatly appreciated.

Sham Dhiman
  • 1,348
  • 1
  • 21
  • 59
  • You need to regenerate the localizable of `Main.storyboard`. it's an heavy task each time for storyboard/xib translations. For instance, open the `Main.storyboard` as source code (xml), and look for the OxB-JS, etc. I guess it disappeared, you removed/recreated it so its "id" if not there anymore. – Larme Mar 09 '23 at 10:34
  • @Larme, I recreated it again. Delete the old one. But still, the same issue occurs. Could you please give me any idea or any example which helping me? – Sham Dhiman Mar 09 '23 at 10:53
  • Unable to "load" strings files seems to be in fact the issue, it's strange. It's rejecting the slash. Do you still have that error message? – Larme Mar 09 '23 at 11:26
  • @Larme Yes. Now I added the Localizable.strings file. Check the updated question, please. – Sham Dhiman Mar 09 '23 at 11:58

0 Answers0