Search code examples
javascriptreactjspatternfly

How to use language selector of LoginPage component of Patternfly


How can I use the language selector (number 2 at image) of Patternfly LoginPage component?

enter image description here

At docs, the language selector dropdown appears in all the examples. However I can't figure out how to use it. I guess there should exist a property on LoginPage to render it but I can't find it.

I have checked the list of properties in the own code too, with no luck.


Solution

  • Seems that LoginPage React component property languageSelector has been removed from Patternfly. Docs are outdated.

    Got following response in the github repository issues section:

    Yes, I believe this had been removed a while ago as we were working through some design issues. However you can see a core HTML example that includes the language selector here: https://www.patternfly.org/v4/components/login-page/html#with-language-selector