You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I docs I read: "You can access all the properties of the current locale through the localeProperties property. When using an array of codes, it will only include the code property." (https://v8.i18n.nuxtjs.org/options/routing). Can I define correct types for custom properties.
For example I want to use: localeProperties.value.apiCode, but apiCode is any and I must use as keyword (localeProperties.value.apiCode as 'en' | 'nl').
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I docs I read: "You can access all the properties of the current locale through the localeProperties property. When using an array of codes, it will only include the code property." (https://v8.i18n.nuxtjs.org/options/routing). Can I define correct types for custom properties.
For example I want to use:
localeProperties.value.apiCode
, butapiCode
isany
and I must useas
keyword (localeProperties.value.apiCode as 'en' | 'nl'
).Beta Was this translation helpful? Give feedback.
All reactions