How should I localise the key UIApplicationShortcutItemTitle
?
I know how localisation works for keys like NSLocationUsageDescription
and NSLocationAlwaysUsageDescription
: you put your localisation in the InfoPlist.strings file.
However, those are unique keys at the route of the document.
In this case, I'll have one UIApplicationShortcutItemTitle
for each quick action, nested inside a dictionary and and array.
How can I localise these nested values?
Despite UIApplicationShortcutItemTitle not being 'unique' because there are multiple arrays, you can specify the value of that key to link up to the key in InfoPlist.strings.
"UIApplicationShortcutItemTitle" : "shortcutTitle1"
shortcutTitle1 = "localised string value goes here for the first shortcut title in the info plist array"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With