Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
mobile ruleP1universalStack: mobile
mobilei18nlocalization
Localize every user-facing string
Run visible text through the localization system (.localize()/NSLocalizedString/strings resources), never hardcode display copy in the view.
PR: mobile-mining-2026-06Created: Jul 5, 2026
Bad example
Old codeswift
| 1 | label.text = "Wine list" |
Explanation (EN)
Objašnjenje (HR)
Good example
New codeswift
| 1 | label.text = "wine-list".localize() |
Explanation (EN)
Objašnjenje (HR)