Releases: tomkowz/Swifternalization
Releases · tomkowz/Swifternalization
Swift 4.0 Support
Swift 3 Support
Minor improvements
- Avoid calling
configure(bundle:)
before using localized strings. Swifternalization will configure itself withNSBundle.mainBundle()
internally if you do not call this method afterlocalizedString...
method is called #12 - Suppressed several Xcode 7.3/Swift 3 warnings.
Swift 2 and Xcode 7.1 Support
Swifternalization works with Xcode 7.1 and newest Swfit
New features and improvements
- Dropped Localizable.strings support and uses JSON files instead. See README file for details.
- Added support for strings length variations that are supported in iOS 9 by the system. The framework has its own implementation and supports such feature in iOS 8.0 and newer.
- Updated Public API and Framework documentations.
- Code cleanup.
Improvements and fix
- Improved regular expressions. Now they work 4x faster.
- Added support for floating point numbers! Now it is possible to use expressions like
x<9.99
,-3.5<x<99.4
, etc. - Changed
%d
in expressions to just simplex
since %d might be confusing when added support for floating point numbers. - Inequality extended expressions matches can work only with
<
and<=
inequality signs. It has been simplified and other confusing cases with>
,>=
and=
are unsupported now. - Fixed bug that might cause that inequality extended expression might not be validated correctly because of complications with using unsupported now inequality signs.
- Removed
ValueType
enum. It is no longer needed after adding floating point numbers. - Updated docs
- Framework on
swift2
branch works with Xcode 7 beta 3.
Docs available
- This is a minor update which includes documentation of the framework. It contains "Public API" and "Full" documentation. Go to README for details.
- Pod version has been updated to v1.0.2.1 to add info about public docs.
CocoaPods integration
- Swifternalization is available via CocoaPods.
Improvements and fixes
- Swifternalization will not crash anymore when pattern cannot be parsed because it has incorrect format. Instead message is printed in the consol.
- Swifternalization will not crash anymore when shared expression for some not defined key cannot be found. Will print message to the console instead.
- Inequality and Inequality Extended expressions supports negative numbers
- Add comment paramterer to match NSLocalizedString() macro and make it able to work with genstrings.
- Fix many shared expression in SharedPolishExpression.
- Fix typo in class name. TranslablePair to TranslatablePair.
- More comments in the code.
- Cleanup in the code.
First public release
v1.0.0