Guest User

Untitled

a guest
Oct 16th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. extension L10n {
  2. fileprivate static func tr(_ key: String, _ args: CVarArg...) -> String {
  3. // Load from App's Bundle first
  4. let format: String = NSLocalizedString(
  5. key,
  6. bundle: Bundle.main,
  7. value: NSLocalizedString(key, bundle: Bundle(for: SportStringsBundleToken.self), value: "", comment: ""),
  8. comment: ""
  9. )
  10. return String(format: format, locale: Locale.current, arguments: args)
  11. }
  12. }
Add Comment
Please, Sign In to add comment