-1

I want to add localisation to my framework, some texts for errors description.

How I can do it? Standard approach with Localizable.strings and NSLocalizedString does not work.

I read about bundles, but I don't know how to add bundle with localisation correctly.

Some one can help?

5
  • do you mean localize the error log info? Commented Mar 16, 2017 at 13:31
  • Its not important Commented Mar 16, 2017 at 13:35
  • if localize something, it should in iPhone sand-box, do your framework in sand-box? Commented Mar 16, 2017 at 13:38
  • What do you mean?.. Commented Mar 16, 2017 at 14:50
  • do you mean localize a text file in yourself's framework? but where the framework is, in the iOS application, if not in sand box library, can not write data. Commented Mar 16, 2017 at 14:53

1 Answer 1

-2

use Bundle(for: yourClassName.self)

Sign up to request clarification or add additional context in comments.

1 Comment

Do you have a snippet which localizes a string using your Bundle suggestion?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.