Skip to content

Conversation

@francesc0-cgm
Copy link

All Alexa answers translation in Italian

@francesc0-cgm
Copy link
Author

francesc0-cgm commented Nov 3, 2018

Added other translations. @PieterGit tested and full working in Italian also for metrics.
Loop forecast is still in english

@nightscout nightscout deleted a comment Nov 3, 2018
@PieterGit PieterGit added this to the 0.11.0 milestone Nov 3, 2018
@PieterGit
Copy link
Contributor

@francesc0-cgm We need to see why this PR failed on Node 10 (and works on Node 8). Just restarted the build. Hoping @sulkaharo can have a look at it too.

@francesc0-cgm I also would like a different Alexa user to confirm these changes work and don't cause problems for non-Italian Alexa users. Do you know of another Italian and non Italian user that can test?

@PieterGit
Copy link
Contributor

@francesc0-cgm Please also have a look at the Codacy error:
https://app.codacy.com/app/Nightscout/cgm-remote-monitor/pullRequest?prid=2472536&bid=9517397
Error 'ctx' is defined but never used. (no-unused-vars) in lib/plugins/ar2.js

@PieterGit
Copy link
Contributor

Ok, restarting the Node 10 build fixed the problem, so it's some kind of Travis weirdness. If the Codacy error is resolved and if we can find a confirmation that it works or does not regresses stuff for non italian users, I will merge the pull request.

@francesc0-cgm
Copy link
Author

I confirm that worked for another italian girl, except for loop prediction that is still in english. For other languages we should wait someone else

@francesc0-cgm
Copy link
Author

francesc0-cgm commented Nov 8, 2018

Translated new loop working forecast.
It is a bit buggy because the translation for valuein loop.js from @tanja3981 contains also the words "between" and "and", still in English

@nightscout nightscout deleted a comment Nov 9, 2018
@androckz
Copy link

Hi @francesc0-cgm I could help you testing this PR.
Where can I find the .json for the italian skill?
Thank you

@francesc0-cgm
Copy link
Author

francesc0-cgm commented Nov 14, 2018 via email

@PieterGit PieterGit requested a review from sulkaharo November 16, 2018 22:15
@PieterGit
Copy link
Contributor

@francesc0-cgm I moved the lib/plugins/alexa-plugin.md to docs/plugins

I discussed with @sulkaharo and the Alexa plugin should be more loosely coupled from the other files. I hope @sulkaharo can review this and that @francesc0-cgm and perhaps other Alexa users/developers can fix this for the Nightscout 0.11 update.

@francesc0-cgm
Copy link
Author

I think docs is clear and easy to apply @PieterGit
I think to leave translation to every NS international group

};

function alexaAr2Handler (next, slots, sbx) {
function alexaAr2Handler(next, slots, sbx) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ar2.js should not contain any alexa specific code in it.

function alexaCOBHandler (next, slots, sbx) {
var preamble = (slots && slots.pwd && slots.pwd.value) ? slots.pwd.value.replace('\'s', '') + ' has' : 'You have';
var value = 'no';
function alexaCOBHandler(next, slots, sbx) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should not be in the basic COB code, but be abstracted in the alexa plugin

@PieterGit PieterGit modified the milestones: 0.11.0, 0.12.0 Jan 5, 2019
@PieterGit PieterGit removed this from the 0.12.0 milestone Oct 20, 2019
@PieterGit
Copy link
Contributor

@francesc0-cgm Please check #4980 and help test that Alexa integration. If this PR can be reimplemented in a generic way please rewrite the PR to do so. Closing this PR due to merge conflicts and out of date.

@PieterGit PieterGit closed this Oct 20, 2019
@inventor96
Copy link
Contributor

@francesc0-cgm Your translation work would be very helpful! #4980 provides instructions on how to add additional language support in the way the virtual assistants are built to handle it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants