mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-10 20:49:55 +02:00
Use proper casing for i18n locales (#1998)
This commit is contained in:
@@ -84,7 +84,7 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
icon="arrowDownS"
|
||||
iconProps={{ size: 'lg' }}
|
||||
onClick={onClose}
|
||||
tooltip={{ label: t('common.minimize', { postProcess: 'titleCase' }) }}
|
||||
tooltip={{ label: t('common.minimize') }}
|
||||
variant={isPageHovered ? 'default' : 'subtle'}
|
||||
/>
|
||||
<Popover position="bottom-end">
|
||||
@@ -92,16 +92,14 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
<ActionIcon
|
||||
icon="settings2"
|
||||
iconProps={{ size: 'lg' }}
|
||||
tooltip={{ label: t('common.configure', { postProcess: 'titleCase' }) }}
|
||||
tooltip={{ label: t('common.configure') }}
|
||||
variant={isPageHovered ? 'default' : 'subtle'}
|
||||
/>
|
||||
</Popover.Target>
|
||||
<Popover.Dropdown>
|
||||
<Option>
|
||||
<Option.Label>
|
||||
{t('page.fullscreenPlayer.config.dynamicBackground', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.fullscreenPlayer.config.dynamicBackground')}
|
||||
</Option.Label>
|
||||
<Option.Control>
|
||||
<Switch
|
||||
@@ -117,9 +115,7 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
{dynamicBackground && (
|
||||
<Option>
|
||||
<Option.Label>
|
||||
{t('page.fullscreenPlayer.config.dynamicIsImage', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.fullscreenPlayer.config.dynamicIsImage')}
|
||||
</Option.Label>
|
||||
<Option.Control>
|
||||
<Switch
|
||||
@@ -136,9 +132,7 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
{dynamicBackground && dynamicIsImage && (
|
||||
<Option>
|
||||
<Option.Label>
|
||||
{t('page.fullscreenPlayer.config.dynamicImageBlur', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.fullscreenPlayer.config.dynamicImageBlur')}
|
||||
</Option.Label>
|
||||
<Option.Control>
|
||||
<Slider
|
||||
@@ -158,9 +152,7 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
{dynamicBackground && (
|
||||
<Option>
|
||||
<Option.Label>
|
||||
{t('page.fullscreenPlayer.config.opacity', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.fullscreenPlayer.config.opacity')}
|
||||
</Option.Label>
|
||||
<Option.Control>
|
||||
<Slider
|
||||
@@ -176,9 +168,7 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
)}
|
||||
<Option>
|
||||
<Option.Label>
|
||||
{t('page.fullscreenPlayer.config.useImageAspectRatio', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.fullscreenPlayer.config.useImageAspectRatio')}
|
||||
</Option.Label>
|
||||
<Option.Control>
|
||||
<Switch
|
||||
@@ -194,9 +184,7 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
<Divider my="sm" />
|
||||
<Option>
|
||||
<Option.Label>
|
||||
{t('page.fullscreenPlayer.config.followCurrentLyric', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.fullscreenPlayer.config.followCurrentLyric')}
|
||||
</Option.Label>
|
||||
<Option.Control>
|
||||
<Switch
|
||||
@@ -209,9 +197,7 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
</Option>
|
||||
<Option>
|
||||
<Option.Label>
|
||||
{t('page.fullscreenPlayer.config.showLyricProvider', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.fullscreenPlayer.config.showLyricProvider')}
|
||||
</Option.Label>
|
||||
<Option.Control>
|
||||
<Switch
|
||||
@@ -227,9 +213,7 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
</Option>
|
||||
<Option>
|
||||
<Option.Label>
|
||||
{t('page.fullscreenPlayer.config.showLyricMatch', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.fullscreenPlayer.config.showLyricMatch')}
|
||||
</Option.Label>
|
||||
<Option.Control>
|
||||
<Switch
|
||||
@@ -242,18 +226,14 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
</Option>
|
||||
<Option>
|
||||
<Option.Label>
|
||||
{t('page.fullscreenPlayer.config.lyricSize', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.fullscreenPlayer.config.lyricSize')}
|
||||
</Option.Label>
|
||||
<Option.Control>
|
||||
<Group w="100%" wrap="nowrap">
|
||||
<Slider
|
||||
defaultValue={lyricConfig.fontSize}
|
||||
label={(e) =>
|
||||
`${t('page.fullscreenPlayer.config.synchronized', {
|
||||
postProcess: 'titleCase',
|
||||
})}: ${e}px`
|
||||
`${t('page.fullscreenPlayer.config.synchronized')}: ${e}px`
|
||||
}
|
||||
max={72}
|
||||
min={8}
|
||||
@@ -265,9 +245,7 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
<Slider
|
||||
defaultValue={lyricConfig.fontSizeUnsync}
|
||||
label={(e) =>
|
||||
`${t('page.fullscreenPlayer.config.unsynchronized', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}: ${e}px`
|
||||
`${t('page.fullscreenPlayer.config.unsynchronized')}: ${e}px`
|
||||
}
|
||||
max={72}
|
||||
min={8}
|
||||
@@ -281,9 +259,7 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
</Option>
|
||||
<Option>
|
||||
<Option.Label>
|
||||
{t('page.fullscreenPlayer.config.lyricGap', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.fullscreenPlayer.config.lyricGap')}
|
||||
</Option.Label>
|
||||
<Option.Control>
|
||||
<Group w="100%" wrap="nowrap">
|
||||
@@ -310,29 +286,21 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
</Option>
|
||||
<Option>
|
||||
<Option.Label>
|
||||
{t('page.fullscreenPlayer.config.lyricAlignment', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.fullscreenPlayer.config.lyricAlignment')}
|
||||
</Option.Label>
|
||||
<Option.Control>
|
||||
<SegmentedControl
|
||||
data={[
|
||||
{
|
||||
label: t('common.left', {
|
||||
postProcess: 'titleCase',
|
||||
}),
|
||||
label: t('common.left'),
|
||||
value: 'left',
|
||||
},
|
||||
{
|
||||
label: t('common.center', {
|
||||
postProcess: 'titleCase',
|
||||
}),
|
||||
label: t('common.center'),
|
||||
value: 'center',
|
||||
},
|
||||
{
|
||||
label: t('common.right', {
|
||||
postProcess: 'titleCase',
|
||||
}),
|
||||
label: t('common.right'),
|
||||
value: 'right',
|
||||
},
|
||||
]}
|
||||
@@ -343,9 +311,7 @@ export const MobileFullscreenPlayerHeader = memo(
|
||||
</Option>
|
||||
<Option>
|
||||
<Option.Label>
|
||||
{t('page.fullscreenPlayer.config.lyricOffset', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.fullscreenPlayer.config.lyricOffset')}
|
||||
</Option.Label>
|
||||
<Option.Control>
|
||||
<NumberInput
|
||||
|
||||
Reference in New Issue
Block a user