A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/payloadcms/payload/discussions/2702 below:

Labels for locales · payloadcms/payload · Discussion #2702 · GitHub

Following up on a Discord discussion. with @DanRibbens

Having the ability to set labels for our locales would help making the admin locale picker a lot more user friendly and noticeable.

Example, before ➡️ after:
➡️

In terms of implementation, this would extend the current config by accepting either a string (current logic) or an object.

For example, this:

localization: {
    locales: ['en', 'fr']
}

could become this:

localization: {
    locales: [
        {
            value: 'en',
            label: 'English', // or i18n object for admin i18n
        },
        {
            value: 'fr',
            label: 'French', // or i18n object for admin i18n
        },
    ]
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4