NativeScript set autocorrection language
I am developing a NativeScript chat app in JavaScript for Android.
It will be used on italian devices, and I need to enable keyboard autocorrect for this language only.
The issue:
while the device language is set to English, autocorrect works, but it doesn't in Italian.
<TextField id="messageBox" hint="Scrivi un messaggio..." class="msg-input"
autocorrect="true" text="{{ testoMessaggio }}" ></TextField>
Since I am new to both NativeScript and Android development, I'm probably missing some basic knowledge about device locale language. Still, searching around I couldn't find any answer.
How can I fix this?
add a comment |
I am developing a NativeScript chat app in JavaScript for Android.
It will be used on italian devices, and I need to enable keyboard autocorrect for this language only.
The issue:
while the device language is set to English, autocorrect works, but it doesn't in Italian.
<TextField id="messageBox" hint="Scrivi un messaggio..." class="msg-input"
autocorrect="true" text="{{ testoMessaggio }}" ></TextField>
Since I am new to both NativeScript and Android development, I'm probably missing some basic knowledge about device locale language. Still, searching around I couldn't find any answer.
How can I fix this?
add a comment |
I am developing a NativeScript chat app in JavaScript for Android.
It will be used on italian devices, and I need to enable keyboard autocorrect for this language only.
The issue:
while the device language is set to English, autocorrect works, but it doesn't in Italian.
<TextField id="messageBox" hint="Scrivi un messaggio..." class="msg-input"
autocorrect="true" text="{{ testoMessaggio }}" ></TextField>
Since I am new to both NativeScript and Android development, I'm probably missing some basic knowledge about device locale language. Still, searching around I couldn't find any answer.
How can I fix this?
I am developing a NativeScript chat app in JavaScript for Android.
It will be used on italian devices, and I need to enable keyboard autocorrect for this language only.
The issue:
while the device language is set to English, autocorrect works, but it doesn't in Italian.
<TextField id="messageBox" hint="Scrivi un messaggio..." class="msg-input"
autocorrect="true" text="{{ testoMessaggio }}" ></TextField>
Since I am new to both NativeScript and Android development, I'm probably missing some basic knowledge about device locale language. Still, searching around I couldn't find any answer.
How can I fix this?
edited Nov 20 '18 at 14:56
TomG
asked Nov 19 '18 at 11:05
TomGTomG
14
14
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
I don't think that is possible with Android itself. You may either turn it off or on but can not restrict what should appear in suggestions.
yes, but is should show for Italian as well when device language is set for Italian.
– Narendra Mongiya
Nov 20 '18 at 0:43
Yes, that's obvious. But the question was specially when the device language is english and app uses Italian.
– Manoj
Nov 20 '18 at 5:55
I think OP's problem is when device language is also set to Italian . he says 'while the device language is set to English, autocorrect works, but it doesn't in Italian.'
– Narendra Mongiya
Nov 20 '18 at 6:20
add a comment |
There is no such method available with EditText (Native Android component that NativeScript uses to wrap as TextField) however I think you need to provide special instruction with your app. Normally, each time you switch language, the spellcheck dictionary changes as well. However, If that language dictionary available, user might need to download it.
Settings -> Language & Input -> Add-on Dictionaries
Also to note here that if user has disabled the predictive text, app may not have permission to active that.
Check that your languages are selected in 'Languages in types'
Make sure that the "Predictive" option is activated.
Make sure that the "Auto replacement" option is activated.
add a comment |
Turns out it's an issue with one of the debugging devices, a Oneplus One, Lineage OS 15.1. Same problem occurs with different NativeScript apps.
Autocorrection works well on other devices and emulators.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373284%2fnativescript-set-autocorrection-language%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I don't think that is possible with Android itself. You may either turn it off or on but can not restrict what should appear in suggestions.
yes, but is should show for Italian as well when device language is set for Italian.
– Narendra Mongiya
Nov 20 '18 at 0:43
Yes, that's obvious. But the question was specially when the device language is english and app uses Italian.
– Manoj
Nov 20 '18 at 5:55
I think OP's problem is when device language is also set to Italian . he says 'while the device language is set to English, autocorrect works, but it doesn't in Italian.'
– Narendra Mongiya
Nov 20 '18 at 6:20
add a comment |
I don't think that is possible with Android itself. You may either turn it off or on but can not restrict what should appear in suggestions.
yes, but is should show for Italian as well when device language is set for Italian.
– Narendra Mongiya
Nov 20 '18 at 0:43
Yes, that's obvious. But the question was specially when the device language is english and app uses Italian.
– Manoj
Nov 20 '18 at 5:55
I think OP's problem is when device language is also set to Italian . he says 'while the device language is set to English, autocorrect works, but it doesn't in Italian.'
– Narendra Mongiya
Nov 20 '18 at 6:20
add a comment |
I don't think that is possible with Android itself. You may either turn it off or on but can not restrict what should appear in suggestions.
I don't think that is possible with Android itself. You may either turn it off or on but can not restrict what should appear in suggestions.
answered Nov 19 '18 at 11:49
ManojManoj
5,0002921
5,0002921
yes, but is should show for Italian as well when device language is set for Italian.
– Narendra Mongiya
Nov 20 '18 at 0:43
Yes, that's obvious. But the question was specially when the device language is english and app uses Italian.
– Manoj
Nov 20 '18 at 5:55
I think OP's problem is when device language is also set to Italian . he says 'while the device language is set to English, autocorrect works, but it doesn't in Italian.'
– Narendra Mongiya
Nov 20 '18 at 6:20
add a comment |
yes, but is should show for Italian as well when device language is set for Italian.
– Narendra Mongiya
Nov 20 '18 at 0:43
Yes, that's obvious. But the question was specially when the device language is english and app uses Italian.
– Manoj
Nov 20 '18 at 5:55
I think OP's problem is when device language is also set to Italian . he says 'while the device language is set to English, autocorrect works, but it doesn't in Italian.'
– Narendra Mongiya
Nov 20 '18 at 6:20
yes, but is should show for Italian as well when device language is set for Italian.
– Narendra Mongiya
Nov 20 '18 at 0:43
yes, but is should show for Italian as well when device language is set for Italian.
– Narendra Mongiya
Nov 20 '18 at 0:43
Yes, that's obvious. But the question was specially when the device language is english and app uses Italian.
– Manoj
Nov 20 '18 at 5:55
Yes, that's obvious. But the question was specially when the device language is english and app uses Italian.
– Manoj
Nov 20 '18 at 5:55
I think OP's problem is when device language is also set to Italian . he says 'while the device language is set to English, autocorrect works, but it doesn't in Italian.'
– Narendra Mongiya
Nov 20 '18 at 6:20
I think OP's problem is when device language is also set to Italian . he says 'while the device language is set to English, autocorrect works, but it doesn't in Italian.'
– Narendra Mongiya
Nov 20 '18 at 6:20
add a comment |
There is no such method available with EditText (Native Android component that NativeScript uses to wrap as TextField) however I think you need to provide special instruction with your app. Normally, each time you switch language, the spellcheck dictionary changes as well. However, If that language dictionary available, user might need to download it.
Settings -> Language & Input -> Add-on Dictionaries
Also to note here that if user has disabled the predictive text, app may not have permission to active that.
Check that your languages are selected in 'Languages in types'
Make sure that the "Predictive" option is activated.
Make sure that the "Auto replacement" option is activated.
add a comment |
There is no such method available with EditText (Native Android component that NativeScript uses to wrap as TextField) however I think you need to provide special instruction with your app. Normally, each time you switch language, the spellcheck dictionary changes as well. However, If that language dictionary available, user might need to download it.
Settings -> Language & Input -> Add-on Dictionaries
Also to note here that if user has disabled the predictive text, app may not have permission to active that.
Check that your languages are selected in 'Languages in types'
Make sure that the "Predictive" option is activated.
Make sure that the "Auto replacement" option is activated.
add a comment |
There is no such method available with EditText (Native Android component that NativeScript uses to wrap as TextField) however I think you need to provide special instruction with your app. Normally, each time you switch language, the spellcheck dictionary changes as well. However, If that language dictionary available, user might need to download it.
Settings -> Language & Input -> Add-on Dictionaries
Also to note here that if user has disabled the predictive text, app may not have permission to active that.
Check that your languages are selected in 'Languages in types'
Make sure that the "Predictive" option is activated.
Make sure that the "Auto replacement" option is activated.
There is no such method available with EditText (Native Android component that NativeScript uses to wrap as TextField) however I think you need to provide special instruction with your app. Normally, each time you switch language, the spellcheck dictionary changes as well. However, If that language dictionary available, user might need to download it.
Settings -> Language & Input -> Add-on Dictionaries
Also to note here that if user has disabled the predictive text, app may not have permission to active that.
Check that your languages are selected in 'Languages in types'
Make sure that the "Predictive" option is activated.
Make sure that the "Auto replacement" option is activated.
answered Nov 20 '18 at 0:50
Narendra MongiyaNarendra Mongiya
1,470719
1,470719
add a comment |
add a comment |
Turns out it's an issue with one of the debugging devices, a Oneplus One, Lineage OS 15.1. Same problem occurs with different NativeScript apps.
Autocorrection works well on other devices and emulators.
add a comment |
Turns out it's an issue with one of the debugging devices, a Oneplus One, Lineage OS 15.1. Same problem occurs with different NativeScript apps.
Autocorrection works well on other devices and emulators.
add a comment |
Turns out it's an issue with one of the debugging devices, a Oneplus One, Lineage OS 15.1. Same problem occurs with different NativeScript apps.
Autocorrection works well on other devices and emulators.
Turns out it's an issue with one of the debugging devices, a Oneplus One, Lineage OS 15.1. Same problem occurs with different NativeScript apps.
Autocorrection works well on other devices and emulators.
answered Nov 20 '18 at 14:52
TomGTomG
14
14
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373284%2fnativescript-set-autocorrection-language%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown