mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2025-12-23 23:17:55 -05:00
feat: add additional supported languages in electronLanguages
This commit is contained in:
@@ -141,7 +141,9 @@
|
||||
"buildDependenciesFromSource": false,
|
||||
"nodeGypRebuild": false,
|
||||
"electronLanguages": [
|
||||
"en-US"
|
||||
"en-US",
|
||||
"zh-CN",
|
||||
"zh-TW"
|
||||
],
|
||||
"fileAssociations": [
|
||||
{
|
||||
|
||||
2
src/assets/lib/kookit-extra-browser.min.js
vendored
2
src/assets/lib/kookit-extra-browser.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
src/assets/lib/kookit.min.js
vendored
2
src/assets/lib/kookit.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -320,49 +320,99 @@ export const readerSettingList = [
|
||||
},
|
||||
];
|
||||
export const officialTranList = {
|
||||
Automatic: "Automatic",
|
||||
English: "English",
|
||||
"Simplified Chinese": "Simplified Chinese",
|
||||
"Traditional Chinese": "Traditional Chinese",
|
||||
Russian: "Russian",
|
||||
Japanese: "Japanese",
|
||||
Korean: "Korean",
|
||||
French: "French",
|
||||
German: "German",
|
||||
Spanish: "Spanish",
|
||||
Italian: "Italian",
|
||||
Russian: "Russian",
|
||||
French: "French",
|
||||
Portuguese: "Portuguese",
|
||||
Arabic: "Arabic",
|
||||
Bengali: "Bengali",
|
||||
Bulgarian: "Bulgarian",
|
||||
Croatian: "Croatian",
|
||||
Czech: "Czech",
|
||||
Danish: "Danish",
|
||||
Dutch: "Dutch",
|
||||
Finnish: "Finnish",
|
||||
Greek: "Greek",
|
||||
Hebrew: "Hebrew",
|
||||
Hindi: "Hindi",
|
||||
Hungarian: "Hungarian",
|
||||
Icelandic: "Icelandic",
|
||||
German: "German",
|
||||
Italian: "Italian",
|
||||
Thai: "Thai",
|
||||
Vietnamese: "Vietnamese",
|
||||
Indonesian: "Indonesian",
|
||||
Malay: "Malay",
|
||||
Arabic: "Arabic",
|
||||
Hindi: "Hindi",
|
||||
Hebrew: "Hebrew",
|
||||
Burmese: "Burmese",
|
||||
Tamil: "Tamil",
|
||||
Urdu: "Urdu",
|
||||
Bengali: "Bengali",
|
||||
Polish: "Polish",
|
||||
Dutch: "Dutch",
|
||||
Romanian: "Romanian",
|
||||
Turkish: "Turkish",
|
||||
Khmer: "Khmer",
|
||||
Lao: "Lao",
|
||||
Cantonese: "Cantonese",
|
||||
Czech: "Czech",
|
||||
Greek: "Greek",
|
||||
Swedish: "Swedish",
|
||||
Hungarian: "Hungarian",
|
||||
Danish: "Danish",
|
||||
Finnish: "Finnish",
|
||||
Ukrainian: "Ukrainian",
|
||||
Bulgarian: "Bulgarian",
|
||||
Serbian: "Serbian",
|
||||
Telugu: "Telugu",
|
||||
Afrikaans: "Afrikaans",
|
||||
Armenian: "Armenian",
|
||||
Assamese: "Assamese",
|
||||
Asturian: "Asturian",
|
||||
Basque: "Basque",
|
||||
Belarusian: "Belarusian",
|
||||
Bosnian: "Bosnian",
|
||||
Catalan: "Catalan",
|
||||
Cebuano: "Cebuano",
|
||||
Croatian: "Croatian",
|
||||
"Egyptian Arabic": "Egyptian Arabic",
|
||||
Estonian: "Estonian",
|
||||
Galician: "Galician",
|
||||
Georgian: "Georgian",
|
||||
Gujarati: "Gujarati",
|
||||
Icelandic: "Icelandic",
|
||||
Javanese: "Javanese",
|
||||
Kannada: "Kannada",
|
||||
Kazakh: "Kazakh",
|
||||
Latvian: "Latvian",
|
||||
Lithuanian: "Lithuanian",
|
||||
Malay: "Malay",
|
||||
Luxembourgish: "Luxembourgish",
|
||||
Macedonian: "Macedonian",
|
||||
Maithili: "Maithili",
|
||||
Maltese: "Maltese",
|
||||
Marathi: "Marathi",
|
||||
Norwegian: "Norwegian",
|
||||
Polish: "Polish",
|
||||
Romanian: "Romanian",
|
||||
Serbian: "Serbian",
|
||||
"Mesopotamian Arabic": "Mesopotamian Arabic",
|
||||
"Moroccan Arabic": "Moroccan Arabic",
|
||||
"Najdi Arabic": "Najdi Arabic",
|
||||
Nepali: "Nepali",
|
||||
"North Azerbaijani": "North Azerbaijani",
|
||||
"North Levantine Arabic": "North Levantine Arabic",
|
||||
"Northern Uzbek": "Northern Uzbek",
|
||||
"Norwegian Bokmål": "Norwegian Bokmål",
|
||||
"Norwegian Nynorsk": "Norwegian Nynorsk",
|
||||
Occitan: "Occitan",
|
||||
Odia: "Odia",
|
||||
Pangasinan: "Pangasinan",
|
||||
Sicilian: "Sicilian",
|
||||
Sindhi: "Sindhi",
|
||||
Sinhala: "Sinhala",
|
||||
Slovak: "Slovak",
|
||||
Slovenian: "Slovenian",
|
||||
Swedish: "Swedish",
|
||||
Tamil: "Tamil",
|
||||
Telugu: "Telugu",
|
||||
Thai: "Thai",
|
||||
Turkish: "Turkish",
|
||||
Ukrainian: "Ukrainian",
|
||||
Vietnamese: "Vietnamese",
|
||||
"South Levantine Arabic": "South Levantine Arabic",
|
||||
Swahili: "Swahili",
|
||||
Tagalog: "Tagalog",
|
||||
"Ta’izzi-Adeni Arabic": "Ta’izzi-Adeni Arabic",
|
||||
"Tosk Albanian": "Tosk Albanian",
|
||||
"Tunisian Arabic": "Tunisian Arabic",
|
||||
Venetian: "Venetian",
|
||||
Waray: "Waray",
|
||||
Welsh: "Welsh",
|
||||
"Western Persian": "Western Persian",
|
||||
};
|
||||
export const officialDictList = [
|
||||
{ lang: "Automatic", code: "auto", nativeLang: "Automatic" },
|
||||
|
||||
@@ -313,7 +313,7 @@ class Viewer extends React.Component<ViewerProps, ViewerState> {
|
||||
this.setState({ rendition });
|
||||
|
||||
StyleUtil.addDefaultCss();
|
||||
rendition.tranformText();
|
||||
// rendition.tranformText();
|
||||
// rendition.setStyle(StyleUtil.getCustomCss());
|
||||
let bookLocation: {
|
||||
text: string;
|
||||
@@ -409,7 +409,7 @@ class Viewer extends React.Component<ViewerProps, ViewerState> {
|
||||
|
||||
scrollContents(chapter, bookLocation.chapterHref);
|
||||
StyleUtil.addDefaultCss();
|
||||
rendition.tranformText();
|
||||
// rendition.tranformText();
|
||||
this.handleBindGesture();
|
||||
await this.handleHighlight(rendition);
|
||||
lock = true;
|
||||
|
||||
Reference in New Issue
Block a user