Skip to content

nslocalizedstring_key

Ian Applebaum edited this page Jun 13, 2020 · 1 revision

NSLocalizedString Key

Static strings should be used as key in NSLocalizedString in order to genstrings work.

  • Identifier: nslocalizedstring_key
  • Enabled by default: Disabled
  • Supports autocorrection: No
  • Kind: lint
  • Analyzer rule: No
  • Minimum Swift compiler version: 3.0.0
  • Default configuration: warning

Non Triggering Examples

NSLocalizedString("key", comment: nil)
NSLocalizedString("key" + "2", comment: nil)

Triggering Examples

NSLocalizedString(method(), comment: nil)
NSLocalizedString("key_\(param)", comment: nil)
Clone this wiki locally