mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-11 14:53:47 +02:00
Use proper casing for i18n locales (#1998)
This commit is contained in:
@@ -52,20 +52,20 @@ export const Sidebar = () => {
|
||||
|
||||
const translatedSidebarItemMap = useMemo(
|
||||
() => ({
|
||||
Albums: t('page.sidebar.albums', { postProcess: 'titleCase' }),
|
||||
Artists: t('page.sidebar.albumArtists', { postProcess: 'titleCase' }),
|
||||
'Artists-all': t('page.sidebar.artists', { postProcess: 'titleCase' }),
|
||||
Collections: t('page.sidebar.collections', { postProcess: 'titleCase' }),
|
||||
Favorites: t('page.sidebar.favorites', { postProcess: 'titleCase' }),
|
||||
Folders: t('page.sidebar.folders', { postProcess: 'titleCase' }),
|
||||
Genres: t('page.sidebar.genres', { postProcess: 'titleCase' }),
|
||||
Home: t('page.sidebar.home', { postProcess: 'titleCase' }),
|
||||
'Now Playing': t('page.sidebar.nowPlaying', { postProcess: 'titleCase' }),
|
||||
Playlists: t('page.sidebar.playlists', { postProcess: 'titleCase' }),
|
||||
Radio: t('page.sidebar.radio', { postProcess: 'titleCase' }),
|
||||
Search: t('page.sidebar.search', { postProcess: 'titleCase' }),
|
||||
Settings: t('page.sidebar.settings', { postProcess: 'titleCase' }),
|
||||
Tracks: t('page.sidebar.tracks', { postProcess: 'titleCase' }),
|
||||
Albums: t('page.sidebar.albums'),
|
||||
Artists: t('page.sidebar.albumArtists'),
|
||||
'Artists-all': t('page.sidebar.artists'),
|
||||
Collections: t('page.sidebar.collections'),
|
||||
Favorites: t('page.sidebar.favorites'),
|
||||
Folders: t('page.sidebar.folders'),
|
||||
Genres: t('page.sidebar.genres'),
|
||||
Home: t('page.sidebar.home'),
|
||||
'Now Playing': t('page.sidebar.nowPlaying'),
|
||||
Playlists: t('page.sidebar.playlists'),
|
||||
Radio: t('page.sidebar.radio'),
|
||||
Search: t('page.sidebar.search'),
|
||||
Settings: t('page.sidebar.settings'),
|
||||
Tracks: t('page.sidebar.tracks'),
|
||||
}),
|
||||
[t],
|
||||
);
|
||||
@@ -123,9 +123,7 @@ export const Sidebar = () => {
|
||||
<Accordion.Item value="library">
|
||||
<Accordion.Control>
|
||||
<Text fw={500} variant="secondary">
|
||||
{t('page.sidebar.myLibrary', {
|
||||
postProcess: 'titleCase',
|
||||
})}
|
||||
{t('page.sidebar.myLibrary')}
|
||||
</Text>
|
||||
</Accordion.Control>
|
||||
<Accordion.Panel>
|
||||
@@ -218,11 +216,7 @@ const SidebarImage = () => {
|
||||
style={{ aspectRatio: 1 }}
|
||||
transition={{ duration: 0.3, ease: 'easeInOut' }}
|
||||
>
|
||||
<Tooltip
|
||||
label={t('player.toggleFullscreenPlayer', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
>
|
||||
<Tooltip label={t('player.toggleFullscreenPlayer')}>
|
||||
{isRadioActive && radioImageUrl ? (
|
||||
<img className={styles.sidebarImage} loading="eager" src={radioImageUrl} />
|
||||
) : isRadioActive ? (
|
||||
@@ -269,9 +263,7 @@ const SidebarImage = () => {
|
||||
top: '1rem',
|
||||
}}
|
||||
tooltip={{
|
||||
label: t('common.collapse', {
|
||||
postProcess: 'titleCase',
|
||||
}),
|
||||
label: t('common.collapse'),
|
||||
openDelay: 500,
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user