alexa-samples / skill-sample-python-fact

An Alexa Skill Sample showing how to build a fact skill in Python.
Other
120 stars 154 forks source link

One Lambda Function with Hindi and English Language #28

Closed shoaibrayeen closed 4 years ago

shoaibrayeen commented 5 years ago

This function can handle Hindi language Request as well as English Language Request.

For each function - 'If' part would handle - English 
                                 and 'Else' part would handle - Hindi

Just comparing locale in JSON File and that would solve the multi-language problem here.

Issue #, if available: Now we don't need separate lambda function for Hindi and English. I have merged both functions in a single function.

Description of changes: The lambda function would handle Hindi and English Request. There is no need to write two separate lambda function.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.