YouDaoLanguageView.cs 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OASystem.Domain.ViewModels.SmallFun
  7. {
  8. /// <summary>
  9. /// 有道api支持支持语言
  10. /// </summary>
  11. public class YouDaoLanguageView
  12. {
  13. /// <summary>
  14. /// 语言名称
  15. /// </summary>
  16. public string? Name { get; set; }
  17. /// <summary>
  18. /// 语言code
  19. /// </summary>
  20. public string? Code { get; set; }
  21. }
  22. /// <summary>
  23. /// 有道API语言
  24. /// </summary>
  25. public class GetYouDaoLanguages
  26. {
  27. /// <summary>
  28. /// 获取所有语言
  29. /// </summary>
  30. public List<YouDaoLanguageView> Luanguages
  31. {
  32. get
  33. {
  34. List<YouDaoLanguageView> _languages = new List<YouDaoLanguageView>() {
  35. //new YouDaoLanguageView { Name = "自动识别",Code = "auto" },
  36. new YouDaoLanguageView { Name = "中文",Code = "zh-CHS" },
  37. new YouDaoLanguageView { Name = "中文繁体",Code = "zh-CHT" },
  38. new YouDaoLanguageView { Name = "英文",Code = "en" },
  39. new YouDaoLanguageView { Name = "日文",Code = "ja" },
  40. new YouDaoLanguageView { Name = "韩文",Code = "ko" },
  41. new YouDaoLanguageView { Name = "法文",Code = "fr" },
  42. new YouDaoLanguageView { Name = "西班牙文",Code = "es" },
  43. new YouDaoLanguageView { Name = "葡萄牙文",Code = "pt" },
  44. new YouDaoLanguageView { Name = "意大利文",Code = "it" },
  45. new YouDaoLanguageView { Name = "俄文",Code = "ru" },
  46. new YouDaoLanguageView { Name = "越南文",Code = "vi" },
  47. new YouDaoLanguageView { Name = "德文",Code = "de" },
  48. new YouDaoLanguageView { Name = "阿拉伯文",Code = "ar" },
  49. new YouDaoLanguageView { Name = "印尼文",Code = "id" },
  50. new YouDaoLanguageView { Name = "南非荷兰语",Code = "af" },
  51. new YouDaoLanguageView { Name = "波斯尼亚语",Code = "bs" },
  52. new YouDaoLanguageView { Name = "保加利亚语",Code = "bg" },
  53. new YouDaoLanguageView { Name = "粤语",Code = "yue" },
  54. new YouDaoLanguageView { Name = "加泰隆语",Code = "ca" },
  55. new YouDaoLanguageView { Name = "克罗地亚语",Code = "hr" },
  56. new YouDaoLanguageView { Name = "捷克语",Code = "cs" },
  57. new YouDaoLanguageView { Name = "丹麦语",Code = "da" },
  58. new YouDaoLanguageView { Name = "荷兰语",Code = "nl" },
  59. new YouDaoLanguageView { Name = "爱沙尼亚语",Code = "et" },
  60. new YouDaoLanguageView { Name = "斐济语",Code = "fj" },
  61. new YouDaoLanguageView { Name = "芬兰语",Code = "fi" },
  62. new YouDaoLanguageView { Name = "希腊语",Code = "el" },
  63. new YouDaoLanguageView { Name = "海地克里奥尔语",Code = "ht" },
  64. new YouDaoLanguageView { Name = "希伯来语",Code = "he" },
  65. new YouDaoLanguageView { Name = "印地语",Code = "hi" },
  66. new YouDaoLanguageView { Name = "白苗语",Code = "mww" },
  67. new YouDaoLanguageView { Name = "匈牙利语",Code = "hu" },
  68. new YouDaoLanguageView { Name = "斯瓦希里语",Code = "sw" },
  69. new YouDaoLanguageView { Name = "克林贡语",Code = "tlh" },
  70. new YouDaoLanguageView { Name = "拉脱维亚语",Code = "lv" },
  71. new YouDaoLanguageView { Name = "立陶宛语",Code = "lt" },
  72. new YouDaoLanguageView { Name = "马来语",Code = "ms" },
  73. new YouDaoLanguageView { Name = "马耳他语",Code = "mt" },
  74. new YouDaoLanguageView { Name = "挪威语",Code = "no" },
  75. new YouDaoLanguageView { Name = "波斯语",Code = "fa" },
  76. new YouDaoLanguageView { Name = "波兰语",Code = "pl" },
  77. new YouDaoLanguageView { Name = "克雷塔罗奥托米语",Code = "otq" },
  78. new YouDaoLanguageView { Name = "罗马尼亚语",Code = "ro" },
  79. new YouDaoLanguageView { Name = "塞尔维亚语(西里尔文)",Code = "sr-Cyrl" },
  80. new YouDaoLanguageView { Name = "塞尔维亚语(拉丁文)",Code = "sr-Latn" },
  81. new YouDaoLanguageView { Name = "斯洛伐克语",Code = "sk" },
  82. new YouDaoLanguageView { Name = "斯洛文尼亚语",Code = "sl" },
  83. new YouDaoLanguageView { Name = "瑞典语",Code = "sv" },
  84. new YouDaoLanguageView { Name = "塔希提语",Code = "ty" },
  85. new YouDaoLanguageView { Name = "泰语",Code = "th" },
  86. new YouDaoLanguageView { Name = "汤加语",Code = "to" },
  87. new YouDaoLanguageView { Name = "土耳其语",Code = "tr" },
  88. new YouDaoLanguageView { Name = "乌克兰语",Code = "uk" },
  89. new YouDaoLanguageView { Name = "乌尔都语",Code = "ur" },
  90. new YouDaoLanguageView { Name = "威尔士语",Code = "cy" },
  91. new YouDaoLanguageView { Name = "尤卡坦玛雅语",Code = "yua" },
  92. new YouDaoLanguageView { Name = "阿尔巴尼亚语",Code = "sq" },
  93. new YouDaoLanguageView { Name = "阿姆哈拉语",Code = "am" },
  94. new YouDaoLanguageView { Name = "亚美尼亚语",Code = "hy" },
  95. new YouDaoLanguageView { Name = "阿塞拜疆语",Code = "az" },
  96. new YouDaoLanguageView { Name = "孟加拉语",Code = "bn" },
  97. new YouDaoLanguageView { Name = "巴斯克语",Code = "eu" },
  98. new YouDaoLanguageView { Name = "白俄罗斯语",Code = "be" },
  99. new YouDaoLanguageView { Name = "宿务语",Code = "ceb" },
  100. new YouDaoLanguageView { Name = "科西嘉语",Code = "co" },
  101. new YouDaoLanguageView { Name = "世界语",Code = "eo" },
  102. new YouDaoLanguageView { Name = "菲律宾语",Code = "tl" },
  103. new YouDaoLanguageView { Name = "弗里西语",Code = "fy" },
  104. new YouDaoLanguageView { Name = "加利西亚语",Code = "gl" },
  105. new YouDaoLanguageView { Name = "格鲁吉亚语",Code = "ka" },
  106. new YouDaoLanguageView { Name = "古吉拉特语",Code = "gu" },
  107. new YouDaoLanguageView { Name = "豪萨语",Code = "ha" },
  108. new YouDaoLanguageView { Name = "夏威夷语",Code = "haw" },
  109. new YouDaoLanguageView { Name = "冰岛语",Code = "is" },
  110. new YouDaoLanguageView { Name = "伊博语",Code = "ig" },
  111. new YouDaoLanguageView { Name = "爱尔兰语",Code = "ga" },
  112. new YouDaoLanguageView { Name = "爪哇语",Code = "jw" },
  113. new YouDaoLanguageView { Name = "卡纳达语",Code = "kn" },
  114. new YouDaoLanguageView { Name = "哈萨克语",Code = "kk" },
  115. new YouDaoLanguageView { Name = "高棉语",Code = "km" },
  116. new YouDaoLanguageView { Name = "库尔德语",Code = "ku" },
  117. new YouDaoLanguageView { Name = "柯尔克孜语",Code = "ky" },
  118. new YouDaoLanguageView { Name = "老挝语",Code = "lo" },
  119. new YouDaoLanguageView { Name = "拉丁语",Code = "la" },
  120. new YouDaoLanguageView { Name = "卢森堡语",Code = "lb" },
  121. new YouDaoLanguageView { Name = "马其顿语",Code = "mk" },
  122. new YouDaoLanguageView { Name = "马尔加什语",Code = "mg" },
  123. new YouDaoLanguageView { Name = "马拉雅拉姆语",Code = "ml" },
  124. new YouDaoLanguageView { Name = "毛利语",Code = "mi" },
  125. new YouDaoLanguageView { Name = "马拉地语",Code = "mr" },
  126. new YouDaoLanguageView { Name = "蒙古语",Code = "mn" },
  127. new YouDaoLanguageView { Name = "缅甸语",Code = "my" },
  128. new YouDaoLanguageView { Name = "尼泊尔语",Code = "ne" },
  129. new YouDaoLanguageView { Name = "齐切瓦语",Code = "ny" },
  130. new YouDaoLanguageView { Name = "普什图语",Code = "ps" },
  131. new YouDaoLanguageView { Name = "旁遮普语",Code = "pa" },
  132. new YouDaoLanguageView { Name = "萨摩亚语",Code = "sm" },
  133. new YouDaoLanguageView { Name = "苏格兰盖尔语",Code = "gd" },
  134. new YouDaoLanguageView { Name = "塞索托语",Code = "st" },
  135. new YouDaoLanguageView { Name = "修纳语",Code = "sn" },
  136. new YouDaoLanguageView { Name = "信德语",Code = "sd" },
  137. new YouDaoLanguageView { Name = "僧伽罗语",Code = "si" },
  138. new YouDaoLanguageView { Name = "索马里语",Code = "so" },
  139. new YouDaoLanguageView { Name = "巽他语",Code = "su" },
  140. new YouDaoLanguageView { Name = "塔吉克语",Code = "tg" },
  141. new YouDaoLanguageView { Name = "泰米尔语",Code = "ta" },
  142. new YouDaoLanguageView { Name = "泰卢固语",Code = "te" },
  143. new YouDaoLanguageView { Name = "乌兹别克语",Code = "uz" },
  144. new YouDaoLanguageView { Name = "南非科萨语",Code = "xh" },
  145. new YouDaoLanguageView { Name = "意第绪语",Code = "yi" },
  146. new YouDaoLanguageView { Name = "约鲁巴语",Code = "yo" },
  147. new YouDaoLanguageView { Name = "南非祖鲁语",Code = "zu" },
  148. };
  149. return _languages;
  150. }
  151. }
  152. }
  153. }