Skip to content

Commit

Permalink
Remove workspace checks and add more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mackarous committed Sep 7, 2024
1 parent 62c9e17 commit 68276c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.

This file was deleted.

12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ let localizedString = #Localize("This is a localized string")
Text(#Localize("This is a localized text"))
```

The macro will expand to the following:
```swift
let localizedString = #Localize("This is a localized string")
{
#if SWIFT_PACKAGE
LocalizedStringResource("This is a localized string", bundle: .atURL(Bundle.module.bundleURL))
#else
LocalizedStringResource("This is a localized string")
#endif
}()
```

## License

This package is released under MIT License.
Expand Down

0 comments on commit 68276c4

Please sign in to comment.