Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 72d66da

Browse files
committed
feat: support new deepl languages
1 parent 2bd674c commit 72d66da

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

src/common/constant.ts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
11
export const supportedLanguages = {
22
ZH: '中文',
3-
'EN-US': 'English (American)',
4-
'EN-GB': 'English (British)',
5-
JA: '日本語',
3+
BG: 'Bulgarian',
4+
CS: 'Czech',
5+
DA: 'Danish',
66
DE: 'German',
7-
FR: 'French',
7+
EL: 'Greek',
8+
'EN-GB': 'English (British)',
9+
'EN-US': 'English (American)',
810
ES: 'Spanish',
9-
'PT-PT': 'Portuguese',
10-
'PT-BR': 'Portuguese (Brazilian)',
11+
ET: 'Estonian',
12+
FI: 'Finnish',
13+
FR: 'French',
14+
HU: 'Hungarian',
1115
IT: 'Italian',
16+
JA: 'Japanese',
17+
LT: 'Lithuanian',
18+
LV: 'Latvian',
1219
NL: 'Dutch',
1320
PL: 'Polish',
21+
'PT-PT': 'Portuguese',
22+
'PT-BR': 'Portuguese (Brazilian)',
23+
RO: 'Romanian',
1424
RU: 'Russian',
25+
SK: 'Slovak',
26+
SL: 'Slovenian',
27+
SV: 'Swedish',
1528
}
1629

1730
export const supportedRegions = {

src/pages/Content/components/TranslationItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { useSnackbar } from 'notistack'
44
import { Collapse } from 'react-collapse'
55
import scrollParent from 'scrollparent'
66
import tw, { css } from 'twin.macro'
7-
import { supportedLanguages } from '../../../../common/constant'
87

8+
import { supportedLanguages } from '../../../../common/constant'
99
import logger from '../../../../common/logger'
1010
import { SupportLanguageKeys, TranslateResult } from '../../../../common/types'
1111
import IconButton from '../../../../components/IconButton'

0 commit comments

Comments
 (0)