-
-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments are not being updated with code
option
#38
Comments
Hi @marc-inn, thank you for your feature request. I just made an attempt to implement this and released a new version with it (3.4.0). Please upgrade BartyCrouch (e.g. via I hope this works, I haven't had the time to test it myself, but it might work. Please reopen the issue if it doesn't, I'm closing it for now. |
Working great! I posted PR with small update, which made comments working for me. Thanks |
Ahh yeah, I forgot that one. Great catch! Would you mind also adding a test within your PR for the |
No problem :P Tests added. |
That was not exactly what I was looking for, but never mind, I'm merging it anyway, we can add tests for the |
I just released v3.4.1 with your bug fix. Thanks again! |
Updating does not work for me. This is an issue again since we have to use 'bartycrouch update' instead of 'bartycrouch code'. Or am I missing something? |
Yes, you are missing something. There is no „code“ subcommand anymore starting with version 4 of BartyCrouch. Please refer to the migration guide and the config section in the README for more information. |
Hi! Is the I can only get the comments to change if I completely delete a key from the .strings file before running I'm on macOS 13.0 Beta (22A5321d), using bartycrouch 4.11.0, and my [update]
tasks = ["interfaces", "code", "normalize"]
[update.interfaces]
paths = ["app", "helper", "accomplice"]
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs", "frameworks", "tests", "*/external", "*/SupportFiles", "*/iOS-Polynomial-Regression-master"]
defaultToBase = false
ignoreEmptyStrings = false
unstripped = false
ignoreKeys = ["#bartycrouch-ignore!", "#bc-ignore!", "#i!"]
[update.code]
overrideComments = true
codePaths = ["app", "helper", "accomplice"]
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs", "frameworks", "tests", "*/external", "*/SupportFiles", "*/iOS-Polynomial-Regression-master"]
localizablePaths = ["./Localization"]
defaultToKeys = false
additive = false
unstripped = false
plistArguments = true
ignoreKeys = ["#bartycrouch-ignore!", "#bc-ignore!", "#i!"]
[update.transform]
codePaths = ["app", "helper", "accomplice"]
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs", "frameworks", "tests", "*/external", "*/SupportFiles", "*/iOS-Polynomial-Regression-master"]
localizablePaths = ["./Localization"]
transformer = "foundation"
supportedLanguageEnumPath = "."
typeName = "BartyCrouch"
translateMethodName = "translate"
separateWithEmptyLine = true
[update.normalize]
paths = ["app", "helper", "accomplice"]
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs", "frameworks", "tests", "*/external", "*/SupportFiles", "*/iOS-Polynomial-Regression-master"]
sourceLocale = "de"
harmonizeWithSource = true
sortByKeys = true
separateWithEmptyLine = true
[lint]
paths = ["app", "helper", "accomplice"]
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs", "frameworks", "tests", "*/external", "*/SupportFiles", "*/iOS-Polynomial-Regression-master"]
duplicateKeys = true
emptyValues = true Not sure if relevant but the Let me know if I should create an issue for this. |
@noah-nuebling If an option is documented in the README, it is still supported. Feel free to report an issue. |
Alright @Jeehut, I posted an issue. It's mostly copy pasted from the comment but I added some extra details. I found I can just delete a comment and then |
FYI: @noah-nuebling's issue was fixed in the meantime and this should fully work again in version 4.13.0+. |
Given that I have fully translated app with
code
String filesAnd I have String
let sample = NSLocalizedString("category.sample", comment: "Sample")
When I change a comment for
sample
String tocomment: "New Sample"
Then comment is not updated in Strings file.
Are you going to implement that feature in future?
Btw. super useful tool! Thanks
The text was updated successfully, but these errors were encountered: