chore: i18n the last - hopefully

This commit is contained in:
2026-02-21 13:38:01 +01:00
parent d7840a60df
commit f8e532fbf5
9 changed files with 18 additions and 8 deletions

View File

@@ -28,8 +28,8 @@ export default [
i18next,
},
rules: {
'i18next/no-literal-string': ['warn', {
mode: 'jsx-only',
'i18next/no-literal-string': ['error', {
mode: 'jsx-text-only',
'jsx-components': {
exclude: ['Trans'],
},
@@ -83,6 +83,13 @@ export default [
'[0-9!-/:-@[-`{-~]+',
'[A-Z_-]+',
/^\p{Emoji}+$/u,
/^[\s\p{Emoji}\uFE0F]+$/u,
/^[\s0-9%—()\-+.]+$/,
/^[\s+ו○●⊘→←↶↷―✕✖✔❝]+$/,
/^H[1-6]$/,
/^(DB\s*→\s*File|File\s*→\s*DB)$/,
/^\/posts\/$/,
'bDS',
'[✓✗▼▶◀▲]+'
],
},