sjhoeksma / cordova-plugin-keychain-touch-id

Touch ID plugin with saving password in keychain for IOS and android
87 stars 160 forks source link

Add missing languages (de, es, fr, it, ja, no, pt, ru) #30

Open sykaeh opened 6 years ago

sykaeh commented 6 years ago

Updated and added new languages.

loic425 commented 6 years ago

@sjhoeksma I need theses changes too. Can you review that soon?

qliqdev commented 6 years ago

Doesn't work for me plugin ver. 3.2.1

document.addEventListener("deviceready", 

     function () {

            if (window.plugins.touchid) {
                window.plugins.touchid.isAvailable(function () {
                    window.plugins.touchid.setLocale('ru', function () {
                        window.plugins.touchid.has('PinKey', function () {
                            //Touch ID avaialble and Password key available
                            window.plugins.touchid.verify('PinKey', $translate.instant('ATTACH_FINGER_TO_ENTER'), function (password) {
                                $scope.pins = password.split("");
                                authorize();
                            }, function (err) {
                                AppStorage.set('useBiometryToEnter', false);
                            });
                        }, function () {
                            //Touch ID available but no Password Key available
                            AppPopup.toast('ATTENTION', 'ENTER_PIN_TO_REGISTER_TOUCH_ID');
                        });
                    }, function (err) {
                        console.log(err);
                    });

                }, function (msg) {
                    //Touch ID not available
                });
            }
        });`