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

Adding a way to set the vexip-ui locale used in nuxt.config.ts #5

Open
3 tasks done
Nalca opened this issue May 15, 2024 · 0 comments
Open
3 tasks done

Adding a way to set the vexip-ui locale used in nuxt.config.ts #5

Nalca opened this issue May 15, 2024 · 0 comments

Comments

@Nalca
Copy link

Nalca commented May 15, 2024

Description

As a developper using vexip-ui/nuxt, I want to be able to :

  • Set the initial locale by vexip-ui in nuxt.config.ts
  • Change the locale used by vexip-ui via a helper (Since we don't have access to app)

Why ? Because otherwise, we have to place a config-provider at the root of the app to provide the locale. I placed mine in app.vue, but it feel king of messy.

Suggested solution

  • Add an option called "initialLocale" to the module, so we can pass a locale to vexip without having to use a config-provider.
  • Add a helper function to change the locale, for the same reason.

Alternative

Add documentation about how to setup a config-provider in app.vue, or any cleaner solutions.

Additional context

No response

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant