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

improvement: vue-i18n re-packaging #222

Merged
merged 2 commits into from
Dec 11, 2020
Merged

improvement: vue-i18n re-packaging #222

merged 2 commits into from
Dec 11, 2020

Conversation

kazupon
Copy link
Member

@kazupon kazupon commented Dec 11, 2020

I have optimized the package configuration for vue-i18n.
This PR solves the following problems

The vue-i18n package has been reconfigured so that the modules provided are now runtime only, as well as the compiler and runtime like Vue 3.

image

The fact that vue-i18n only provides runtime means that precompilation of locale messages is required.

The most common use case for i18n is to create large applications. In that case, today we use a bundler like webpack to create the application.

i18n resources such as locale messages use plain text format like .json.

These i18n resources will now need to use the loader / plugin provided by the intlify project for each bundler, such as vue-i18n-loader.

as my next action, I will be to extend the following loader / plugin.

  • @intlify/vue-i18n-loader
  • @intlify/rollup-plugin-vue-i18n
  • @intlify/vite-plugin-vue-i18n

@kazupon kazupon added the Type: Improvement Includes backwards-compatible fixes label Dec 11, 2020
@kazupon kazupon merged commit 6b4a118 into master Dec 11, 2020
@kazupon kazupon deleted the improvement/packageing branch December 11, 2020 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement Includes backwards-compatible fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when running on Cloudflare Worker (SSR) due to string evaluation
1 participant