Skip to content

Wrapper around NSLocalizedString causes script to say no strings are used #14

@TimAEllis

Description

@TimAEllis

NSLocalizedString seems a little cumbersome for me to use since I don't include a comment with my strings. So I have a wrapper function, like so:

public func localeString(_ string: String) -> String {
	return NSLocalizedString(string, comment: "")
}

However, this script then claims that all my localized strings are unused when clearer they are. Is there any way we can provide it with a string to look for, in addition to the pre-existing NSLocalizedString?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions