RemaFoX can't find any strings in Localizable.xcstrings #108
Replies: 1 comment
-
Hi @noloman, thank you for using RemafoX! I actually wanted to add support for String Catalogs in RemafoX, but during the implementation, I noticed that String Catalogs actually have a fundamentally different concept than Strings(dict) files, it's not just better UI. The fundamental difference is an inversion of the source of truth: While Strings(dict) were the source of truth for your translations and I could generate an auto-completable enum file based on those, the source of truth is reversed in String Catalogs. String Catalogs are NOT the source of truth of your translations, but your code is! Whenever you make a change in your code, the related entries in the String Catalog are marked as stale and new keys are added. That's also why Apple didn't implement generated symbols for translations like they did with Images and Colors in Xcode 15, simply because the source of truth now is your code. So, in many ways, String Catalogs & RemafoX don't play well together. In fact, String Catalogs replace the Normalizer & Linter in RemafoX, and this reversed source of truth means that it doesn't make sense to generate code based off of the String Catalog. Your code is already the source of truth. So the only feature in RemafoX Apple didn't cover with String Catalogs is machine-translation. So I decided for the following:
This is my thoughtful answer to Apple's introduction of String Catalogs, sherlocking 70% of RemafoX. My goal with RemafoX has always been to provide the best localization experience workflow possible. And rest assured that I'm still thinking about improving the entire workflow for developers, now based on String Catalogs. There are still areas I'm not 100% happy with which I will improve in future updates of either RemafoX or String Catalog Translator. I might also end up merging them into one app, but this seemed to be the easiest solution to start this process. I hope this helps. Please let me know what you think. |
Beta Was this translation helpful? Give feedback.
-
Hi,
First of all, thanks for such a great tool! I've been using it for a while and I'm very happy with it :)
I recently migrated to strings catalog with Xcode 15 and I realized that RemafoX can't find my strings and their translations anymore.
So I tried to set my project up from scratch, and even though I was using 10 languages with a lot of strings translated, now RemafoX can't find any language being used in the project:
This is the left panel of my
Localizable.xcstrings
file:Am I doing something wrong? I followed the setup process by dragging and dropping the generated enum (
Remafox.swift)
but I see that the file is empty.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions