Skip to content

Commit 7129850

Browse files
committed
fix: more translations and switches
1 parent 215631a commit 7129850

15 files changed

Lines changed: 29 additions & 28 deletions

File tree

package/src/components/Poll/CreatePollContent.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,15 @@ const useStyles = () => {
273273
alignItems: 'center',
274274
justifyContent: 'space-between',
275275
flexDirection: 'row',
276-
backgroundColor: semantics.inputOptionCardBg,
276+
backgroundColor: semantics.backgroundCoreSurfaceCard,
277277
padding: primitives.spacingMd,
278278
borderRadius: primitives.radiusLg,
279279
},
280280
optionCardWrapper: {
281281
gap: primitives.spacingMd,
282+
// padding: primitives.spacingMd,
282283
},
283-
optionCardSwitch: {},
284+
optionCardSwitch: { width: 64 },
284285
});
285286
}, [semantics]);
286287
};

package/src/components/Poll/Poll.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const PollHeader = () => {
3232

3333
const subtitle = useMemo(() => {
3434
if (isClosed) {
35-
return t('Vote ended');
35+
return t('Poll has ended');
3636
}
3737
if (enforceUniqueVote) {
3838
return t('Select one');

package/src/components/Poll/components/MultipleAnswersField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const useStyles = () => {
122122
optionCardWrapper: {
123123
gap: primitives.spacingMd,
124124
},
125-
optionCardSwitch: {},
125+
optionCardSwitch: { width: 64 },
126126
});
127127
}, [semantics]);
128128
};

package/src/i18n/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
"View {{count}} comments_one": "View {{count}} comment",
129129
"View {{count}} comments_other": "View {{count}} comments",
130130
"Voice message": "Voice message",
131-
"Vote ended": "Vote ended",
132131
"You": "You",
133132
"You can't send messages in this channel": "You can't send messages in this channel",
134133
"duration/Location end at": "{{ milliseconds | durationFormatter(withSuffix: false) }}",
@@ -173,5 +172,6 @@
173172
"{{count}} Reactions_one": "{{count}} Reaction",
174173
"{{count}} Reactions_other": "{{count}} Reactions",
175174
"Tap to remove": "Tap to remove",
176-
"Draft": "Draft"
175+
"Draft": "Draft",
176+
"Poll has ended": "Poll has ended"
177177
}

package/src/i18n/es.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
"View {{count}} comments_one": "Ver {{count}} comentario",
129129
"View {{count}} comments_other": "Ver {{count}} comentarios",
130130
"Voice message": "Mensaje de voz",
131-
"Vote ended": "Votación finalizada",
132131
"You": "",
133132
"You can't send messages in this channel": "No puedes enviar mensajes en este canal",
134133
"duration/Location end at": "{{ milliseconds | durationFormatter(withSuffix: false) }}",
@@ -173,5 +172,6 @@
173172
"{{count}} Reactions_one": "{{count}} reacción",
174173
"{{count}} Reactions_other": "{{count}} reacciones",
175174
"Tap to remove": "Toca para quitar",
176-
"Draft": "Borrador"
175+
"Draft": "Borrador",
176+
"Poll has ended": "Votación finalizada"
177177
}

package/src/i18n/fr.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
"View {{count}} comments_one": "Voir {{count}} commentaire",
129129
"View {{count}} comments_other": "Voir {{count}} commentaires",
130130
"Voice message": "Message vocal",
131-
"Vote ended": "Vote terminé",
132131
"You": "Toi",
133132
"You can't send messages in this channel": "You can't send messages in this channel",
134133
"duration/Location end at": "{{ milliseconds | durationFormatter(withSuffix: false) }}",
@@ -173,5 +172,6 @@
173172
"{{count}} Reactions_one": "{{count}} réaction",
174173
"{{count}} Reactions_other": "{{count}} réactions",
175174
"Tap to remove": "Appuyez pour retirer",
176-
"Draft": "Brouillon"
175+
"Draft": "Brouillon",
176+
"Poll has ended": "Vote terminé"
177177
}

