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
Этот коммит содержится в:
Daniel Espino García
2024-01-16 10:10:24 +01:00
коммит произвёл GitHub
родитель 6f1bbcd8ec
Коммит 8818141dae
159 изменённых файлов: 7096 добавлений и 6350 удалений

Просмотреть файл

@@ -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;