This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Class = "UIButton"; normalTitle = "Sort & Filter"; ObjectID = "2Sk-5H-KF9"; */ | |
"2Sk-5H-KF9.normalTitle" = "فرز وتصفية"; | |
/* Class = "UILabel"; text = "Search"; ObjectID = "448-81-bRb"; */ | |
"448-81-bRb.text" = "بحث"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SDWebImage | |
class FeedTableViewCell: UITableViewCell | |
{ | |
@IBOutlet weak var productNameLabel: UILabel! | |
@IBOutlet weak var storeNameLabel: UILabel! | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class FeedViewController: | |
UIViewController, | |
UITableViewDataSource | |
{ | |
@IBOutlet weak var feedTableView: UITableView! | |
fileprivate var productListener: Product.Listener? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
extension Locale | |
{ | |
var isRightToLeft: Bool | |
{ | |
get | |
{ | |
if let languageCode = self.languageCode | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func __(_ key: String) -> String | |
{ | |
return NSLocalizedString(key, comment: "") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expiryLabel.text = String(format: __("expires"), product.expires) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Arabic file | |
"expires" = "ينتهي %@"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// English file | |
"expires" = "Expires %@"; |