CodingGarden / is-it-new-years-day

A site that tells you if it is new years day or not.
https://isitnewyearsday.com
9 stars 15 forks source link

Fixed issue with YES/NO if language not supported #27

Closed jofhla closed 4 years ago

jofhla commented 4 years ago

If a language was not supported, it would look at translations.en for a yes or no property however this was the time format file, and did not contain the yes or no property; which meant if your language was not supported it would show undefined instead of the correct answer.

Updated it to look into the allTranslations file if the language is not support to get the default response of YES or NO.

w3cj commented 4 years ago

Thanks! I should probably make the variable names more clear as well.