Ionic app keyboard in english by default?


#1

Hi,

i’m testing my ionic app on my french iPhone. When I’m showing the keyboard, the text in Accessory Bar is in english (“Done”) and not in french. Is it normal ?

Same problem with the copy / paste actions

Thanx for your help !


#2

I think it is in english by default.
If you want to translate then you can use:

http://angular-translate.github.io/


#3

Hi !

the keyboard is not a system element ?


#4

I think it is cordova plugins keyboard:

  $ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
  cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if (window.StatusBar) {
  // org.apache.cordova.statusbar required
  StatusBar.styleLightContent();
}

});

But I am not sure. @Finality


#5

You can see for native keyboard:

The Ionic keyboard plugin gives you native.showkeyboard and native.hidekeyboard events which can be used this way: After adding it to you project:

cordova plugin add https://github.com/driftyco/ionic-plugins-keyboard.git

use it this way:

window.addEventListener(‘native.hidekeyboard’, keyboardHideHandler);
window.addEventListener(‘native.showkeyboard’, keyboardShowHandler);
function keyboardHideHandler(e){
alert(‘Goodnight, sweet prince’);
}
function keyboardShowHandler(e){
alert('Keyboard height is: ’ + e.keyboardHeight);
}

Can try but I am not sure.


#6

I don’t understannd the link betwee n the ionic plugin keyboard and my problem ^^ If I understandn ionic plugin keyboard allows to interact with the keyboard with JS. My problem is the translation of “Done” action in Accessory Bar of tke keyboard :slight_smile: