You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bartycrouch work,but throw a error with “bad entry in file /Users/xxx/Desktop/project_xxx/project_xxx/Macros.swift (line = 11): Argument is not a literal string.”
BartyCrouch is (currently) using Apples ExtractLocStrings tool shipped as part of Xcode to detect Strings from code. So whatever limitations that tool has, the same limitations apply to BartyCrouch. Unfortunately, the approach you would like to take is not compatible with that tool, it only works with static strings.
I consider this an improvement, not a bug, so changing the tag. The expected behavior here was never documented to work.
Expected Behavior
no error
Actual Behavior
bartycrouch work,but throw a error with “bad entry in file /Users/xxx/Desktop/project_xxx/project_xxx/Macros.swift (line = 11): Argument is not a literal string.”
Steps to Reproduce the Problem
func kkLocalizedString(_ key: String, comment: String) -> String {
NSLocalizedString(key, tableName: "kkLocalizable", bundle: Bundle.main, value: "", comment: comment)
}
Specifications
My point
bartycrouch script run before compile sources, then the "key" of NSLocalizedString is not string
The text was updated successfully, but these errors were encountered: