Skip to content

Commit

Permalink
chore: a11y layout changes on CreateChannelView
Browse files Browse the repository at this point in the history
  • Loading branch information
OtavioStasiak committed Nov 22, 2024
1 parent 242fc12 commit 2ad80e9
Show file tree
Hide file tree
Showing 27 changed files with 72 additions and 34 deletions.
2 changes: 2 additions & 0 deletions app/i18n/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
"Change_Language": "تغيير اللغة",
"Change_language_loading": "تغيير اللغة",
"changing_avatar": "تغيير الصورة الرمزية",
"Channel_hint_private": "لا يمكن للناس الانضمام إلا من خلال دعوتهم",
"Channel_Name": "اسم القناة",
"Channel_Read_Only_Hint": "يمكن لمالكي القنوات فقط إرسال رسائل جديدة",
"Channels": "قنوات",
"Chat_closed_by_agent": "المندوب أغلق المحادثة",
"Chats": "الرسائل",
Expand Down
3 changes: 2 additions & 1 deletion app/i18n/locales/bn-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@
"Channel_hint_encrypted": "শেষ হতে শেষ এনক্রিপ্টেড চ্যানেল। এনক্রিপ্টেড চ্যানেলে অনুসন্ধান কাজ করবে না এবং বিজ্ঞপ্তিগুলি বার্তা সামগ্রী প্রদর্শন করতে পারে না।",
"Channel_hint_encrypted_not_available": "পাবলিক চ্যানেলের জন্য উপলব্ধ নয়",
"Channel_hint_not_read_only": "চ্যানেলের সমস্ত ব্যবহারকারী নতুন বার্তা লেখতে পারবে",
"Channel_hint_private": "শোধার্থী ব্যবহারকারী এই চ্যানেলে অ্যাক্সেস পাওয়া যাবে",
"Channel_hint_private": "মানুষ কেবল আমন্ত্রণের মাধ্যমে যোগ দিতে পারে",
"Channel_hint_public": "সবাই এই চ্যানেলে অ্যাক্সেস পাবে",
"Channel_Name": "চ্যানেল নাম",
"Channel_Read_Only_Hint": "শুধুমাত্র চ্যানেলের মালিকরা নতুন বার্তা পাঠাতে পারেন",
"Channels": "চ্যানেলগুলি",
"Chat_closed_by_agent": "এজেন্ট দ্বারা চ্যাট বন্ধ করা হয়েছে",
"Chat_is_on_hold": "এই চ্যাটটি অসক্রিয়তার কারণে হোল্ডে আছে",
Expand Down
3 changes: 2 additions & 1 deletion app/i18n/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@
"Channel_hint_encrypted": "End to end šifrovaný kanál. Vyhledávání nebude fungovat se šifrovanými kanály a oznámení nemusí zobrazovat obsah zpráv.",
"Channel_hint_encrypted_not_available": "Není k dispozici pro veřejné kanály",
"Channel_hint_not_read_only": "Všichni uživatelé v kanálu mohou psát nové zprávy",
"Channel_hint_private": "K tomuto kanálu mají přístup pouze pozvaní uživatelé",
"Channel_hint_private": "Lidé se mohou připojit pouze tím, že byli pozváni",
"Channel_hint_public": "K tomuto kanálu má přístup každý",
"Channel_Name": "Název kanálu",
"Channel_Read_Only_Hint": "Pouze majitelé kanálů mohou odesílat nové zprávy",
"Channels": "Kanály",
"Chat_closed_by_agent": "Chat uzavřen agentem",
"Chat_is_on_hold": "Tento chat je pozastaven z důvodu nečinnosti",
Expand Down
3 changes: 2 additions & 1 deletion app/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@
"Channel_hint_encrypted": "Ende-zu-Ende verschlüsselter Kanal. Die Suche funktioniert nicht mit verschlüsselten Channels. In Benachrichtigungen wird der Inhalt der Nachricht möglicherweise nicht angezeigt.",
"Channel_hint_encrypted_not_available": "Nicht verfügbar in öffentlichen Kanälen",
"Channel_hint_not_read_only": "Alle Nutzer im Kanal können neue Nachrichten schreiben",
"Channel_hint_private": "Nur eingeladene Nutzer können auf diesen Kanal zugreifen",
"Channel_hint_private": "Menschen können nur dann durch eingeladen werden",
"Channel_hint_public": "Jeder kann auf diesen Kanal zugreifen",
"Channel_Name": "Channel-Name",
"Channel_Read_Only_Hint": "Nur Kanalbesitzer können neue Nachrichten senden",
"Channels": "Channels",
"Chat_closed_by_agent": "Chat durch den Agenten geschlossen",
"Chat_is_on_hold": "Dieser Chat ist aufgrund von Inaktivität in der Warteschleife",
Expand Down
3 changes: 2 additions & 1 deletion app/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@
"Channel_hint_encrypted": "End to end encrypted channel. Search will not work with encrypted channels and notifications may not show the messages content.",
"Channel_hint_encrypted_not_available": "Not available for public channels",
"Channel_hint_not_read_only": "All users in the channel can write new messages",
"Channel_hint_private": "Only invited users can access this channel",
"Channel_hint_private": "People can only join by being invited",
"Channel_hint_public": "Everyone can access this channel",
"Channel_Name": "Channel name",
"Channel_Read_Only_Hint": "Only channel owners can send new messages",
"Channels": "Channels",
"Chat_closed_by_agent": "Chat closed by agent",
"Chat_is_on_hold": "This chat is on hold due to inactivity",
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
"Certificate_password": "Contraseña del certificado",
"Change_Language": "Cambiar idioma",
"changing_avatar": "cambiando avatar",
"Channel_hint_private": "La gente solo puede unirse al ser invitado",
"Channel_Name": "Nombre sala",
"Channel_Read_Only_Hint": "Solo los propietarios de canales pueden enviar nuevos mensajes",
"Channels": "Salas",
"Chats": "Chats",
"Choose": "Seleccionar",
Expand Down
3 changes: 2 additions & 1 deletion app/i18n/locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@
"Channel_hint_encrypted": "Täysin salattu kanava. Haku ei toimi salatuilla kanavilla eikä viestien sisältö välttämättä näy ilmoituksissa.",
"Channel_hint_encrypted_not_available": "Ei käytettävissä julkisilla kanavilla",
"Channel_hint_not_read_only": "Kaikki kanavan käyttäjät voivat kirjoittaa uusia viestejä",
"Channel_hint_private": "Vain kutsutuilla käyttäjillä on pääsy tälle kanavalle",
"Channel_hint_private": "Ihmiset voivat liittyä vain kutsumalla",
"Channel_hint_public": "Kaikilla on pääsy tälle kanavalle",
"Channel_Name": "Kanavan nimi",
"Channel_Read_Only_Hint": "Vain kanavanomistajat voivat lähettää uusia viestejä",
"Channels": "Kanavat",
"Chat_closed_by_agent": "Agentti sulki keskustelun",
"Chat_is_on_hold": "Tämä keskustelu on pidossa käyttämättömyyden vuoksi",
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
"Change_Language": "Changer la langue",
"Change_language_loading": "Changement de la langue.",
"changing_avatar": "changer d'avatar",
"Channel_hint_private": "Les gens ne peuvent se joindre qu'en étant invité",
"Channel_Name": "Nom du canal",
"Channel_Read_Only_Hint": "Seuls les propriétaires de canaux peuvent envoyer de nouveaux messages",
"Channels": "Canaux",
"Chat_closed_by_agent": "Chat fermé par l'agent",
"Chat_is_on_hold": "Ce chat est attente pour cause d'inactivité",
Expand Down
3 changes: 2 additions & 1 deletion app/i18n/locales/hi-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@
"Channel_hint_encrypted": "एंड टू एंड एन्क्रिप्टेड चैनल। एंक्रिप्शन चैनल के साथ खोज काम नहीं करेगा और सूचनाएं संदेश की सामग्री नहीं दिखा सकती हैं।",
"Channel_hint_encrypted_not_available": "सार्वजनिक चैनलों के लिए उपलब्ध नहीं",
"Channel_hint_not_read_only": "चैनल में सभी उपयोगकर्ताएं नए संदेश लिख सकती हैं",
"Channel_hint_private": "केवल आमंत्रित उपयोगकर्ता इस चैनल तक पहुँच सकते हैं",
"Channel_hint_private": "लोग केवल आमंत्रित किए जाने पर ही जुड़ सकते हैं",
"Channel_hint_public": "हर कोई इस चैनल तक पहुँच सकता है",
"Channel_Name": "चैनल का नाम",
"Channel_Read_Only_Hint": "केवल चैनल के मालिक नए संदेश भेज सकते हैं",
"Channels": "चैनल्स",
"Chat_closed_by_agent": "एजेंट ने चैट बंद कर दी है",
"Chat_is_on_hold": "इस चैट को गतिहीनता के कारण होल्ड पर है",
Expand Down
3 changes: 2 additions & 1 deletion app/i18n/locales/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@
"Channel_hint_encrypted": "Végponttól végpontig titkosított csatorna. A keresés nem működik titkosított csatornákon, és az értesítések nem mutatják az üzenetek tartalmát.",
"Channel_hint_encrypted_not_available": "Nem érhető el nyilvános csatornáknál",
"Channel_hint_not_read_only": "A csatorna minden felhasználója írhat új üzeneteket",
"Channel_hint_private": "Csak a meghívott felhasználók férhetnek hozzá ehhez a csatornához",
"Channel_hint_private": "Az emberek csak meghívással csatlakozhatnak",
"Channel_hint_public": "Mindenki hozzáférhet ehhez a csatornához",
"Channel_Name": "Csatorna neve",
"Channel_Read_Only_Hint": "Csak a csatornatulajdonosok küldhetnek új üzeneteket",
"Channels": "Csatornák",
"Chat_closed_by_agent": "A csevegést az ügyintéző lezárta",
"Chat_is_on_hold": "Ez a csevegés várakoztatva van inaktivitás miatt",
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
"Change_Language": "Cambia lingua",
"Change_language_loading": "Cambiando la lingua.",
"changing_avatar": "cambio avatar",
"Channel_hint_private": "Le persone possono unirsi solo essendo invitati",
"Channel_Name": "Nome canale",
"Channel_Read_Only_Hint": "Solo i proprietari di canali possono inviare nuovi messaggi",
"Channels": "Canali",
"Chat_closed_by_agent": "Chat chiusa dall'agente",
"Chat_started": "Chat avviata",
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
"Change_Language": "言語を変更",
"Change_language_loading": "言語の変更",
"changing_avatar": "アバターを変更",
"Channel_hint_private": "人々は招待されることによってのみ参加することができます",
"Channel_Name": "チャンネル名",
"Channel_Read_Only_Hint": "チャネル所有者のみが新しいメッセージを送信できます",
"Channels": "チャンネル",
"Chat_closed_by_agent": "エージェントが閉じたチャット",
"Chats": "チャット",
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
"Change_Language": "Taal veranderen",
"Change_language_loading": "Taal veranderen",
"changing_avatar": "avatar aan het veranderen",
"Channel_hint_private": "Mensen kunnen alleen meedoen door uitgenodigd te worden",
"Channel_Name": "Kanaal naam",
"Channel_Read_Only_Hint": "Alleen kanaaleigenaren kunnen nieuwe berichten verzenden",
"Channels": "Kanalen",
"Chat_closed_by_agent": "Chat gesloten door agent",
"Chat_is_on_hold": "Deze chat staat in de wacht wegens inactiviteit",
Expand Down
3 changes: 2 additions & 1 deletion app/i18n/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@
"Channel_hint_encrypted": "Canal criptografado de ponta a ponta. A pesquisa não funcionará com canais criptografados e as notificações podem não mostrar o conteúdo das mensagens.",
"Channel_hint_encrypted_not_available": "Indisponível para canais públicos",
"Channel_hint_not_read_only": "Todos usuários no canal podem enviar mensagens novas",
"Channel_hint_private": "Apenas usuários convidados podem acessar este canal",
"Channel_hint_private": "As pessoas só podem entrar por meio de convite",
"Channel_hint_public": "Todos podem acessar este canal",
"Channel_Name": "Nome do canal",
"Channel_Read_Only_Hint": "Apenas os proprietários do canal podem enviar novas mensagens",
"Channels": "Canais",
"Chat_closed_by_agent": "Conversa fechada por agente",
"Chat_is_on_hold": "Esta conversa está em espera devido à inatividade",
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/locales/pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
"Certificate_password": "Senha do Certificado",
"Change_language_loading": "Mudança de idioma.",
"changing_avatar": "a alterar avatar",
"Channel_hint_private": "As pessoas só podem se juntar ao ser convidadas",
"Channel_Name": "Nome do Canal",
"Channel_Read_Only_Hint": "Somente os proprietários de canais podem enviar novas mensagens",
"Channels": "Canais",
"Chat_closed_by_agent": "Chat fechado por agente",
"Chats": "Chats",
Expand Down
3 changes: 2 additions & 1 deletion app/i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@
"Channel_hint_encrypted": "Канал со сквозным шифрованием. Поиск не будет работать в зашифрованных каналах, а уведомления могут не отображать содержание сообщений.",
"Channel_hint_encrypted_not_available": "Недоступно для публичных каналов",
"Channel_hint_not_read_only": "Все пользователи канала могут писать новые сообщения",
"Channel_hint_private": "Только приглашенные пользователи могут получить доступ к этому каналу",
"Channel_hint_private": "Люди могут присоединиться только к приглашению",
"Channel_hint_public": "У всех есть доступ к этому каналу",
"Channel_Name": "Название канала",
"Channel_Read_Only_Hint": "Только владельцы каналов могут отправлять новые сообщения",
"Channels": "Каналы",
"Chat_closed_by_agent": "Чат закрыт агентом",
"Chat_is_on_hold": "Этот чат находится в режиме удержания из-за неактивности",
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/locales/sl-SI.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
"Change_language_loading": "Spreminjanje jezika.",
"changing_avatar": "spreminjanje avatarja",
"Channel_Name": "Ime kanala",
"Channel_hint_private": "Ljudje se lahko pridružijo samo z vabilom",
"Channel_Read_Only_Hint": "Samo lastniki kanala lahko pošiljajo nova sporočila",
"Channels": "Kanali",
"Chat_closed_by_agent": "Klepet je zaprl agent",
"Chat_is_on_hold": "Ta klepet zaradi neaktivnosti ni na voljo",
Expand Down
3 changes: 2 additions & 1 deletion app/i18n/locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@
"Channel_hint_encrypted": "End-to-end-krypterad kanal. Sökfunktionen fungerar inte med krypterade kanaler och innehållet i meddelanden kanske inte visas.",
"Channel_hint_encrypted_not_available": "Inte tillgängligt för offentliga kanaler",
"Channel_hint_not_read_only": "Alla användare i kanalen kan skriva meddelanden",
"Channel_hint_private": "Endast inbjudna användare kan öppna kanalen",
"Channel_hint_private": "Människor kan bara gå med genom att bli inbjudna",
"Channel_hint_public": "Alla kan öppna kanalen",
"Channel_Name": "Kanalnamn",
"Channel_Read_Only_Hint": "Endast kanalägare kan skicka nya meddelanden",
"Channels": "Kanaler",
"Chat_closed_by_agent": "Chatten stängdes av agenten",
"Chat_is_on_hold": "Den här chatten är parkerad på grund av inaktivitet",
Expand Down
3 changes: 2 additions & 1 deletion app/i18n/locales/ta-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@
"Channel_hint_encrypted": "இறுதியாக குழுவிகள் குழுவிகள் குறியாகிவிடப்பட்டுள்ளன. குறியீடுகளுடன் தேடல் செய்ய முடியாது மற்றும் அறிவிப்புகள் செய்தி உள்ளடக்கங்களைக் காட்டாது.",
"Channel_hint_encrypted_not_available": "பொது சேனல்களுக்கு கிடைக்காது",
"Channel_hint_not_read_only": "சேனலிலுள்ள அனைத்து பயனர்களும் புதிய செய்திகளை எழுதலாம்",
"Channel_hint_private": "அழைக்கப்பட்ட பயனர்கள் மட்டும் இந்த சேனலுக்கு அணுகலாம்",
"Channel_hint_private": "மக்கள் அழைப்பின் மூலம் மட்டும் சேர முடியும்",
"Channel_hint_public": "அனைத்து பயனர்களும் இந்த சேனலுக்கு அணுகலாம்",
"Channel_Name": "சேனலின் பெயர்",
"Channel_Read_Only_Hint": "சேனல் உரிமையாளர்கள் மட்டுமே புதிய செய்திகளை அனுப்ப முடியும்",
"Channels": "சேனல்கள்",
"Chat_closed_by_agent": "ஏஜென்ட் மூடிய உரையாடல்",
"Chat_is_on_hold": "இந்த உரையாடல் செயலற்றது ஆகின்று உள்ளது",
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
"Change_Language": "Dili değiştir",
"Change_language_loading": "Dil değiştiriliyor",
"changing_avatar": "profil fotoğrafı değiştirme",
"Channel_hint_private": "İnsanlar sadece davet edilerek katılabilir",
"Channel_Name": "Kanal Adı",
"Channel_Read_Only_Hint": "Yalnızca kanal sahipleri yeni mesajlar gönderebilir",
"Channels": "Kanallar",
"Chat_closed_by_agent": "Sohbet temsilci tarafından kapatıldı",
"Chats": "Sohbetler",
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
"Change_Language": "切换语言",
"Change_language_loading": "切换语言",
"changing_avatar": "更改头像",
"Channel_hint_private": "人们只能被邀请加入",
"Channel_Name": "频道名",
"Channel_Read_Only_Hint": "只有频道所有者可以发送新消息",
"Channels": "频道",
"Chat_closed_by_agent": "聊天已被客服关闭",
"Chats": "聊天",
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
"Change_Language": "切換語言",
"Change_language_loading": "切換語言",
"changing_avatar": "更改大頭貼",
"Channel_hint_private": "人們只能被邀請加入",
"Channel_Name": "頻道名稱",
"Channel_Read_Only_Hint": "只有頻道所有者可以發送新消息",
"Channels": "頻道",
"Chat_closed_by_agent": "聊天已被客服關閉",
"Chats": "聊天",
Expand Down
7 changes: 4 additions & 3 deletions app/views/CreateChannelView/RoomSettings/SwitchItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,20 @@ const styles = StyleSheet.create({
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row',
maxHeight: 80,
marginBottom: 12
maxHeight: 80
},
switchTextContainer: {
flex: 1,
marginRight: 8
},
label: {
fontSize: 14,
fontSize: 16,
lineHeight: 24,
...sharedStyles.textMedium
},
hint: {
fontSize: 14,
lineHeight: 20,
...sharedStyles.textRegular
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,13 @@ export const SwitchItemReadOnly = ({
onValueChangeReadOnly: (value: boolean) => void;
broadcast: boolean;
}) => {
let hint = '';
if (readOnly) {
let hint = 'Read_only_hint';
if (isTeam && readOnly) {
hint = 'Read_only_hint';
}
if (isTeam && !readOnly) {
hint = 'Team_hint_not_read_only';
}
if (!isTeam && !readOnly) {
hint = 'Channel_hint_not_read_only';
}

return (
<SwitchItem
Expand Down
5 changes: 1 addition & 4 deletions app/views/CreateChannelView/RoomSettings/SwitchItemType.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ export const SwitchItemType = ({
if (isTeam && !type) {
hint = 'Team_hint_public';
}
if (!isTeam && type) {
if (!isTeam) {
hint = 'Channel_hint_private';
}
if (!isTeam && !type) {
hint = 'Channel_hint_public';
}

return (
<SwitchItem id={'type'} value={type} disabled={isDisabled} label={'Private'} hint={hint} onValueChange={onValueChangeType} />
Expand Down
Loading

0 comments on commit 2ad80e9

Please sign in to comment.