I am trying to localize a key in InfoPlist.strings files, which consists of a nested dictionary, for example:
baseKey = { secondDict = { "key" = "value"; }; };
Is there a way to access the internal key directly from the InfoPlist.strings file?
"baseKey.secondDict.key" = "newValue";
doesn't seem to work ... Any ideas? I know that I can replicate the structure of the dictionary in a string file, but it contains some other information that I would rather not have there.
Apparently, it works as follows:
Replace with "value"some localization identifier newvalue_i18n_key.
"value"
newvalue_i18n_key
Then in InfoPlist.strings for each language do the following:
newvalue_i18n_key = "value";
NSLocalizedString. , Apple plist, , Apple .
.
, "" NSDictionary, "Username" NSString.
yourDict[@"User"][@"Username"]