Hello,
I'm localizing my app and don't understand why Base is is/could be needed? If my app supports two languages, why I would need a third (Base) localization?
Thanks!
Hello,
I'm localizing my app and don't understand why Base is is/could be needed? If my app supports two languages, why I would need a third (Base) localization?
Thanks!
'Base' isn't counted as a localization/separate lang - it's a scheme that your translations are based on.
-=-
Using Base Internationalization
Base internationalization separates user-facing strings from
.storyboard
and .xib
files. It relieves localizers of the need to modify .storyboard
and .xib
files in Interface Builder. Instead, an app has just one set of .storyboard
and .xib
files where strings are in the development language—the language that you used to create the .storyboard
and .xib
files. These .storyboard
and .xib
files are called the base internationalization. When you export localizations, the development language strings are the source that is translated into multiple languages. When you import localizations, Xcode generates language-specific strings files for each .storyboard
and .xib
file. The strings files don’t appear in the project navigator until you import localizations or add languages.In Xcode 5 and later, base internationalization is enabled by default. If you have an older project, enable base internationalization before continuing, as described in Enabling Base Internationalization.
-=-
Note that some devs elect to not enable base localization, opting instead to bootstrap string files, etc.
Is Base mainly used for storyboard and XIB files?
So if I work in a language that I don't want to be supported by the app, I could design the storyboard using this unsupported language, set it as Base and then localize the supported language using .strings? Is it the only reason for Base?
>So if I work in a language that I don't want to be supported by the app
What does that mean? Why would you work on something that you don't want to support?
We're talking about localizing your UI, where the lang in use is defined by the configuration of the user's device?