Apple’s Stringsdict approaches this exact problem, though unfortunately first-party documentation is limited. It’s a pretty mature mechanism and yes pretty freely within apple’s own frameworks. See “plural and gender support” here:
https://www.objc.io/issues/9-strings/string-localization/#Pl...