Skip to content

Releases: liamnichols/xcstrings-tool-plugin

1.0.0

13 Oct 16:07
448890f
Compare
Choose a tag to compare

What's Changed

New Contributors

0.5.2

17 Jul 09:38
e99d6ad
Compare
Choose a tag to compare

What's Changed

  • Uses Swift Syntax 600.0.0-prerelease internally when generating source code

0.5.1

19 Jun 14:45
a281cf2
Compare
Choose a tag to compare

What's Changed

0.5.0

09 Jun 11:19
cfc1b93
Compare
Choose a tag to compare

What's Changed

0.4.2

31 May 13:19
f6fcf54
Compare
Choose a tag to compare

What's Changed

0.4.1

28 May 20:31
f07f28c
Compare
Choose a tag to compare

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

0.4.0

0.4.0

28 May 18:32
163233b
Compare
Choose a tag to compare

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

0.3.0

16 May 23:14
7d97fa3
Compare
Choose a tag to compare

What's Changed

0.2.0

04 May 09:11
a0e6b3b
Compare
Choose a tag to compare

What's Changed

0.1.2

08 Feb 16:40
90eb3bd
Compare
Choose a tag to compare

What's Changed