Skip to content
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

feat: layer vue i18n config merging #2358

Merged

Conversation

BobbieGoede
Copy link
Collaborator

@BobbieGoede BobbieGoede commented Sep 1, 2023

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Based on #2347 (comment) I took a closer look at the current merging of layer VueI18n configurations, it would make sense to merge more of the configuration when possible.

This PR is still a draft, this still needs tests and if necessary will expand the documentation. I made this a bit quick and dirty so it may contain obvious errors πŸ˜…

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link
Collaborator

kazupon commented Sep 1, 2023

I’ve checked your PR.
Look good too me. :)
Let’s keep your implementation. πŸ”₯

@nuxt-studio
Copy link

nuxt-studio bot commented Sep 2, 2023

βœ… Live Preview ready!

Name Edit Preview Latest Commit
i18n Edit on Studio β†—οΈŽ View Live Preview 7a9c04e

@BobbieGoede BobbieGoede marked this pull request as ready for review September 2, 2023 14:25
@BobbieGoede
Copy link
Collaborator Author

@kazupon
I have added tests and a short description to the docs. I have also changed the implementation a bit, now the configuration files are merged/override in the correct order of layer priority.

Copy link
Collaborator

@kazupon kazupon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your PR is perfect! πŸ’―
Great job!

Thank you so much!

@kazupon kazupon merged commit c411518 into nuxt-modules:next Sep 4, 2023
4 checks passed
DarthGigi pushed a commit to DarthGigi/i18n that referenced this pull request Apr 16, 2024
* feat: layer vue i18n config merging

* test: update snapshot

* fix: layer vuei18n configurations merge order

* test: disable jit compilation for vuei18n layer test

* docs: describe VueI18n option merging on layers page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants