- To establish the default locale for your entire application, you can utilize the PrimeReactProvider. + To establish the default locale for your entire application, you can utilize the + PrimeReactProvider. +
+ ++ When PrimeReactProvider is used, it becomes the primary source of locale configuration for all PrimeReact components. +
+ +Locale resolution follows the order below:
+locale prop defined on a component
+ PrimeReactProvider (context.locale)
+ PrimeReact.locale set via locale()
+
+ This means that once PrimeReactProvider is present, calling
+ locale() alone is not sufficient. The locale must be provided explicitly through the provider.