02-17-2018 07:49
02-17-2018 07:49
Hi,
I have a problem with the companion part of my clock face. When I want to access the language via the locale import then I just get an "Uncaught ReferenceError: language is not defined".
Here's my code:
import { locale } from "user-settings"; //..... //..... //..... console.log(locale.language);
Is this import not active for the companion app and do I really have to get the language via the messaging API from the app?
Following permissions are active:
"requestedPermissions": [ "access_activity", "access_heart_rate" ],
Thank you in advance.
Answered! Go to the Best Answer.
02-17-2018 08:26
02-17-2018 08:26
Sorry, my fault. I placed the language variable in the wrong position.
02-17-2018 08:26
02-17-2018 08:26
Sorry, my fault. I placed the language variable in the wrong position.