mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
# Backport This will backport the following commits from `main` to `8.12`: - [Fix typo in Language Identification (#173336)](https://github.com/elastic/kibana/pull/173336) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kathleen DeRusso","email":"kathleen.derusso@elastic.co"},"sourceCommit":{"committedDate":"2023-12-18T16:42:26Z","message":"Fix typo in Language Identification (#173336)\n\nFixes a typo.","sha":"2d828816d4411dc4343116c0ded24b66b6cab847","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.12.0","v8.13.0"],"number":173336,"url":"https://github.com/elastic/kibana/pull/173336","mergeCommit":{"message":"Fix typo in Language Identification (#173336)\n\nFixes a typo.","sha":"2d828816d4411dc4343116c0ded24b66b6cab847"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/173336","number":173336,"mergeCommit":{"message":"Fix typo in Language Identification (#173336)\n\nFixes a typo.","sha":"2d828816d4411dc4343116c0ded24b66b6cab847"}}]}] BACKPORT--> Co-authored-by: Kathleen DeRusso <kathleen.derusso@elastic.co>
This commit is contained in:
parent
724e144991
commit
10f0886c5c
1 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
import { MlTrainedModelConfig, MlTrainedModelStats } from '@elastic/elasticsearch/lib/api/types';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { MlTrainedModels } from '@kbn/ml-plugin/server';
|
||||
|
||||
import { MlModelDeploymentState, MlModel } from '../../../common/types/ml';
|
||||
|
@ -207,7 +208,9 @@ const getUserFriendlyTitle = (modelId: string, modelType: string) => {
|
|||
return MODEL_TITLES_BY_TYPE[modelType] !== undefined
|
||||
? MODEL_TITLES_BY_TYPE[modelType]!
|
||||
: modelId === LANG_IDENT_MODEL_ID
|
||||
? 'Lanugage Identification'
|
||||
? i18n.translate('xpack.enterpriseSearch.content.ml_inference.lang_ident', {
|
||||
defaultMessage: 'Language Identification',
|
||||
})
|
||||
: modelId;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue