-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from diogot/watch-cleanup
Add localization to watch app
- Loading branch information
Showing
27 changed files
with
327 additions
and
115 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// Generated using SwiftGen, by O.Halligon — https://github.com/AliSoftware/SwiftGen | ||
|
||
import Foundation | ||
|
||
// swiftlint:disable file_length | ||
// swiftlint:disable line_length | ||
|
||
// swiftlint:disable type_body_length | ||
// swiftlint:disable nesting | ||
// swiftlint:disable variable_name | ||
// swiftlint:disable valid_docs | ||
// swiftlint:disable type_name | ||
|
||
enum L10n { | ||
|
||
enum Add { | ||
|
||
enum Button { | ||
/// Save | ||
static let save = L10n.tr("add.button.save") | ||
} | ||
} | ||
|
||
enum List { | ||
|
||
enum Button { | ||
/// Add | ||
static let add = L10n.tr("list.button.add") | ||
/// Done | ||
static let done = L10n.tr("list.button.done") | ||
} | ||
|
||
enum Denied { | ||
/// Access to Health data denied, you need to allow in Health App on your iPhone | ||
static let text = L10n.tr("list.denied.text") | ||
} | ||
|
||
enum LastEntry { | ||
/// Last Entry | ||
static let text = L10n.tr("list.last_entry.text") | ||
} | ||
|
||
enum Loading { | ||
/// Loading ... | ||
static let text = L10n.tr("list.loading.text") | ||
} | ||
|
||
enum NoEntry { | ||
/// No entry | ||
static let text = L10n.tr("list.no_entry.text") | ||
} | ||
|
||
enum NotDetermined { | ||
/// You need to authorize in your iPhone. | ||
static let text = L10n.tr("list.not_determined.text") | ||
} | ||
} | ||
} | ||
|
||
extension L10n { | ||
fileprivate static func tr(_ key: String, _ args: CVarArg...) -> String { | ||
let format = NSLocalizedString(key, bundle: Bundle(for: BundleToken.self), comment: "") | ||
return String(format: format, locale: Locale.current, arguments: args) | ||
} | ||
} | ||
|
||
private final class BundleToken {} | ||
|
||
// swiftlint:enable type_body_length | ||
// swiftlint:enable nesting | ||
// swiftlint:enable variable_name | ||
// swiftlint:enable valid_docs |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* Localizable.strings | ||
MyWeight | ||
|
||
Created by Diogo on 15/04/17. | ||
Copyright © 2017 Diogo Tridapalli. All rights reserved. */ | ||
|
||
"list.button.add" = "Add"; | ||
|
||
"list.button.done" = "Done"; | ||
|
||
"list.last_entry.text" = "Last Entry"; | ||
|
||
"list.loading.text" = "Loading ..."; | ||
|
||
"list.no_entry.text" = "No entry"; | ||
|
||
"list.denied.text" = "Access to Health data denied, you need to allow in Health App on your iPhone"; | ||
|
||
"list.not_determined.text" = "You need to authorize in your iPhone."; | ||
|
||
"add.button.save" = "Save"; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
Localizable.strings | ||
MyWeight | ||
|
||
Created by Diogo on 15/04/17. | ||
Copyright © 2017 Diogo Tridapalli. All rights reserved. | ||
*/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* Localizable.strings | ||
MyWeight | ||
|
||
Created by Diogo on 15/04/17. | ||
Copyright © 2017 Diogo Tridapalli. All rights reserved. */ | ||
|
||
"list.button.add" = "Adicionar"; | ||
|
||
"list.button.done" = "Pronto"; | ||
|
||
"list.last_entry.text" = "Última medida"; | ||
|
||
"list.loading.text" = "Carregando ..."; | ||
|
||
"list.no_entry.text" = "Sem medidas"; | ||
|
||
"list.denied.text" = "Acesso negado à suas medidas, você precisa ir ao App Saúde em seu iPhone para autorizar"; | ||
|
||
"list.not_determined.text" = "Você precisa autorizar no seu iPhone."; | ||
|
||
"add.button.save" = "Salvar"; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
desc 'Generate strings' | ||
task :swiftgen_strings do | ||
SWIFTGEN_STRINGS.each do |strings, generated| | ||
sh "#{SWIFTGEN_PATH} strings -template dot-syntax-swift3 --output '#{generated}' '#{strings}'" | ||
end | ||
end |
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
Oops, something went wrong.