diff --git a/phone/src/apps/twitter/components/AddTweetModal.tsx b/phone/src/apps/twitter/components/AddTweetModal.tsx index 4be74e0cd..4bffb7e47 100644 --- a/phone/src/apps/twitter/components/AddTweetModal.tsx +++ b/phone/src/apps/twitter/components/AddTweetModal.tsx @@ -110,7 +110,7 @@ export const AddTweetModal = () => { if (resp.status !== 'ok') { return addAlert({ type: 'error', - message: t('APPS_TWITTER_CREATE_FAILED'), + message: t('TWITTER.FEEDBACK.CREATE_PROFILE_FAILURE'), }); } }); diff --git a/phone/src/apps/twitter/components/buttons/LikeButton.tsx b/phone/src/apps/twitter/components/buttons/LikeButton.tsx index c8e201da9..8d78acba8 100644 --- a/phone/src/apps/twitter/components/buttons/LikeButton.tsx +++ b/phone/src/apps/twitter/components/buttons/LikeButton.tsx @@ -19,7 +19,7 @@ function LikeButton({ tweetId, isLiked }) { fetchNui>(TwitterEvents.TOGGLE_LIKE, { tweetId }).then((resp) => { if (resp.status !== 'ok') { return addAlert({ - message: t('APPS_TWITTER_LIKE_TWEET_FAILED'), + message: t('TWITTER.FEEDBACK.LIKE_TWEET_FAILED'), type: 'error', }); } diff --git a/phone/src/apps/twitter/components/buttons/ReportButton.tsx b/phone/src/apps/twitter/components/buttons/ReportButton.tsx index ede126e46..ff933f5ab 100644 --- a/phone/src/apps/twitter/components/buttons/ReportButton.tsx +++ b/phone/src/apps/twitter/components/buttons/ReportButton.tsx @@ -18,7 +18,7 @@ function ReportButton({ handleClose, tweetId, isReported }) { fetchNui>(TwitterEvents.REPORT, { tweetId }).then((resp) => { if (resp.status !== 'ok') { return addAlert({ - message: t('APPS_TWITTER_REPORT_TWEET_FAILED'), + message: t('TWITTER.FEEDBACK.REPORT_TWEET_FAILED'), type: 'error', }); } @@ -27,7 +27,7 @@ function ReportButton({ handleClose, tweetId, isReported }) { handleClose(); addAlert({ - message: t('APPS_TWITTER_REPORT_TWEET_SUCCESS'), + message: t('TWITTER.FEEDBACK.REPORT_TWEET_SUCCESS'), type: 'success', }); }); diff --git a/phone/src/apps/twitter/components/buttons/RetweetButton.tsx b/phone/src/apps/twitter/components/buttons/RetweetButton.tsx index 535dddeb3..45c7a5f63 100644 --- a/phone/src/apps/twitter/components/buttons/RetweetButton.tsx +++ b/phone/src/apps/twitter/components/buttons/RetweetButton.tsx @@ -44,7 +44,7 @@ export const RetweetButton = ({ tweetId, isRetweet, retweetId }: IProps) => { (resp) => { if (resp.status !== 'ok') { return addAlert({ - message: t('APPS_TWITTER_RETWEET_FAILED'), + message: t('TWITTER.FEEDBACK.RETWEET_FAILED'), type: 'error', }); } diff --git a/phone/src/apps/twitter/components/tweet/ShowMore.tsx b/phone/src/apps/twitter/components/tweet/ShowMore.tsx index cb9f1004c..b08ffa86c 100644 --- a/phone/src/apps/twitter/components/tweet/ShowMore.tsx +++ b/phone/src/apps/twitter/components/tweet/ShowMore.tsx @@ -32,7 +32,7 @@ export const ShowMore = ({ id, isReported, isMine }) => { fetchNui>(TwitterEvents.DELETE_TWEET, { tweetId: id }).then((resp) => { if (resp.status !== 'ok') { return addAlert({ - message: t('APPS_TWITTER_DELETE_TWEET_FAILED'), + message: t('TWITTER.FEEDBACK.DELETE_TWEET_FAILED'), type: 'error', }); } diff --git a/phone/src/apps/twitter/components/tweet/TweetList.tsx b/phone/src/apps/twitter/components/tweet/TweetList.tsx index 98fdc880c..661b275d0 100644 --- a/phone/src/apps/twitter/components/tweet/TweetList.tsx +++ b/phone/src/apps/twitter/components/tweet/TweetList.tsx @@ -26,7 +26,7 @@ export function TweetList({ tweets }: { tweets: FormattedTweet[] }) { if (resp.status !== 'ok') { return addAlert({ type: 'error', - message: t('APPS_TWITTER_FETCH_TWEETS_FAILED'), + message: t('TWITTER.FEEDBACK.FETCH_TWEETS_FAILED'), }); } diff --git a/phone/src/locale/en.json b/phone/src/locale/en.json index 11cd647f8..6678a5c8c 100644 --- a/phone/src/locale/en.json +++ b/phone/src/locale/en.json @@ -102,7 +102,13 @@ "EDIT_PROFILE_SUCCESS": "Successfully updated your profile", "EDIT_PROFILE_FAILURE": "Failed to update your profile", "CREATE_FAILED": "Failed to send your tweet", - "RETWEET_EXISTS": "You have already retweeted this tweet!" + "RETWEET_FAILED": "Failed to retweet this tweet", + "RETWEET_EXISTS": "You have already retweeted this tweet!", + "LIKE_TWEET_FAILED": "Failed to like tweet", + "REPORT_TWEET_SUCCESS": "Successfully reported tweet", + "REPORT_TWEET_FAILED": "Failed to report tweet", + "FETCH_TWEETS_FAILED": "Failed to fetch tweets", + "DELETE_TWEET_FAILED": "Failed to delete tweet" }, "MESSAGES": { "NEW_RETWEET_BROADCAST": "@{{ profile_name }} retweeted someone!",