Releases: liamnichols/xcstrings-tool-plugin
1.0.0
What's Changed
- Breaking: Remove deprecated
LocalizedStringResource
API by @liamnichols in liamnichols/xcstrings-tool#107 - Make
bundle
a computed property by @liamnichols in liamnichols/xcstrings-tool#109 - Add
Hashable
conformance to generated type by @liamnichols in liamnichols/xcstrings-tool#110 - Implements static string extension by @fgroeger in liamnichols/xcstrings-tool#114
- Fix variable name from string catalog with an acronym in the name by @liamnichols in liamnichols/xcstrings-tool#116
- i.e URL Strings.xcstrings will generate a variables/labels named
urlStrings
now and notuRLStrings
- i.e URL Strings.xcstrings will generate a variables/labels named
New Contributors
- @fgroeger made their first contribution in liamnichols/xcstrings-tool#114
0.5.2
What's Changed
- Uses Swift Syntax 600.0.0-prerelease internally when generating source code
0.5.1
What's Changed
- Improve performance when generating source code for large Strings Catalogs by @liamnichols in liamnichols/xcstrings-tool#96
- Support using generated code in Swift 6 language mode by @liamnichols in liamnichols/xcstrings-tool#98
- Support using Swift Syntax 600.0.0 by @liamnichols in liamnichols/xcstrings-tool#98
0.5.0
What's Changed
- Add support for legacy .strings and .stringsdict file formats by @liamnichols in liamnichols/xcstrings-tool#20
- Add deprecation warnings to generated
LocalizedStringResource
API by @liamnichols in liamnichols/xcstrings-tool#93
0.4.2
What's Changed
- Backtick variable/method names that conflict with Swift keywords by @liamnichols in liamnichols/xcstrings-tool#91
0.4.1
What's Changed
New in 0.4.0, dedicated support for SwiftUI has been added through extensions on Text
and LocalizedStringKey
🎉 APIs support iOS 13/macOS 10.5 and later and allow you to benefit from full SwiftUI support for features such as markdown and dynamic language overrides.
var body: some View {
Form {
TextField(.localizable(.namePlaceholder), text: $name)
Text(localizable: .footnote)
}
.navigationTitle(.localizable(.createAccountTitle))
}
It is now preferred to use the LocalizedStringKey.localizable(_:)
or LocalizedStringResource.localizable(_:)
static methods instead of the LocalizedStringResource.localizable
static property. The static property has been marked as deprecated. A warning will be emitted starting in 0.5.0 and the code will be completely removed in 1.0.0. See below for migrating your code:
- Text(.localizable.foo)
+ Text(.localizable(.foo))
- String(localized: .localizable.bar)
+ String(localizable: .bar)
- .navigationTitle("\(.localizable.title)")
+ .navigationTitle(.localizable(.title))
Pull Requests
0.4.1
- Fix availability of LocalizedStringKey extension (iOS 14+) by @liamnichols in liamnichols/xcstrings-tool#88
- Update CI by @liamnichols in https://github.com/liamnichols/x
0.4.0
- Refactor some parts of the generator code by @liamnichols in liamnichols/xcstrings-tool#73, liamnichols/xcstrings-tool#76, liamnichols/xcstrings-tool#77, liamnichols/xcstrings-tool#78, liamnichols/xcstrings-tool#79
- Change declaration and make
LocalizedStringResource.init(localizable:)
internal by @liamnichols in liamnichols/xcstrings-tool#80 - Add backwards compatible initialisers for
Text
andLocalizedStringsKey
by @liamnichols in liamnichols/xcstrings-tool#82 - Use Existential
any
by @liamnichols in liamnichols/xcstrings-tool#85 - Add Sendable conformance to generated struct by @liamnichols in liamnichols/xcstrings-tool#86
- soft-deprecate old generated LocalizedStringResource extensions by @liamnichols in liamnichols/xcstrings-tool#87
0.4.0
What's Changed
New in 0.4.0, dedicated support for SwiftUI has been added through extensions on Text
and LocalizedStringKey
🎉 APIs support iOS 13/macOS 10.5 and later and allow you to benefit from full SwiftUI support for features such as markdown and dynamic language overrides.
var body: some View {
Form {
TextField(.localizable(.namePlaceholder), $name)
Text(localizable: .footnote)
}
.navigationTitle(.localizable(.createAccountTitle))
}
It is now preferred to use the LocalizedStringKey.localizable(_:)
or LocalizedStringResource.localizable(_:)
static methods instead of the LocalizedStringResource.localizable
static property. The static property has been marked as deprecated. A warning will be emitted starting in 0.5.0 and the code will be completely removed in 1.0.0. See below for migrating your code:
- Text(.localizable.foo)
+ Text(.localizable(.foo))
- String(localized: .localizable.bar)
+ String(localizable: .bar)
- .navigationTitle("\(.localizable.title)")
+ .navigationTitle(.localizable(.title))
Pull Requests
- Refactor some parts of the generator code by @liamnichols in liamnichols/xcstrings-tool#73, liamnichols/xcstrings-tool#76, liamnichols/xcstrings-tool#77, liamnichols/xcstrings-tool#78, liamnichols/xcstrings-tool#79
- Change declaration and make
LocalizedStringResource.init(localizable:)
internal by @liamnichols in liamnichols/xcstrings-tool#80 - Add backwards compatible initialisers for
Text
andLocalizedStringsKey
by @liamnichols in liamnichols/xcstrings-tool#82 - Use Existential
any
by @liamnichols in liamnichols/xcstrings-tool#85 - Add Sendable conformance to generated struct by @liamnichols in liamnichols/xcstrings-tool#86
- soft-deprecate old generated LocalizedStringResource extensions by @liamnichols in liamnichols/xcstrings-tool#87
0.3.0
What's Changed
- Remove support for
CChar
,UnsafePointer<CChar>
andUnsafeRawPointer
by @liamnichols in liamnichols/xcstrings-tool#65 - Fix parsing of strings containing
%
and%%
by @liamnichols in liamnichols/xcstrings-tool#66 - Prevent Xcode from extracting generated constants as new localizations by @liamnichols in liamnichols/xcstrings-tool#67
- Breaking: The
sourceLanguage
is no longer provided as a default meaning that missing translations will fallback to the string key instead.
- Breaking: The
- Include the source localisation value in the headerdoc comments by @liamnichols in liamnichols/xcstrings-tool#69
- Bring support to all OS versions by @liamnichols in liamnichols/xcstrings-tool#70
- Expose properties from generated structs for custom use by @liamnichols in liamnichols/xcstrings-tool#71
0.2.0
What's Changed
- Support iOS 15/macOS 12 by @liamnichols in liamnichols/xcstrings-tool#50
- Support custom
Locale
when using iOS 15 compatibleString
initialiser by @liamnichols in liamnichols/xcstrings-tool#52
0.1.2
What's Changed
- Add CONTRIBUTING.md with snapshot test documentation by @SamHastings1066 in liamnichols/xcstrings-tool#27
- [doc] Correct repository url by @hiragram in liamnichols/xcstrings-tool#33
- Disable use of auxiliary file to prevent permission error on XcodeCloud by @hiragram in liamnichols/xcstrings-tool#36