Low commit activity in last 3 years
No release in over a year
Searches the code for extractable strings and allows interactive extraction to .strings file.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

localize plugin

fastlane Plugin Badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-localize, add it to your project by running:

fastlane add_plugin localize

About localize

Searches the code for extractable strings and allows interactive extraction to .strings file.

  • Whitelists non-extracted strings for further runs
  • Extracts as NSLocalizedString by default
  • Support for Swiftgen by supplying use_swiftgen:true

Example Gif

Run from Commandline

To show all options:

fastlane action localize

Example:

fastlane run localize strings_file:"Sources/Base/Supporting Files/en.lproj/Localizable.strings" file_filter:"Swiftgen,Sourcery" use_swiftgen:"true"

Run from Fastfile

desc "Search for localizable strings"
lane :localize_strings do
  localize(
    strings_file: "Sources/Base/Supporting Files/en.lproj/Localizable.strings",
    file_filter: "Swiftgen,Sourcery", # filters files with these words in their path
    use_swiftgen: "true" # remove to use NSLocalizableString instead
  )
end

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.