zanderxyz / alexa-apple-calendar

Use your Amazon Echo (Alexa) to read upcoming events from Apple Calendar.
MIT License
6 stars 6 forks source link

German Language #2

Closed Luftloch80 closed 7 years ago

Luftloch80 commented 7 years ago

Hi. In german "literal" is not working Can you release a german version please

zanderxyz commented 7 years ago

Hi, could you elaborate on the exact problem? I'm afraid I don't speak German or have a German Echo so I'm not sure what differences there might be. I may be able to suggest changes that will work if you can explain the issue though.

Luftloch80 commented 7 years ago

The intent schema you are using works only in US. When you Look it up amazon says in february they will remove it for new skills

Important: English (US) skills using the AMAZON.LITERAL slot type should be updated to use custom slots. Starting February 6, 2017, you will no longer be able to use AMAZON.LITERAL when saving a new or updated skill. Existing skills that already use AMAZON.LITERAL will continue to work, but you will be unable to make any changes to the skill configuration until you remove AMAZON.LITERAL.

English (UK) and German skills do not support AMAZON.LITERAL and cannot use the AMAZON.LITERAL slot type.

zanderxyz commented 7 years ago

Thanks, I understand - let me look into this and post an update.

zanderxyz commented 7 years ago

I've committed an update that fixes this, thanks for raising it. The only changes are to the Alexa Skills Kit entry, on the Interaction Model tab. Let me know if you have any questions.

Luftloch80 commented 7 years ago

thank you.. now it is working in englisch. what do you think i have to change if i want to use it with german language? which files exactly

zanderxyz commented 7 years ago

The changes you'd need would be to the lambda_function.py file, specifically the following functions:

If you have trouble, if you give me the translations of how you want it to work I should be able to update it this weekend.

There's also the get_date_desc function, that uses the python datetime library to turn a date into an english day of the week, that will probably need an additional function adding to translate them into german.