0

Hello I have app with 2 language strings file

en.strings tr.strings

and my strings file codes here

en.strings

language = "English";

tr.strings

language = "Turkish";

I want to show in my link which language using current user example;

  let commingLanguage: String =  String(format: NSLocalizedString("language", comment: ""))


  print(commingLanguage)  // giving output nothing

i want to use commingLanguage string English or Turkish value ? How can i do that my codes dont showing

SwiftDeveloper
  • 7,244
  • 14
  • 56
  • 85

1 Answers1

1

I believe the syntax should be:

"language" = "English";
koen
  • 5,383
  • 7
  • 50
  • 89
  • Then maybe this helps: http://stackoverflow.com/questions/25081757/whats-nslocalizedstring-equivalent-in-swift – koen Mar 14 '16 at 19:40