mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-18 16:36:29 +02:00
Use proper casing for i18n locales (#1998)
This commit is contained in:
@@ -209,7 +209,7 @@ const ReleaseNotesContent = ({ onDismiss, version }: ReleaseNotesContentProps) =
|
||||
value={selectedVersion}
|
||||
/>
|
||||
)}
|
||||
<Text size="sm">{t('error.genericError', { postProcess: 'sentenceCase' })}</Text>
|
||||
<Text size="sm">{t('error.genericError')}</Text>
|
||||
<Group justify="flex-end">
|
||||
<Button
|
||||
component="a"
|
||||
@@ -223,10 +223,10 @@ const ReleaseNotesContent = ({ onDismiss, version }: ReleaseNotesContentProps) =
|
||||
target="_blank"
|
||||
variant="filled"
|
||||
>
|
||||
{t('common.viewReleaseNotes', { postProcess: 'sentenceCase' })}
|
||||
{t('common.viewReleaseNotes')}
|
||||
</Button>
|
||||
<Button onClick={onDismiss} variant="default">
|
||||
{t('common.dismiss', { postProcess: 'titleCase' })}
|
||||
{t('common.dismiss')}
|
||||
</Button>
|
||||
</Group>
|
||||
</Stack>
|
||||
@@ -244,9 +244,7 @@ const ReleaseNotesContent = ({ onDismiss, version }: ReleaseNotesContentProps) =
|
||||
/>
|
||||
)}
|
||||
<Text isMuted size="sm">
|
||||
{t('page.releasenotes.noStableReleaseToCompare', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.releasenotes.noStableReleaseToCompare')}
|
||||
</Text>
|
||||
<Group justify="flex-end">
|
||||
<Button
|
||||
@@ -257,10 +255,10 @@ const ReleaseNotesContent = ({ onDismiss, version }: ReleaseNotesContentProps) =
|
||||
target="_blank"
|
||||
variant="subtle"
|
||||
>
|
||||
{t('action.viewMore', { postProcess: 'sentenceCase' })}
|
||||
{t('action.viewMore')}
|
||||
</Button>
|
||||
<Button onClick={onDismiss} variant="filled">
|
||||
{t('common.dismiss', { postProcess: 'titleCase' })}
|
||||
{t('common.dismiss')}
|
||||
</Button>
|
||||
</Group>
|
||||
</Stack>
|
||||
@@ -281,7 +279,6 @@ const ReleaseNotesContent = ({ onDismiss, version }: ReleaseNotesContentProps) =
|
||||
)}
|
||||
<Text isMuted size="sm">
|
||||
{t('page.releasenotes.commitsSinceStable', {
|
||||
postProcess: 'sentenceCase',
|
||||
stable: latestStableRelease
|
||||
? parseVersionFromTag(latestStableRelease.tag_name)
|
||||
: '',
|
||||
@@ -295,9 +292,7 @@ const ReleaseNotesContent = ({ onDismiss, version }: ReleaseNotesContentProps) =
|
||||
<Stack gap="xs">
|
||||
{commits.length === 0 ? (
|
||||
<Text isMuted size="sm">
|
||||
{t('page.releasenotes.noNewCommits', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.releasenotes.noNewCommits')}
|
||||
</Text>
|
||||
) : (
|
||||
commits.map((c) => {
|
||||
@@ -328,7 +323,7 @@ const ReleaseNotesContent = ({ onDismiss, version }: ReleaseNotesContentProps) =
|
||||
target="_blank"
|
||||
variant="subtle"
|
||||
>
|
||||
{t('common.view', { postProcess: 'sentenceCase' })}
|
||||
{t('common.view')}
|
||||
</Button>
|
||||
</Group>
|
||||
);
|
||||
@@ -345,10 +340,10 @@ const ReleaseNotesContent = ({ onDismiss, version }: ReleaseNotesContentProps) =
|
||||
target="_blank"
|
||||
variant="subtle"
|
||||
>
|
||||
{t('action.viewMore', { postProcess: 'sentenceCase' })}
|
||||
{t('action.viewMore')}
|
||||
</Button>
|
||||
<Button onClick={onDismiss} variant="filled">
|
||||
{t('common.dismiss', { postProcess: 'titleCase' })}
|
||||
{t('common.dismiss')}
|
||||
</Button>
|
||||
</Group>
|
||||
</Stack>
|
||||
@@ -385,10 +380,10 @@ const ReleaseNotesContent = ({ onDismiss, version }: ReleaseNotesContentProps) =
|
||||
target="_blank"
|
||||
variant="subtle"
|
||||
>
|
||||
{t('action.viewMore', { postProcess: 'sentenceCase' })}
|
||||
{t('action.viewMore')}
|
||||
</Button>
|
||||
<Button onClick={onDismiss} variant="filled">
|
||||
{t('common.dismiss', { postProcess: 'titleCase' })}
|
||||
{t('common.dismiss')}
|
||||
</Button>
|
||||
</Group>
|
||||
</Stack>
|
||||
@@ -459,10 +454,7 @@ export const ReleaseNotesModal = () => {
|
||||
),
|
||||
onClose: () => dismissRef.current?.(),
|
||||
size: 'xl',
|
||||
title: t('common.newVersion', {
|
||||
postProcess: 'sentenceCase',
|
||||
version,
|
||||
}) as string,
|
||||
title: t('common.newVersion', { version }) as string,
|
||||
});
|
||||
}
|
||||
}, WAIT_FOR_LOCAL_STORAGE);
|
||||
|
||||
Reference in New Issue
Block a user