| 12345678910111213141516171819202122 |
- //
- // LocalizedString.swift
- // LoopKit
- //
- // Created by Retina15 on 8/6/18.
- // Copyright © 2018 LoopKit Authors. All rights reserved.
- //
- import Foundation
- private class FrameworkBundle {
- static let main = Bundle(for: FrameworkBundle.self)
- }
- func LocalizedString(_ key: String, tableName: String? = nil, value: String? = nil, comment: String) -> String {
- if let value = value {
- return NSLocalizedString(key, tableName: tableName, bundle: FrameworkBundle.main, value: value, comment: comment)
- } else {
- return NSLocalizedString(key, tableName: tableName, bundle: FrameworkBundle.main, comment: comment)
- }
- }
|