mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 15:45:23 +00:00
fix: file manager and sftp text showing raw i18n keys
This commit is contained in:
1 parent
9015d5dccb
commit
95a5e75495
38 files changed
+61
-45
No files matched your search
@@ -214,4 +214,23 @@ export default tseslint.config([
|
||||
"termix-plugins/stay-inside": "error",
|
||||
},
|
||||
},
|
||||
{
|
||||
// react-i18next's hook reads core's namespace, so plugin strings show as raw keys.
|
||||
files: ["plugins/*/src/**/*.{ts,tsx}"],
|
||||
rules: {
|
||||
"no-restricted-imports": [
|
||||
"error",
|
||||
{
|
||||
paths: [
|
||||
{
|
||||
name: "react-i18next",
|
||||
importNames: ["useTranslation", "Trans", "withTranslation"],
|
||||
message:
|
||||
"Use useTranslation from @termix/plugin-sdk/frontend so keys resolve in this plugin's namespace.",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
]);
|
||||
Reference in new issue
Block a user