- Code: Select all
NSString* locale = [[NSLocale currentLocale] localeIdentifier];
NSLog(@"Using locale %@", locale);
CefString(&settings.locale).FromString([locale cStringUsingEncoding:NSUTF8StringEncoding]);
For most languages, the context menu that pops up on a text field is showing appropriately, but some combinations of language with regions are failing. For instance, in English, if the region is set to Canada, the context menu strings are empty. It looks like the following:
It seems if an exact match is not found, it will not fall back to a known set of resources. Is there any workaround for this?