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:
+7
-1
@@ -35,7 +35,13 @@ export const MultiWorkspaceDropdownThemesComponents = () => {
|
||||
<MenuItem
|
||||
key={theme.id}
|
||||
LeftIcon={theme.icon}
|
||||
text={t`${theme.id}`}
|
||||
text={
|
||||
theme.id === 'System'
|
||||
? t`System`
|
||||
: theme.id === 'Dark'
|
||||
? t`Dark`
|
||||
: t`Light`
|
||||
}
|
||||
onClick={() => setColorScheme(theme.id)}
|
||||
RightIcon={theme.id === colorScheme ? IconCheck : undefined}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user