fix: Enable Lingui recommended rules and fix all translation violations (#14133)
- Enable lingui/no-single-variables-to-translate and all other
recommended Lingui rules
- Fix single variable translation patterns (t`${variable}` → variable)
- Fix expression-in-message violations by extracting variables
- Fix t-call-in-function violations by moving translations inside
functions
- Update ESLint configs to use linguiPlugin.configs['flat/recommended']
- Clean up unused imports and improve translation patterns
This commit is contained in:
@@ -100,7 +100,7 @@ const StyledIcon = styled(IconReload)`
|
||||
|
||||
export const AppRootErrorFallback = ({
|
||||
resetErrorBoundary,
|
||||
title = 'Sorry, something went wrong',
|
||||
title = t`Sorry, something went wrong`,
|
||||
}: AppRootErrorFallbackProps) => {
|
||||
return (
|
||||
<StyledContainer>
|
||||
@@ -117,7 +117,7 @@ export const AppRootErrorFallback = ({
|
||||
/>
|
||||
</StyledImageContainer>
|
||||
<StyledEmptyTextContainer>
|
||||
<StyledEmptyTitle>{t`${title}`}</StyledEmptyTitle>
|
||||
<StyledEmptyTitle>{title}</StyledEmptyTitle>
|
||||
<StyledEmptySubTitle>
|
||||
{t`Please refresh the page.`}
|
||||
</StyledEmptySubTitle>
|
||||
|
||||
Reference in New Issue
Block a user