Muhammad Faraz Ali
Muhammad Faraz Ali
**Method-1:** You need to set the **localeDetection as false**: **e.g** import ElementPlus from 'unplugin-element-plus/vite'; ElementPlus({ useSource: false, defaultLocale: 'zh-cn',, **localeDetection: false,** }) **Resourses:** 1-https://stackoverflow.com/questions/66730980/defaultlocale-is-not-keeping-default-lang-in-next-js-i18n **Method-2** 2-https://www.npmjs.com/package/unplugin-element-plus Under the second link...
**Performance Hooks:** A common way to **optimize** re-rendering performance is to **skip unnecessary work**. For example, you can tell React to reuse a cached calculation or to skip a re-render...