Aias00 commented on issue #2692:
URL: https://github.com/apache/hertzbeat/issues/2692#issuecomment-2355474810
> > > > > > > Hello,I want to try it.
> > > > > >
> > > > > >
> > > > > > 👍 Hi, it is recommended to still store the `app name` in the
database unchanged, and add a match from the monitoring template yml mapping
content when searching.
> > > > >
> > > > >
> > > > > Hi,my idea is add new column TRANSLATIONS in table
HZB_ALERT_DEFINE for store translate content with en-US、zh-CN、zh-TW. Then I
will add request params in web front when new threshold rules. TRANSLATIONS
paramas styles like it that "{ "en-US": "Prometheus Task / Monitor
Availability", "zh-CN": "Prometheus任务 / 监控可用性", "zh-TW": "Prometheus任务 / 監控可用性"
}". It will match this params when searching. What do you about it?
> > > >
> > > >
> > > > no, don not need to add any column, cause u can translate the search
content to saved content
> > >
> > >
> > > OK,I can new yml to translate the search contnet to saved content.
Like this pic below

> >
> >
> > hi, maybe u can try i18n. Search this keyword in project~
>
> Sorry, I can not understant completely what your mens compleltely. And,
i18n is implemented on the web front end. Could tell me some details? You means
it that I should mappping other lang in yml, example for en-US and zh-TW?
refer this:
org.apache.hertzbeat.manager.service.impl.AppServiceImpl#getI18nApps
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]