Translation files: area files in place and the common texts for shared labels

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 17:36:38 +01:00
co-authored by Claude Sonnet 5.5
parent 246ebe5fd6
commit ab33e1fc83
13 changed files with 55 additions and 2 deletions
+10
View File
@@ -47,6 +47,16 @@ export default tseslint.config(
],
plugins: { react },
rules: {
// Text in attributes that people read or hear (labels, alt text)
'no-restricted-syntax': [
'warn',
{
selector:
"JSXAttribute[name.name=/^(aria-label|aria-description|alt|title|placeholder|label)$/][value.type='Literal']",
message:
'Put the text in a language file (src/i18n) and use t().',
},
],
'react/jsx-no-literals': [
'warn',
{