No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Remove unused localizations from your app
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Prune Localizations

This plugin removes unused localized files from your app.

Localized resources provided by third parties increase the size of your app and keeping resources your app will never use only bloats it.

##Requirements

Requires CocoaPods 0.36

Installation

$ gem install cocoapods-prune-localizations

Usage

In your Podfile, add this line:

plugin 'cocoapods-prune-localizations'

Localizations will be inferred from your project.

or if you would prefer to specify the localizations:

plugin 'cocoapods-prune-localizations', {:localizations => ["en", "es"]}

This will keep the English and Spanish localizations in the Pods. Modify the localizations to your needs.

##How it works

The plugin traverses the resources provided by Pods and removes references in the Xcode project of .lproj files that don't match the list provided.

A special case are .bundle file references because they are a package of different resources. As such, if any localized files are found unnecessary, a new bundle is created without those files and replaces the original in the project. These new bundles are located at Pods/Pruned Localized Bundles

Note: No file is actually removed from your computer, only references to them in the project