* Add autotranslations * Develop latest changes and missing features * i18n-extract * Fix tests and update api behavior * Fix minor bugs * adjustments to shimmer animation, showtranslation modal style * Update post.tsx * Update show_translation.tsx * adjust sizing and opacity of translate icon * Add channel header translated icon * Disable auto translation item if it is not a supported language * Move channel info to the top * Update edit channel to channel info * Fix align of option items * Fix i18n * Add detox related changes for channel settings changes * Add tests * Address changes around the my channel column change * Address feedback * Fix test * Fix bad import * Fix set my channel autotranslation * Fix test * Address feedback * Add missing files from last commit * Remove unneeded change --------- Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
31 lines
711 B
TypeScript
31 lines
711 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
type WebsocketBroadcast = {
|
|
omit_users: Dictionary<boolean>;
|
|
user_id: string;
|
|
channel_id: string;
|
|
team_id: string;
|
|
}
|
|
|
|
type WebSocketMessage<T = any> = {
|
|
event: string;
|
|
data: T;
|
|
broadcast: WebsocketBroadcast;
|
|
seq: number;
|
|
}
|
|
|
|
type ThreadReadChangedData = {
|
|
thread_id: string;
|
|
timestamp: number;
|
|
unread_mentions: number;
|
|
unread_replies: number;
|
|
};
|
|
|
|
type PostTranslationUpdateData = {
|
|
language: string;
|
|
object_id: string;
|
|
src_lang: string;
|
|
state: PostTranslationState;
|
|
translation: string; // JSON-encoded PostTranslation['object']
|
|
}
|