pixel16 / iblocalizable Goto Github PK
View Code? Open in Web Editor NEWLocalize your views directly in Interface Builder with IBLocalizable
License: MIT License
Localize your views directly in Interface Builder with IBLocalizable
License: MIT License
I wanted to use IBLocalizable with option to install via Carthage, but it didn't work.
Tried it in a small sample App.
Tried the same with the CocoaPods installation and it worked.
Based on this answer on SO I would like to suggest to update the LocalizableButton.swift.
self.setTitle(newValue, for: UIControl.State())
to self.setTitle(newValue, for: .normal)
I had a build error Type 'UIControl' has no member 'State' on Xcode 9.4.1, Swift 4.1 and had to change it to make it work
Multiple items support is necessary
Currently Sample project is very simple / ugly. We should be able to improve it and make it show the localizable controls in a better way.
Hey!
There is an issue with Swift 4 and extension overrides: Declarations in extensions cannot override yet
(see attached picture).
This is a non-blocking issue as it continue to work with Xcode 9 and the Swift 3 mode we can set manually, and for now the issue is related to Cocoapods.
Have a good day!
Best regards.
Thomas
CocoaPods
and Carthage
are awesome tools and make our life really easier, but there are some devs who still don't know how to use them.
It would be cool to add the Manual installation guide in your README.md
. You can take a look at my iOS Readme Template to see how you can do it.
I have been using a similar solution to what IBLocalizable
does for quite some time using user defined attributes, although not having to define user defined attributes myself is admittedly so much cooler!
Over time, I realized that I was creating outlets just so I can capitalize or uppercase the localizable properties of UI elements, so I added a few extra methods for handling that. Something like:
func setLocalizedUppercaseText(_ text: String) {
text = NSLocalizedString(text, comment: "").uppercased(with: Locale.current)
}
Do you think something like that, implemented according to IBLocalizable
's architecture would make sense to be added?
Hi,
i tried to implement your lib. but i have serval doubts, how i can change lng by manually .
do have any method to pass lng short to access Localizable.string file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.