Why is additive
true by default?
#257
-
Hi! First off, thanks @Jeehut for making this, it's super cool. I'm new to localization, and I'm looking into bartycrouch right now. I was wondering why the As far as I understands, it prevents cleanup of keys in the .strings file that aren't used in code anymore. So what's the rationale behind having it on? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@noah-nuebling Thank you for your kind words. I'm glad you like BartyCrouch, but if you're new to it, I recommend you switch to my app ReMafoX which is currently in Open Beta and will be released soon. It's like BartyCrouch put into a nice UI and improved with additional features – and obviously easier to use thanks to a UI. To answer your question: It only makes sense to disable the There are also other popular ways people like to reference their keys with a dynamic string inside the If you don't use any of these, you can of course disable |
Beta Was this translation helpful? Give feedback.
-
@Jeehut thanks very much for the clear explanations and advice. I would like to check out ReMafoX. The UI looks really good. However, I can't download the beta right now. It says it's not available in my region. I think my App Store might still be set to US. I don't fully see the need for a UI, since bartycrouch is already has a really nice 'setup once then forget' workflow and the documentation is very good. It took me around a day to get to the point where I feel like I understand how localization works, how to setup and use bartycrouch and what the development and translation workflows are going to be. Using the UI might have shaved a few hours from that time, but now that I have things set up, I don't see a strong need to switch to the UI. It looks really good though. I will definitely keep it in mind as I continue development. If there's something else I should be thinking about, I'll definitely appreciate any feedback. Thank you! |
Beta Was this translation helpful? Give feedback.
@noah-nuebling Thank you for your kind words. I'm glad you like BartyCrouch, but if you're new to it, I recommend you switch to my app ReMafoX which is currently in Open Beta and will be released soon. It's like BartyCrouch put into a nice UI and improved with additional features – and obviously easier to use thanks to a UI.
To answer your question: It only makes sense to disable the
additive
option if all your keys are actually going to be available in codeNSLocalizedString
references with static String keys. As soon as you use other references in code, such as the recommendedL10n
method using SwiftGen (see this blog post linked in the README), disablingadditive
would effectively wipe…