Skip to content

Commit c97cfa1

Browse files
fix: update to AGENTS.md
1 parent f1ecd2b commit c97cfa1

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A frontend plugin to the OpenShit Console of the [Korrel8r](https://github.com/k
77

88
| System | Repository | Purpose |
99
|--------|------------|---------|
10-
| COO | https://github.com/rhobs/observability-operator | Manages monitoring-console-plugin |
10+
| COO | https://github.com/rhobs/observability-operator | Manages troubleshooting-panel-console-plugin |
1111
| Korrel8r | https://github.com/korrel8r/korrel8r | Correlation backend |
1212
| Console SDK | https://github.com/openshift/console | Plugin framework |
1313

@@ -58,6 +58,19 @@ The troubelshooting-panel uses the following technologies:
5858
- i18next
5959
- redux
6060

61+
#### i18next
62+
When working with i18next the react hook should contain the troubleshooting panels namespace, and each piece of static text should be wrapped in the returned translation function. After adding a new tranlated text, make sure to run `make build-frontend` which will regenerate the translation files.
63+
64+
```ts
65+
const { t } = useTranslation('plugin__troubleshooting-panel-console-plugin');
66+
return <div>{`t('Korrel8r')`}</div>
67+
```
68+
69+
### Backend
70+
The troubelshooting-panel uses the following technologies:
71+
- go
72+
- gorilla/mux
73+
6174
### Console Plugin Framework:
6275
- Dynamic Plugin: https://github.com/openshift/enhancements/blob/master/enhancements/console/dynamic-plugins.md
6376
- Plugin SDK README: https://github.com/openshift/console/blob/main/frontend/packages/console-dynamic-plugin-sdk/README.md

0 commit comments

Comments
 (0)