如何通过swiftGen

时间:2018-06-29 11:12:54

标签: swift localization

如何访问nslocalize字符串如何创建变量并在Build Phase中逐步调用swiftGen any

enum L10n {
  /// Edit Image
  case editScreenTitle

/// Unspecified
case imagekindUnspecified}
// swiftlint:enable type_body_length
extension L10n: CustomStringConvertible {
var description: String { return self.string }
var string: String {
switch self {
  case .editScreenTitle:
    return L10n.tr(key: "edit.screenTitle")

  case .imagekindUnspecified:
    return L10n.tr(key: "imagekind.unspecified")
  }}

0 个答案:

没有答案