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

cannot make it work, an example use would help #119

Closed
petitkriket opened this issue Oct 5, 2023 · 2 comments
Closed

cannot make it work, an example use would help #119

petitkriket opened this issue Oct 5, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@petitkriket
Copy link

petitkriket commented Oct 5, 2023

Hello,

I am trying to lokalize an app using a community locale.

I cannot make it work through the global registration api (prime vue app wide configuration object)

i tried

  • community package import and global registration (does not work)
  • handmade message global registration (does not work)
  • component local override (works)

Here is a reproduction example with primevue.
https://stackblitz.com/edit/ejwndf?file=src%2FApp.vue,src%2Fmain.js%3AL117,src%2Ffr.json

does somewhy have an idea why global API does not work as it is ?

I would gladly contribute and add installation examples to primereact and primevue or to this package directly :)

@melloware
Copy link
Member

melloware commented Oct 5, 2023

I don't use PrimeVue but React is similar and here is an example of switching to Russian Locale:

https://stackblitz.com/edit/react-mt3y5i?file=src%2FApp.js

It may help as the libraries are similar?

@melloware melloware added the question Further information is requested label Oct 5, 2023
@melloware melloware self-assigned this Oct 5, 2023
@petitkriket
Copy link
Author

the way locale is loaded is a bit different with Vue. In the following example, I am strictly following the docs by recreating the 3 provided "ways" to do it but it actually does not work 😅

I will create an issue into primevue repository as it seem to be framework specific, tks :)

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

No branches or pull requests

2 participants