Comments (1)
hey dude, here is it. add this to nuxt.config.js -> plugins array:
export default function ({ i18n, $dayjs }) {
i18n.beforeLanguageSwitch = (oldLocale, newLocale) => {
$dayjs.locale(newLocale)
}
}
from dayjs-module.
Related Issues (20)
- Jest testing: TypeError: $dayjs is not a function HOT 4
- update dayjs to latest version (1.10.4) HOT 2
- Set defaultTimeZone from store? HOT 3
- Vite support
- Dependency Dashboard
- Question: How to use updateLocale in nuxtjs/dayjs? HOT 2
- Nuxt warning occurs when this module is used HOT 1
- TS2345: Argument of type 'string' is not assignable to parameter of type HOT 3
- Plugin list without extension not working anymore
- Nuxt3 Support HOT 15
- [Nuxt Bridge] Build tries to import plugin without file format HOT 1
- Discussion for @nuxtjs/dayjs version 2 HOT 2
- dayjs reverts to defaultLocale when rendered server side HOT 1
- Parse from specific locale ?
- Registering a local plugin
- Stopped working in nuxt 3.0.0-rc.14 HOT 9
- Day JS in Nuxt guessing timezone using tz.guess() not a function
- Nuxt 3 Support HOT 1
- Error on creating a new locale, for Latin language.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dayjs-module.