« first day (2225 days earlier)      last day (1758 days later) » 

5:00 AM
Good Morning All
@Shubhank hi bro how r u ?
 
am good
how are you
 
i m also good bro
bro localization pr help chahiye thi
 
btao
 
how to implement localization
in app and without restarting the app change the app language
 
how are you doing currently
 
5:07 AM
currently i have read some of the tutorial links
and what i did is i have created a sample project and inside that i have taken a string file
 
okay
then ?
 
"title_text" = "желанный";
in string file i written that
when i change simlator language then i m able to see
change
but i want when i click a button inside app whole language will be change?
 
what is the code you have written
to show title_text
 
self.lblTitle.text = NSLocalizedString("title_text", comment: "")
 
yes there is another method
NSLocalizedString in which you can pass the language key yourself
 
5:23 AM
ok what is that
 
check the docs for the method
NSLocalizedString
 
ok bro
 
 
1 hour later…
6:33 AM
done?
 
no bro
 
 
2 hours later…
8:27 AM
why :p
 
bro tell me the step by step process so that i can implement in sample POC for localization
i have to convert my app to default English,French
@Shubhank
 
5
A: How can I change locale programmatically with Swift

mr.boyfoxUsable code in Swift 4: extension Bundle { private static var bundle: Bundle! public static func localizedBundle() -> Bundle! { if bundle == nil { let appLang = UserDefaults.standard.string(forKey: "app_lang") ?? "ru" let path = Bundle.main.path(forResour...

 
ok bro let me try given link
 
 
2 hours later…
10:34 AM
@Shubhankhi
 
11:23 AM
hi @Venkatesh
 

« first day (2225 days earlier)      last day (1758 days later) »