Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Display names for locales instead of locale codes themselves

default discord avatar
aruniecrispslast year
2

Hi everyone,



I'm trying to customize my Payload instance so that instead of the locale code it actually shows the name of the language so that end-users can switch their locale more easily. I'm doing this for a largely South Asian audience so I want to be able to support minority languages for which the language code might not be as self-explanatory.



The first image is what I have, whereas, the second image is what I want (I got the second image by replacing the codes with the corresponding names of the languages)

  • discord user avatar
    tylandavis
    last year

    Hey

    @170743940624941056

    , this isn't possible out of the box at the moment, but we are making some changes in 2.0 that will make locale switching much easier. We're moving the locale selector to the top right, where you'll see the full label of the locale and have access to a drop down to quickly switch.



    These changes will be released on Monday Oct 9

  • default discord avatar
    aruniecrispslast year

    Gotchu, thanks!

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.