NativeScript set autocorrection language












0















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?










share|improve this question





























    0















    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?










    share|improve this question



























      0












      0








      0








      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?










      share|improve this question
















      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?







      android locale nativescript






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 20 '18 at 14:56







      TomG

















      asked Nov 19 '18 at 11:05









      TomGTomG

      14




      14
























          3 Answers
          3






          active

          oldest

          votes


















          0














          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.






          share|improve this answer
























          • 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



















          0














          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.






          share|improve this answer































            0














            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.






            share|improve this answer























              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
              });


              }
              });














              draft saved

              draft discarded


















              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









              0














              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.






              share|improve this answer
























              • 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
















              0














              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.






              share|improve this answer
























              • 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














              0












              0








              0







              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.






              share|improve this answer













              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.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              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



















              • 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













              0














              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.






              share|improve this answer




























                0














                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.






                share|improve this answer


























                  0












                  0








                  0







                  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.






                  share|improve this answer













                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 20 '18 at 0:50









                  Narendra MongiyaNarendra Mongiya

                  1,470719




                  1,470719























                      0














                      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.






                      share|improve this answer




























                        0














                        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.






                        share|improve this answer


























                          0












                          0








                          0







                          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.






                          share|improve this answer













                          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.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 20 '18 at 14:52









                          TomGTomG

                          14




                          14






























                              draft saved

                              draft discarded




















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              How to send String Array data to Server using php in android

                              Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                              Is anime1.com a legal site for watching anime?