-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/i18n made it work with nuxt3 & vite #7045
Conversation
✅ Deploy Preview for nuxt-kodadot ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
AI-Generated Summary: This pull request includes three patches that fix and refactor the i18n configuration of a Nuxt.js project. The first patch fixes issues with the i18n configuration. It adds a new .vscode/tasks.json file and modifies the default.vue file to add a language selection dropdown. The i18n configuration in the nuxt.config.js is updated to include fallbackLocale and loadLanguagesAsync is moved a bit upwards. In i18n.ts, MarkdownIt is imported instead of being commented out, and the loadLocaleMessages() function gets replaced with default values. The second patch removes unnecessary codes, deleting the .vscode/tasks.json file and removing a set locale to 'es' command on mount in default.vue In the last patch, webpack replace.context is replaced with vite import.glob in i18n.ts for loading the locale files. Corresponding locale files loading method is modified as well. In the nuxt.config.js file, the fallbackLocale is removed. Overall, these changes aim to improve the i18n configuration, remove unnecessary codes, and replace feature for more efficient code. |
Reviewpad Report
|
Kudos, SonarCloud Quality Gate passed! |
pay 50 usd |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type
Context
Before submitting pull request, please make sure:
Optional
Did your issue had any of the "$" label on it?
Community participation
Screenshot 📸
Copilot Summary
🤖 Generated by Copilot at 7a2583d
This pull request enhances the internationalization feature of the app by adding a language switcher in the default layout, refactoring the
i18n
module configuration, and enabling markdown rendering in the translations. It affects the fileslayouts/default.vue
,nuxt.config.js
, andutils/config/i18n.ts
.🤖 Generated by Copilot at 7a2583d