Replies: 2 comments 2 replies
-
As fare as i know, it does not have any effect. I have tested with My reason for not hard coding it when i made this library, was not i wasn't sure about what it did and didn't. We can change it to default to a standard one instead of raising an error as we do now. |
Beta Was this translation helpful? Give feedback.
-
Ok, that confirms the idea that I had. I also tried to use the mytoyota library while passing it another locale ( I also do agree that we should keep the locale as an optional argument, so it is possible to change it, if we someone finds that it is necessary in the future. Do you agree to provide a default value to the I will also modify my own code (Domoticz-Toyota-Plugin) to hide the option for the end-user to specify a locale. It is just not needed. |
Beta Was this translation helpful? Give feedback.
-
@DurgNomis-drol
Do you know if there is a real difference if a different locale is being specified during the creation of the MyT instance?
I always used 'en-gb' for the locale, and just didn't try to use a different locale. What happens if we for example specify 'fr-fr' as the locale? I do not expect that the keys in the JSON response will change on this.
Some possibilities:
If it doesn't matter which locale is selected, wouldn't it just be easier to specify a locale that is always the same?
Beta Was this translation helpful? Give feedback.
All reactions