-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: change translate component to use constant module
- Loading branch information
1 parent
757a9c5
commit b206e3e
Showing
2 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export const translationMethods = [ | ||
{ value: "google", label: "Google Translate" }, | ||
{ value: "deepl", label: "DeepL" }, | ||
{ value: "deeplx", label: "DeepLX(免费,无需填 API)" }, | ||
]; | ||
|
||
export type LanguageOption = { | ||
value: string; | ||
label: string; | ||
}; | ||
|
||
export const languages: LanguageOption[] = [ | ||
{ value: "en", label: "英语(English)" }, | ||
{ value: "zh", label: "中文(Chinese)" }, | ||
{ value: "ja", label: "日本語" }, | ||
{ value: "ko", label: "韩语(한국어)" }, | ||
{ value: "es", label: "西班牙语" }, | ||
{ value: "fr", label: "法语(Français)" }, | ||
{ value: "de", label: "德语(Deutsch)" }, | ||
{ value: "it", label: "意大利语" }, | ||
{ value: "ru", label: "俄语(Русский)" }, | ||
{ value: "pt", label: "葡萄牙语" }, | ||
{ value: "ar", label: "阿拉伯语" }, | ||
{ value: "hi", label: "印地语 (仅 Google)" }, | ||
{ value: "bn", label: "孟加拉语 (仅 Google)" }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters