From fed6a7aa51ea35502c9414d3b8443e227b6279ab Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 18 Dec 2022 12:29:31 -0600 Subject: [PATCH 1/3] Fix demo mode --- app/soapbox/containers/soapbox.tsx | 4 +++- app/soapbox/features/developers/settings-store.tsx | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/soapbox/containers/soapbox.tsx b/app/soapbox/containers/soapbox.tsx index a47eaa6d1..2beaa516c 100644 --- a/app/soapbox/containers/soapbox.tsx +++ b/app/soapbox/containers/soapbox.tsx @@ -41,6 +41,7 @@ import { useInstance, } from 'soapbox/hooks'; import MESSAGES from 'soapbox/locales/messages'; +import { normalizeSoapboxConfig } from 'soapbox/normalizers'; import { queryClient } from 'soapbox/queries/client'; import { useCachedLocationHandler } from 'soapbox/utils/redirect'; import { generateThemeCss } from 'soapbox/utils/theme'; @@ -267,8 +268,9 @@ const SoapboxHead: React.FC = ({ children }) => { const settings = useSettings(); const soapboxConfig = useSoapboxConfig(); + const demo = !!settings.get('demo'); const darkMode = useTheme() === 'dark'; - const themeCss = generateThemeCss(soapboxConfig); + const themeCss = generateThemeCss(demo ? normalizeSoapboxConfig({ brandColor: '#0482d8' }) : soapboxConfig); const bodyClass = classNames('bg-white dark:bg-gray-800 text-base h-full', { 'no-reduce-motion': !settings.get('reduceMotion'), diff --git a/app/soapbox/features/developers/settings-store.tsx b/app/soapbox/features/developers/settings-store.tsx index 521ed0dab..6342ef1ae 100644 --- a/app/soapbox/features/developers/settings-store.tsx +++ b/app/soapbox/features/developers/settings-store.tsx @@ -103,6 +103,13 @@ const SettingsStore: React.FC = () => { + } + hint={} + > + + + }> From 1c7198943263f2126c9a82bec7a345c63c5f13c3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 18 Dec 2022 12:31:45 -0600 Subject: [PATCH 2/3] CHANGELOG: mention RTL support --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc516b8df..1ea4e5ede 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Posts: hover the "replying to" line to see a preview card of the parent post. - Chats: ability to leave a chat (on Rebased, Truth Social). - Chats: ability to disable chats for yourself. +- Layout: added right-to-left support for Arabic, Hebrew, Persian, and Central Kurdish languages. - Composer: support custom emoji categories. - Search: ability to search posts from a specific account (on Pleroma, Rebased). - Theme: auto-detect system theme by default. From 1334241873687f14e4b541302310c7132b389e23 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 18 Dec 2022 12:37:07 -0600 Subject: [PATCH 3/3] CHANGELOG: add i18n notes --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ea4e5ede..90a3507f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Admin: added Theme Editor, a GUI for customizing the color scheme. - Admin: custom badges. Admins can add non-federating badges to any user's profile (on Rebased, Pleroma). - Admin: consolidated user dropdown actions (verify/suggest/etc) into a unified "Moderate User" modal. +- i18n: updated translations for Italian, Polish, Arabic, Hebrew, and German. ### Changed - UI: the whole UI has been overhauled both inside and out. 97% of the codebase has been rewritten to TypeScript, and a new component library has been introduced with Tailwind CSS. @@ -70,6 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Compatibility: improved support for Mastodon, added support for Mitra. - Ethereum: Metamask sign-in with Mitra. - i18n: added Shavian alphabet (`en-Shaw`) transliteration. +- i18n: added Icelandic translation. ### Changed - Feeds: added gaps between posts in feeds.