Skip to content

Commit

Permalink
💄 chore: improve font size settings (lobehub#1088)
Browse files Browse the repository at this point in the history
* 💄 chore: improve font size settings

* chore: update
  • Loading branch information
Wxh16144 authored Jan 18, 2024
1 parent 3d72189 commit 5c2983d
Show file tree
Hide file tree
Showing 34 changed files with 37 additions and 52 deletions.
1 change: 1 addition & 0 deletions locales/ar/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "استيراد البيانات"
},
"lang": {
"ar": "العربية",
"bn": "البنغالية",
"cs-CZ": "التشيكية",
"da-DK": "الدنماركية",
Expand Down
4 changes: 1 addition & 3 deletions locales/ar/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "حجم الخط لمحتوى المحادثة",
"marks": {
"large": "كبير",
"normal": "عادي",
"small": "صغير"
"normal": "عادي"
},
"title": "حجم الخط"
},
Expand Down
1 change: 1 addition & 0 deletions locales/de-DE/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "Daten importieren"
},
"lang": {
"ar": "Arabisch",
"bn": "Bengalisch",
"cs-CZ": "Tschechisch",
"da-DK": "Dänisch",
Expand Down
4 changes: 1 addition & 3 deletions locales/de-DE/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "Schriftgröße für Chat-Inhalte",
"marks": {
"large": "Groß",
"normal": "Normal",
"small": "Klein"
"normal": "Normal"
},
"title": "Schriftgröße"
},
Expand Down
1 change: 1 addition & 0 deletions locales/en-US/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "Import Data"
},
"lang": {
"ar": "Arabic",
"bn": "Bengali",
"cs-CZ": "Czech",
"da-DK": "Danish",
Expand Down
4 changes: 1 addition & 3 deletions locales/en-US/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "Font size for chat content",
"marks": {
"large": "Large",
"normal": "Normal",
"small": "Small"
"normal": "Normal"
},
"title": "Font Size"
},
Expand Down
1 change: 1 addition & 0 deletions locales/es-ES/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "Importar datos"
},
"lang": {
"ar": "árabe",
"bn": "bengalí",
"cs-CZ": "checo",
"da-DK": "danés",
Expand Down
4 changes: 1 addition & 3 deletions locales/es-ES/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "Tamaño de fuente para el contenido del chat",
"marks": {
"large": "Grande",
"normal": "Normal",
"small": "Pequeño"
"normal": "Normal"
},
"title": "Tamaño de fuente"
},
Expand Down
1 change: 1 addition & 0 deletions locales/fr-FR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "Importer des données"
},
"lang": {
"ar": "arabe",
"bn": "Bengali",
"cs-CZ": "Tchèque",
"da-DK": "Danois",
Expand Down
4 changes: 1 addition & 3 deletions locales/fr-FR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "Taille de la police du contenu du chat",
"marks": {
"large": "Grand",
"normal": "Normal",
"small": "Petit"
"normal": "Normal"
},
"title": "Taille de la police"
},
Expand Down
1 change: 1 addition & 0 deletions locales/it-IT/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "Importa dati"
},
"lang": {
"ar": "Arabo",
"bn": "Bengalese",
"cs-CZ": "Ceco",
"da-DK": "Danese",
Expand Down
4 changes: 1 addition & 3 deletions locales/it-IT/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "Dimensione del carattere per i messaggi",
"marks": {
"large": "Grande",
"normal": "Normale",
"small": "Piccola"
"normal": "Normale"
},
"title": "Dimensione del carattere"
},
Expand Down
1 change: 1 addition & 0 deletions locales/ja-JP/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "データのインポート"
},
"lang": {
"ar": "アラビア語",
"bn": "ベンガル語",
"cs-CZ": "チェコ語",
"da-DK": "デンマーク語",
Expand Down
4 changes: 1 addition & 3 deletions locales/ja-JP/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "チャットのフォントサイズ",
"marks": {
"large": "大きい",
"normal": "標準",
"small": "小さい"
"normal": "標準"
},
"title": "フォントサイズ"
},
Expand Down
1 change: 1 addition & 0 deletions locales/ko-KR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "데이터 가져오기"
},
"lang": {
"ar": "아랍어",
"bn": "벵골어",
"cs-CZ": "체코어",
"da-DK": "덴마크어",
Expand Down
4 changes: 1 addition & 3 deletions locales/ko-KR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "채팅 내용의 글꼴 크기",
"marks": {
"large": "",
"normal": "표준",
"small": ""
"normal": "표준"
},
"title": "글꼴 크기"
},
Expand Down
1 change: 1 addition & 0 deletions locales/nl-NL/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "Gegevens importeren"
},
"lang": {
"ar": "Arabisch",
"bn": "Bengaals",
"cs-CZ": "Tsjechisch",
"da-DK": "Deens",
Expand Down
4 changes: 1 addition & 3 deletions locales/nl-NL/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "Lettergrootte van chatberichten",
"marks": {
"large": "Groot",
"normal": "Normaal",
"small": "Klein"
"normal": "Normaal"
},
"title": "Lettergrootte"
},
Expand Down
1 change: 1 addition & 0 deletions locales/pl-PL/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "Import danych"
},
"lang": {
"ar": "arabski",
"bn": "Bengalski",
"cs-CZ": "Czeski",
"da-DK": "Duński",
Expand Down
4 changes: 1 addition & 3 deletions locales/pl-PL/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "Rozmiar czcionki wiadomości",
"marks": {
"large": "Duży",
"normal": "Standardowy",
"small": "Mały"
"normal": "Standardowy"
},
"title": "Rozmiar czcionki"
},
Expand Down
1 change: 1 addition & 0 deletions locales/pt-BR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "Importar dados"
},
"lang": {
"ar": "árabe",
"bn": "Bengali",
"cs-CZ": "Tcheco",
"da-DK": "Dinamarquês",
Expand Down
4 changes: 1 addition & 3 deletions locales/pt-BR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "Tamanho da fonte do conteúdo do chat",
"marks": {
"large": "Grande",
"normal": "Normal",
"small": "Pequeno"
"normal": "Normal"
},
"title": "Tamanho da Fonte"
},
Expand Down
1 change: 1 addition & 0 deletions locales/ru-RU/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "Импорт данных"
},
"lang": {
"ar": "арабский",
"bn": "Бенгальский",
"cs-CZ": "Чешский",
"da-DK": "Датский",
Expand Down
4 changes: 1 addition & 3 deletions locales/ru-RU/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "Размер шрифта для чата",
"marks": {
"large": "большой",
"normal": "нормальный",
"small": "малый"
"normal": "нормальный"
},
"title": "Размер шрифта"
},
Expand Down
1 change: 1 addition & 0 deletions locales/tr-TR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "Veri İçe Aktar"
},
"lang": {
"ar": "Arapça",
"bn": "Bengalce",
"cs-CZ": "Çekçe",
"da-DK": "Danca",
Expand Down
4 changes: 1 addition & 3 deletions locales/tr-TR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "Sohbet içeriği için yazı boyutu",
"marks": {
"large": "Büyük",
"normal": "Normal",
"small": "Küçük"
"normal": "Normal"
},
"title": "Yazı Boyutu"
},
Expand Down
1 change: 1 addition & 0 deletions locales/vi-VN/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "Nhập dữ liệu"
},
"lang": {
"ar": "Tiếng Ả Rập",
"bn": "Tiếng Bengal",
"cs-CZ": "Tiếng Séc",
"da-DK": "Tiếng Đan Mạch",
Expand Down
4 changes: 1 addition & 3 deletions locales/vi-VN/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "Kích cỡ chữ của nội dung trò chuyện",
"marks": {
"large": "Lớn",
"normal": "Bình thường",
"small": "Nhỏ"
"normal": "Bình thường"
},
"title": "Kích cỡ chữ"
},
Expand Down
1 change: 1 addition & 0 deletions locales/zh-CN/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "导入数据"
},
"lang": {
"ar": "阿拉伯语",
"bn": "孟加拉语",
"cs-CZ": "捷克语",
"da-DK": "丹麦语",
Expand Down
4 changes: 1 addition & 3 deletions locales/zh-CN/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "聊天内容的字体大小",
"marks": {
"large": "",
"normal": "标准",
"small": ""
"normal": "标准"
},
"title": "字体大小"
},
Expand Down
1 change: 1 addition & 0 deletions locales/zh-TW/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"title": "匯入資料"
},
"lang": {
"ar": "阿拉伯語",
"bn": "孟加拉語",
"cs-CZ": "捷克語",
"da-DK": "丹麥語",
Expand Down
4 changes: 1 addition & 3 deletions locales/zh-TW/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@
"fontSize": {
"desc": "聊天內容的字體大小",
"marks": {
"large": "",
"normal": "標準",
"small": ""
"normal": "標準"
},
"title": "字體大小"
},
Expand Down
7 changes: 5 additions & 2 deletions src/app/settings/common/Common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,20 +136,23 @@ const Common = memo<SettingsCommonProps>(({ showAccessCodeConfig }) => {
<SliderWithInput
marks={{
12: {
label: t('settingTheme.fontSize.marks.small'),
label: 'A',
style: {
fontSize: 12,
marginTop: 4,
},
},
14: {
label: t('settingTheme.fontSize.marks.normal'),
style: {
fontSize: 14,
marginTop: 4,
},
},
18: {
label: t('settingTheme.fontSize.marks.large'),
label: 'A',
style: {
fontSize: 18,
marginTop: 4,
},
},
Expand Down
2 changes: 0 additions & 2 deletions src/locales/default/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@ export default {
fontSize: {
desc: '聊天内容的字体大小',
marks: {
large: '大',
normal: '标准',
small: '小',
},
title: '字体大小',
},
Expand Down

0 comments on commit 5c2983d

Please sign in to comment.