Skip to content

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

Notifications You must be signed in to change notification settings

seasox/RswiftStringTransform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published