From 7a384e3e4714bb82f06b9692d19b575b53fce53a Mon Sep 17 00:00:00 2001 From: Dale <1363082+dalemyers@users.noreply.github.com> Date: Tue, 11 Feb 2020 11:54:31 +0000 Subject: [PATCH] Delete README.md --- LocalizedStringKit/README.md | 44 ------------------------------------ 1 file changed, 44 deletions(-) delete mode 100644 LocalizedStringKit/README.md diff --git a/LocalizedStringKit/README.md b/LocalizedStringKit/README.md deleted file mode 100644 index 716b4bd..0000000 --- a/LocalizedStringKit/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# LocalizedStringKit.framework - -This framework provides a simplified API for localized strings and can be attached to all targets that need string localization. - -```swift -public func Localized(value: String, _ comment: String) -> String - -// ... - -let label = UILabel() -label.text = Localized("Mail", "The label text for the Mail tab.") -``` - -```objc -NSString *Localized(NSString *value, NSString *comment); - -// ... - -UILabel *label = [[UILabel alloc] init] -label.text = Localized(@"Mail", @"The label text for the Mail tab.") -``` - -... - -```bash -./LocalizedStringKit/localize.py - -git commit -a -m "Add localized label text for the Mail tab label" -``` - -## `localize.py` - -This script processes all of the source files (`*.swift` and `*.m`) for occurrences of the `Localized` function and translates them to `NSLocalizedString` function calls. Then the output is passed to `genstrings` to generate an updated `LocalizedStringKit/en.lproj/LocalizedStringKit.strings` file. - -The script currently searches these directories: - -- `app-ios` -- `ComposeShareExtension` -- `app-ios WatchKit App` -- `app-ios WatchKit Extension` -- `app-ios WatchOS App` -- `app-ios WatchOS App Extension` -- `OutlookUI` -- `AcompliKit`