Is RemafoX.swift required in an Objective-C project? #107
-
Just getting started with RemafoX. All of our projects are strict Objective-C. So I threw the RemafoX.swift file in the trash assuming it was not relevant. I'm still muddling through and not entirely sure my assumptions are accurate as so much discussion here and in the videos is Swift-specific. Here are my questions.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @cyphers, thank you for taking the time to ask these questions. I'll try to answer them as good as I can:
The If you prefer to continue using plain Strings without the provided additional safety, then you can safely ignore the
RemafoX does not come with UI to add new languages to your project. It is not meant to replace any functionality that Xcode already provides. My goal is to fill in the gaps that Xcode leaves unfilled. To learn how to do this in Xcode, you can read this official documentation article, for example: https://developer.apple.com/documentation/xcode/adding-support-for-languages-and-regions Tip: Before adding new languages, make sure to press the "Localize" button in the File Inspector on the right pane in Xcode for your RemafoX will automatically detect new added languages whenever the configuration file is opened for your project. You can also force-refresh the languages: If you've set up the Xcode extension like described in the app or in the linked videos, when in the 'Add Translation' window, simply press the 'Rescan Strings(dict) files' button at the top right. By the way, if what you're looking for is to add a whole bunch of languages quickly, I've written a short guide explaining how to do this quickly in #72.
Glad that everything else is working!
I'm already working on support for String Catalogs. I had a detailed look into them the first days after they were announced, and I also wrote this FAQ article for the community. I'm already done with the basic parser, but there's more work to do. I will do my best to get it ready before the final release of Xcode 15. After all, I want to migrate to String Catalogs myself. 😉 |
Beta Was this translation helpful? Give feedback.
Hi @cyphers, thank you for taking the time to ask these questions. I'll try to answer them as good as I can:
The
RemafoX.swift
file is a generated file which allows you to safely access your translations with full auto-completion support and failing builds if you removed a key from your translations and tried to reference it using the generated code. For example, a key "Onboarding.Page1.Title" can be called in Swift code viaLoc.Onboarding.Page1.Title.string
or (if you have turned on 'Generate Objective-C compatible code' in the 'Generated Code' configu…