package/src/i18n/he.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
"View {{count}} comments_one": "הצג {{count}} תגובה",
129129
"View {{count}} comments_other": "הצג {{count}} תגובות",
130130
"Voice message": "הודעת קול",
131-
"Vote ended": "ההצבעה הסתיימה",
132131
"You": "את/ה",
133132
"You can't send messages in this channel": "את/ב לא יכול/ה לשלוח הודעות בשיחה זו",
134133
"duration/Location end at": "{{ milliseconds | durationFormatter(withSuffix: false) }}",
@@ -173,5 +172,6 @@
173172
"{{count}} Reactions_one": "{{count}} תגובה",
174173
"{{count}} Reactions_other": "{{count}} תגובות",
175174
"Tap to remove": "הקש כדי להסיר",
176-
"Draft": "טיוטה"
175+
"Draft": "טיוטה",
176+
"Poll has ended": "ההצבעה הסתיימה"
177177
}

package/src/i18n/hi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
"View {{count}} comments_one": "{{count}} टिप्पणी देखें",
129129
"View {{count}} comments_other": "{{count}} टिप्पणियाँ देखें",
130130
"Voice message": "वॉइस संदेश",
131-
"Vote ended": "वोट समाप्त",
132131
"You": "आप",
133132
"You can't send messages in this channel": "आप इस चैनल में संदेश नहीं भेज सकते",
134133
"duration/Location end at": "{{ milliseconds | durationFormatter(withSuffix: false) }}",
@@ -173,5 +172,6 @@
173172
"{{count}} Reactions_one": "{{count}} प्रतिक्रिया",
174173
"{{count}} Reactions_other": "{{count}} प्रतिक्रियाएँ",
175174
"Tap to remove": "हटाने के लिए टैप करें",
176-
"Draft": "ड्राफ्ट"
175+
"Draft": "ड्राफ्ट",
176+
"Poll has ended": "वोट समाप्त"
177177
}

package/src/i18n/it.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
"View {{count}} comments_one": "Vedi {{count}} commento",
129129
"View {{count}} comments_other": "Vedi {{count}} commenti",
130130
"Voice message": "Messaggio vocale",
131-
"Vote ended": "Votazione terminata",
132131
"You": "Tu",
133132
"You can't send messages in this channel": "Non puoi inviare messaggi in questo canale",
134133
"duration/Location end at": "{{ milliseconds | durationFormatter(withSuffix: false) }}",
@@ -173,5 +172,6 @@
173172
"{{count}} Reactions_one": "{{count}} reazione",
174173
"{{count}} Reactions_other": "{{count}} reazioni",
175174
"Tap to remove": "Tocca per rimuovere",
176-
"Draft": "Borrador"
175+
"Draft": "Borrador",
176+
"Poll has ended": "Votazione terminata"
177177
}

package/src/i18n/ja.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
"View {{count}} comments_one": "{{count}} 件のコメントを表示",
129129
"View {{count}} comments_other": "{{count}} 件のコメントを表示",
130130
"Voice message": "ボイスメッセージ",
131-
"Vote ended": "投票終了",
132131
"You": "あなた",
133132
"You can't send messages in this channel": "このチャンネルではメッセージを送信できません",
134133
"duration/Location end at": "{{ milliseconds | durationFormatter(withSuffix: false) }}",
@@ -173,5 +172,6 @@
173172
"{{count}} Reactions_one": "{{count}}件のリアクション",
174173
"{{count}} Reactions_other": "{{count}}件のリアクション",
175174
"Tap to remove": "タップして削除",
176-
"Draft": "下書き"
175+
"Draft": "下書き",
176+
"Poll has ended": "投票終了"
177177
}

0 commit comments

Comments
 (0)