This repository was archived by the owner on Jul 4, 2021. It is now read-only.
feat: add default lang
and scope
on plugin configuration for i18n
custom block
#108
Labels
Status: Proposal
Request for comments
Is your feature request related to a problem?
It is not a problem, it is a new feature.
Describe the solution you'd like
When using
i18n
custom block resources inside thesfc
components, it is a pain writingglobal
andlang
attributes: provide a way on plugin configuration to specify defaultscope
andlang
.When using
i18n
withsrc
external resource, it is also a pain to addglobal
scope.With these options added to plugin configuration, we have to write less code on each
sfc
component.Also, the plugin should override default ones if provided on
i18n
custom block.This feature shoundn't be present when using
src
attribute ofi18n
custom block: onlyscope
.You can see an example for
lang
onvite-plugin-pages
repo forroute lang
attribute (route
is also a custom block similar toi18n
).Describe alternatives you've considered
I have no consider alternatives, should be on this plugin.
Additional context
No more context required.
The text was updated successfully, but these errors were encountered: