vasqued2 / ha-teamtracker-card

A Home Assistant frontend custom card that will display real-time updates for teams tracked with the ha-teamtracker integration. Has custom in-game layouts for football, baseball, basketball, hockey, soccer, golf, tennis, racing, and mma.
GNU General Public License v3.0
75 stars 16 forks source link

Update nl.js #113

Closed bpwats closed 3 weeks ago

bpwats commented 4 weeks ago

Thank you for admitting my first update. This contains further translations and updates. Still figuring out a bit what goes where. Will look into what ESPN API returns soon.

vasqued2 commented 4 weeks ago

There is no way to translate what the API returns. I simply append the requested language to the API call (?lang=‘nl’ in this case) and let ESPN do the translation if it can.

I am simply a pass through for anything returned by the API. If I request a different language and it stills returns English, I am stuck with English. There is no translation table for what the API returns because the returned values are both variable and unknown.