将iOS键盘上的"完成"按钮翻译成其他语言

Mik*_*378 6 translation ios cordova

使用Cordova/Phonegap,翻译iOS虚拟键盘上的"完成"按钮的最简单方法是什么?

例如,我的iPhone配置为使用法语.
但是,该按钮仍显示"完成"按钮,而不是经典的法语改编词:"确定".

小智 4

我的科尔多瓦应用程序也面临同样的问题。我用一个写入 Info.plist 的插件修复了它

<plugin id="com.example.plugin" version="0.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
    <name>Example</name>
    <description>A label translate example</description>    
    <platform name="ios">
        <config-file target="*-Info.plist">
            <key>CFBundleAllowMixedLocalizations</key>
            <array>
                <string>Yes</string>
            </array>
            <key>CFBundleLocalizations</key>
            <array>
                <string>fr</string>
            </array>
            <key>CFBundleDevelopmentRegion</key>
            <array>
                <string>fr_FR</string>
            </array>
        </config-file>  
    </platform>
</plugin>
Run Code Online (Sandbox Code Playgroud)