refactor(MM-64981): text change for no internet connection (#9271)

This commit is contained in:
Rahim Rahman 2025-11-07 09:57:53 -07:00 committed by GitHub
parent b11b7d1d17
commit 308aa0c45e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -109,7 +109,7 @@ const ConnectionBanner = ({
clearTimeoutRef(openTimeout);
clearTimeoutRef(closeTimeout);
};
}, []);
}, []); // eslint-disable-line react-hooks/exhaustive-deps -- only run on mount
useDidUpdate(() => {
if (isConnected) {
@ -164,7 +164,7 @@ const ConnectionBanner = ({
} else if (netInfo.isInternetReachable) {
text = intl.formatMessage({id: 'connection_banner.not_reachable', defaultMessage: 'The server is not reachable'});
} else {
text = intl.formatMessage({id: 'connection_banner.not_connected', defaultMessage: 'No internet connection'});
text = intl.formatMessage({id: 'connection_banner.not_connected', defaultMessage: 'Unable to connect to network'});
}
return (

View file

@ -272,7 +272,7 @@
"combined_system_message.you": "You",
"connection_banner.connected": "Connection restored",
"connection_banner.connecting": "Connecting...",
"connection_banner.not_connected": "No internet connection",
"connection_banner.not_connected": "Unable to connect to network",
"connection_banner.not_reachable": "The server is not reachable",
"create_direct_message.title": "Create Direct Message",
"create_post.deactivated": "You are viewing an archived channel with a deactivated user.",