eggswift / pull-to-refresh

#Busy Re-Building....# An easy way to use pull to refresh and infinite scrolling in Swift. Pod 'ESPullToRefresh'
MIT License
1.82k stars 252 forks source link

Support other languages? #61

Closed Sweeper777 closed 7 years ago

Sweeper777 commented 7 years ago

Can you localize this pod for other languages, like zh-Hans, zh-Hant and jp?

eggswift commented 7 years ago

You can subclass content and customize strings.

Sweeper777 commented 7 years ago

Which class do I subclass? Can I just send you a pull request with the strings files?

eggswift commented 7 years ago

Sure it's welcome!

eggswift commented 7 years ago

65

Merged

paulg446 commented 7 years ago

Wouldn't it make more sense to allow localization/customization of strings via an API as opposed to hard-coding strings into the project? Something like a global static object where string values can be overridden would ideal. There are only a few strings, it should be simple. Great library, by the way! Very useful.