Skip to content

redso/sniper

Repository files navigation

Sniper

[![CI Status](http://img.shields.io/travis/Paulo Lam/Sniper.svg?style=flat)](https://travis-ci.org/Paulo Lam/Sniper) Version License Platform

Sniper help you to manage localization strings in Google Spread Sheet.

Features

  • Sync strings file from Google Spread Sheet
  • Version control of strings in the same Google Spread Sheet
  • Cache latest strings file
  • Adding new language support on the fly, without submit new app
  • In App change language

Example

To sync strings file from Google Spread Sheet, you just need to get the key of your spread sheet file (make sure your spread sheet is public) Example: https://docs.google.com/spreadsheets/d/1Cx4POxesRmDHNcMGykQ3vOvEufKgcYhWZAyFMRZN5HQ/edit#gid=1964479930

Sniper.sharedInstance.retrieveRemoteWordDict("1Cx4POxesRmDHNcMGykQ3vOvEufKgcYhWZAyFMRZN5HQ")

To change language of the app

Sniper.saveSelectedLocaleIdentifier(locale)

Retrieve localized string

"TXT_test".localizedString()

Installation

Sniper is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Sniper"

Author

Paulo Lam, paulo@beyond-six.com

License

Sniper is available under the MIT license. See the LICENSE file for more info.