Makarov
Makarov

Reputation: 187

How to set iOS Swift WKWebView native elements language

I have a WkWebView base application, how can I set the language for certain native elements like the months in the Datepicker when using HTML <input type="date"/> and keyboard Done and Cancel buttons. These don't change with the preferred device language or the <html lang="es">

enter image description here

Upvotes: 0

Views: 1099

Answers (1)

stonerain
stonerain

Reputation: 53

add below item in info.plist file.

  • keyname : Localized resources can be mixed (CFBundleAllowMixedLocalizations)

  • type : Boolean

  • value : YES (1)

before image:

before image

after image:

after image

info.plist image:

info.plist image

Upvotes: 4

Related Questions