Remove t function from admin_definition.tsx (and more) (#25406)
* Remove t function from schema_admin_settings * i18n * Fix import * Use always string or descriptor and more improvements * i18n-extract * Remove t function for roles * Remove more t functions * Address feedback * i18n-extract fix * Fix tests * Fix tests * Remove translation of team edition notice * Remove unexpected file in the commit * Address feedback * Fix search in admin console * Fix test
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6f1bbcd8ec
Коммит
8818141dae
@@ -1,6 +1,12 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
// Equivalent to MessageDescriptor from react-intl
|
||||
type MessageDescriptor = {
|
||||
id: string;
|
||||
defaultMessage: string;
|
||||
}
|
||||
|
||||
export type PluginManifest = {
|
||||
id: string;
|
||||
name: string;
|
||||
@@ -44,7 +50,7 @@ export type PluginSetting = {
|
||||
key: string;
|
||||
display_name: string;
|
||||
type: string;
|
||||
help_text: string;
|
||||
help_text: string | MessageDescriptor;
|
||||
regenerate_help_text?: string;
|
||||
placeholder: string;
|
||||
default: any;
|
||||
|
||||
Ссылка в новой задаче
Block a user