Use proper casing for i18n locales (#1998)

This commit is contained in:
Jeff
2026-05-11 19:42:07 -07:00
committed by GitHub
parent e49e488b4c
commit e2a1d813a9
224 changed files with 17323 additions and 18474 deletions
@@ -53,30 +53,22 @@ export const HomeCommands = ({
return (
<>
<Command.Group heading={t('page.globalSearch.title', { postProcess: 'titleCase' })}>
<Command.Item
onSelect={handleSearch}
value={t('common.search', { postProcess: 'sentenceCase' })}
>
<Command.Group heading={t('page.globalSearch.title')}>
<Command.Item onSelect={handleSearch} value={t('common.search')}>
{query
? t('page.globalSearch.commands.searchFor', {
postProcess: 'sentenceCase',
query,
})
: `${t('common.search', { postProcess: 'sentenceCase' })}...`}
? t('page.globalSearch.commands.searchFor', { query })
: `${t('common.search')}...`}
</Command.Item>
<Command.Item onSelect={handleCreatePlaylistModal}>
{t('action.createPlaylist', { postProcess: 'sentenceCase' })}...
{t('action.createPlaylist')}...
</Command.Item>
<Command.Item onSelect={() => setPages([...pages, CommandPalettePages.GO_TO])}>
{t('page.globalSearch.commands.goToPage', { postProcess: 'sentenceCase' })}...
{t('page.globalSearch.commands.goToPage')}...
</Command.Item>
<Command.Item
onSelect={() => setPages([...pages, CommandPalettePages.MANAGE_SERVERS])}
>
{t('page.globalSearch.commands.serverCommands', {
postProcess: 'sentenceCase',
})}
{t('page.globalSearch.commands.serverCommands')}
...
</Command.Item>
</Command.Group>