-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathViewController.swift
More file actions
23 lines (20 loc) · 733 Bytes
/
ViewController.swift
File metadata and controls
23 lines (20 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
// ViewController.swift
// LocalizeExample
//
// Created by Sacha DSO on 03/11/2017.
// Copyright © 2017 freshos. All rights reserved.
//
import UIKit
final class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Here simulates their usage in code
_ = NSLocalizedString("UntranslatedKey", comment: "")
_ = NSLocalizedString("IgnoredUntranslatedKey", comment: "")
_ = NSLocalizedString("MissingKey", comment: "")
_ = NSLocalizedString("DuplicatedKey", comment: "")
_ = NSLocalizedString("MissingKeyFromMain", comment: "This key is not present in master translation file")
_ = Localizable.title_test.localized
}
}