Skip to content

Commit 4b56eeb

Browse files
committed
feat: missing translations
1 parent 84d309f commit 4b56eeb

File tree

19 files changed

+141
-86
lines changed

19 files changed

+141
-86
lines changed
Lines changed: 9 additions & 0 deletions
Loading
Lines changed: 9 additions & 0 deletions
Loading

apps/frontend/src/components/launches/launches.component.tsx

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export const LaunchesComponent = () => {
335335
const t = useT();
336336
const [reload, setReload] = useState(false);
337337
const [collapseMenu, setCollapseMenu] = useCookie('collapseMenu', '0');
338-
338+
const [mode] = useCookie('mode', 'dark');
339339
const { isLoading, data: integrations, mutate } = useIntegrationList();
340340

341341
const totalNonDisabledChannels = useMemo(() => {
@@ -474,8 +474,13 @@ export const LaunchesComponent = () => {
474474
)}
475475
>
476476
<div className="flex items-center">
477-
<h2 className="group-[.sidebar]:hidden flex-1 text-[20px] font-[500]">{t('channels')}</h2>
478-
<div onClick={() => setCollapseMenu(collapseMenu === '1' ? '0' : '1')} className="group-[.sidebar]:rotate-[180deg] group-[.sidebar]:mx-auto text-btnText bg-btnSimple rounded-[6px] w-[24px] h-[24px] flex items-center justify-center cursor-pointer select-none">
477+
<h2 className="group-[.sidebar]:hidden flex-1 text-[20px] font-[500]">
478+
{t('channels')}
479+
</h2>
480+
<div
481+
onClick={() => setCollapseMenu(collapseMenu === '1' ? '0' : '1')}
482+
className="group-[.sidebar]:rotate-[180deg] group-[.sidebar]:mx-auto text-btnText bg-btnSimple rounded-[6px] w-[24px] h-[24px] flex items-center justify-center cursor-pointer select-none"
483+
>
479484
<svg
480485
xmlns="http://www.w3.org/2000/svg"
481486
width="7"
@@ -501,16 +506,27 @@ export const LaunchesComponent = () => {
501506
user?.tier?.ai &&
502507
billingEnabled && <GeneratorComponent />}
503508
</div>
504-
<div className="mt-[5px]">
505-
{process.env.NEXT_PUBLIC_VERSION
506-
? `${process.env.NEXT_PUBLIC_VERSION}`
507-
: ''}
508-
</div>
509509
</div>
510510
<div className="gap-[32px] flex flex-col select-none flex-1">
511-
{sortedIntegrations.length === 0 && (
512-
<div className="text-[12px]">
513-
{t('no_channels', 'No channels')}
511+
{sortedIntegrations.length === 0 && collapseMenu === '0' && (
512+
<div className="flex-1 justify-center items-center flex">
513+
<div className="flex flex-col gap-[12px] text-center">
514+
<img
515+
src={
516+
mode === 'dark'
517+
? '/no-channels.svg'
518+
: '/no-channels-colors.svg'
519+
}
520+
alt="No channels"
521+
className="mx-auto min-w-[100%]"
522+
/>
523+
<div className="font-[600] text-[20px]">
524+
{t('no_channels', 'No channels yet')}
525+
</div>
526+
<div className="text-[14px]">
527+
{t('connect_your_accounts')}
528+
</div>
529+
</div>
514530
</div>
515531
)}
516532
{menuIntegrations.map((menu) => (
@@ -526,6 +542,11 @@ export const LaunchesComponent = () => {
526542
/>
527543
))}
528544
</div>
545+
<div className="mt-[5px] text-center">
546+
{process.env.NEXT_PUBLIC_VERSION
547+
? process.env.NEXT_PUBLIC_VERSION
548+
: ''}
549+
</div>
529550
</div>
530551
<div className="bg-newBgColorInner flex-1 flex-col flex p-[20px] gap-[12px]">
531552
<Filters />

i18n.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ checksums:
7474
connect_your_social_media_and_publishing_websites_channels_to_schedule_posts_later: afb54cfa52d39082ae8297789ebeb25a
7575
social: ff80c74b36f0511287404d286ec7976e
7676
publishing_platforms: f869373086fbe82e91450684fd805d6c
77-
no_channels: ec379ae2974d836f2c3ad48e3770f5be
77+
no_channels: af09cbfc2af9f00d5349cf79a93de929
78+
connect_your_accounts: b8c601bb78e7cb7762fbff7f842d4b70
7879
notifications: c52df856139b50dbb1cae7bfb1cf73bb
7980
no_notifications: c5b494e7fdc5b11a98ec876401dbb66f
8081
send_message: 487177489aafc9c0243c57ef3850a2d9
@@ -164,7 +165,7 @@ checksums:
164165
customer: 1d87b244054a1a29cb1727c8b1684167
165166
repeat_post_every: 0969cb627a580ec4afc19efd11958f4e
166167
use_this_media: 6aeb1e22711eafe7f3dca7e496b52931
167-
create_new_post: d0eba99343fb56e2baf90486eb68e70f
168+
create_new_post: 06549e1cb8bbba2645f5ded68259684d
168169
update_post: f24fceedd97a09c9b26bd7e1f8ce202c
169170
merge_comments_into_one_post: 2f672bd0b317afb250671ad97ca881f6
170171
accounts_that_will_engage: adb190c89e1a6f75cc883d904791581d
@@ -451,10 +452,10 @@ checksums:
451452
choose_upload_without_posting_description: 223c59be260eeaafe420791b76e2523c
452453
faq_am_i_going_to_be_charged_by_postiz: f4aad17d35bcaf45427216a432f23af3
453454
faq_to_confirm_credit_card_information_postiz_will_hold: 5087b85985bbb6f46ea869d4796fb891
454-
faq_can_i_trust_postiz_gitroom: a95ba51d4c9c7542946237985c7b714a
455-
faq_postiz_gitroom_is_proudly_open_source: 3e3338834b64d9ce6fca951a13ac5972
455+
faq_can_i_trust_postiz_gitroom: 9ee3c694bc392c339333047484d36003
456+
faq_postiz_gitroom_is_proudly_open_source: 17658906aec47f1557f84c71efadee03
456457
faq_what_are_channels: 22bc7aebd017e487d9a5ac8946a2a08d
457-
faq_postiz_gitroom_allows_you_to_schedule_posts: 887f5cb32355558351c7fdf975221886
458+
faq_postiz_gitroom_allows_you_to_schedule_posts: 287ddb6d7f14970e29aa6e2431bbe207
458459
faq_what_are_team_members: bb369e1b85f24dbc4519ce32d71953d6
459460
faq_if_you_have_a_team_with_multiple_members: ed9a422bfca288261c3959d0fd49f657
460461
faq_what_is_ai_auto_complete: 3ffc4a069c8e35e01e952375b3c401ba

0 commit comments

Comments
 (0)