We use the localization tools and APIs provided by Apple, e.g. NSLocalizedString
.
- All user-facing text should be made localizable with the
NSLocalizedString
family of APIs with correspondingLocalizable.stringsdict
files for plurals. - When formatting numbers and dates for display, use the "localized" API variants, such as
setLocalizedDateFormatFromTemplate(_:)
andlocalizedString(from:dateStyle:timeStyle:)
. - Consider using
String.variantFittingPresentationWidth(_:)
when creating adaptive widthString
s instead of using conditional logic.