Is there a way to get the localisation language in an addon?

The calendar addon shows the day name in English. I’d like to show the day name in the gateway’s configured language.

I have not spotted any part of the API that supports this localisation, either api access to the configuration or access to fluent. Are there any suggestion?

I’ll have a look at gateway-addon-node src/database.js to see if it is reasonable to add a function there and create a pull request

created this pull request

I’m overzealous :rofl:

this is already possible via this.preferences.language

I withdrew my pull request