@eskimo
Sorry for the delayed reply. What I've done so far:
I added the second language (French), which added a "strings" file for French for all storyboards.
In the File Inspector of the storyboard I ticked "English", which added a "strings" file for English for that specific storyboard.
Afterwards I set "developmentRegion = fr;" in the "project.pbxproj" file (set French as development language).
This works:
If the simulator in Xcode is set to French, the app is French.
If the simulator is set to English, the app uses the English translation.
If the simulator is set to a different language, e.g. Italian, the app uses French.
The rest of the simulated iPhone SE2 was still set to English but that's probably because I only edited the "App Language" in the scheme and didn't set the actual language in the settings.
I'm not sure what to do with the "Base" language now. If I change an e.g. button text directly in storyboard, the "strings" files aren't affected, so the changes aren't shown in a simulator of course. If I untick "French", it'll probably be the same as with English before again: I'll only be able to edit the French text directly in storyboard. Unticking "Base" (and moving its contents to "French") didn't work last time around, so not sure what that does. Is there a way to keep the French "strings" files and make it edit them automatically, whenever I edit something in storyboard?
Topic:
Accessibility & Inclusion
SubTopic:
General
Tags: