Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 520 Bytes

README.md

File metadata and controls

7 lines (5 loc) · 520 Bytes

RswiftStringTransform

Scripts for transforming NSLocalizedString(_:comment:) calls to Rswift string resource, based on https://gist.github.com/Lutzifer/3e7d967f73e38b57d4355f23274f303d

I hacked this real quick and hope it might be useful for anybody. This should successfully convert most NSLocalizedString without placeholders to R.string.localized calls if you use ASCII keys for your localizables. NSLocalizedString with placeholders will cause compile time errors.

Usage: sh replaceNSlocalized.sh