From 727d05915f0987fbab4ae8f185539585288f6046 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Sun, 1 Jan 2023 16:29:11 +0200 Subject: [PATCH] fix: layout fixes for RTL languages (#591) * fix: rtl arrows on settings page * fix: border on settings page for RTL languages * fix: RTL fixes for logo, search box and logout icon * fix: RTL layout bugs in conversations * chore: remove rtl setting icon * improve arabic locale * add new entries to arabic locale * chore: include number format * fix: RTL layout on several pages * fix: RTL layout of account header and sign in modal * fix: always display account handle in LTR * fix: move character counter in publish widget to left side for RTL * fix: remove border-ss-none unocss rule * fix: many RTL fixes * fix: RTL fixes for many pages * fix: use viewer's direction in all content * chore: use new arabic plural rules * chore: flip arrow on main content header * chore: fix StatusPoll and show_new_items for zh-TW * chore: StatusPoll tooltip on bottom * chore: add `en` variants to i18n conf * chore: update entry to use new plural rule * fix: automatic content direction for status * fix: direction for account handle * fix: direction of polls Co-authored-by: userquin Co-authored-by: Jean-Paul Khawam Co-authored-by: Daniel Roe --- components/account/AccountBigCard.vue | 2 +- components/account/AccountBigCardSkeleton.vue | 2 +- components/account/AccountHandle.vue | 2 +- components/account/AccountHeader.vue | 2 +- components/account/AccountHoverCard.vue | 2 +- components/account/AccountInlineInfo.vue | 2 +- components/account/AccountPostsFollowers.vue | 6 +- components/command/CommandItem.vue | 2 +- components/common/CommonCheckbox.vue | 4 +- components/common/CommonRadio.vue | 4 +- components/content/ContentRich.setup.ts | 2 +- components/conversation/ConversationCard.vue | 2 +- components/help/HelpPreview.vue | 2 +- components/main/MainContent.vue | 2 +- components/modal/ModalMediaPreview.vue | 4 +- components/nav/NavBottomMoreMenu.vue | 4 +- components/nav/NavTitle.vue | 2 +- components/notification/NotificationCard.vue | 35 ++-- .../NotificationGroupedFollow.vue | 11 +- .../notification/NotificationGroupedLikes.vue | 8 +- .../notification/NotificationPaginator.vue | 3 +- components/publish/PublishWidget.vue | 13 +- components/pwa/PwaPrompt.client.vue | 2 +- components/search/SearchWidget.vue | 8 +- components/settings/SettingsNavItem.vue | 2 +- components/status/StatusActionsMore.vue | 2 +- components/status/StatusCard.vue | 15 +- components/status/StatusContent.vue | 2 +- components/status/StatusDetails.vue | 8 +- components/status/StatusPoll.vue | 23 ++- components/status/StatusPreviewGitHub.vue | 4 +- components/timeline/TimelinePaginator.vue | 3 +- components/user/UserSignIn.vue | 11 +- components/user/UserSwitcher.vue | 2 +- composables/i18n.ts | 76 ++++---- config/i18n.ts | 87 +++++++-- locales/ar-EG.json | 180 ++++++++++++------ locales/cs-CZ.json | 2 +- locales/de-DE.json | 2 +- locales/en-GB.json | 2 +- locales/en-US.json | 2 +- locales/es-ES.json | 2 +- locales/fr-FR.json | 2 +- locales/ja-JP.json | 2 +- locales/zh-CN.json | 2 +- locales/zh-TW.json | 2 +- pages/pinned.vue | 2 +- pages/search.vue | 2 +- pages/settings.vue | 2 +- styles/global.css | 4 + 50 files changed, 347 insertions(+), 222 deletions(-) diff --git a/components/account/AccountBigCard.vue b/components/account/AccountBigCard.vue index b4a75c7d..270e1ac9 100644 --- a/components/account/AccountBigCard.vue +++ b/components/account/AccountBigCard.vue @@ -24,7 +24,7 @@ defineOptions({