LanguageTemplateManager

Language

目前为 2024-10-19 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/513138/1467615/LanguageTemplateManager.js

  1. // 語言範本函數庫
  2. (function() {
  3. 'use strict';
  4. window.languageTemplates = function(lang) {
  5. if (lang.startsWith('zh-CN')) {
  6. return {
  7. templates: {
  8. "模版 1": "这是模版1的内容。",
  9. "模版 2": "这是模版2的内容。",
  10. "模版 3": "这是模版3的内容。",
  11. "模版 4": "这是模版4的内容。",
  12. "模版 5": "这是模版5的内容。"
  13. },
  14. alerts: {
  15. saveSuccess: "模版已保存!",
  16. deleteConfirm: "确定要删除选中的模版吗?",
  17. deleteSuccess: "模版已删除!",
  18. editorNotFound: "未找到具体的编辑器区域元素",
  19. iframeNotFound: "未找到 iframe 元素",
  20. enterTemplateName: "请输入模版名称!"
  21. },
  22. buttons: {
  23. save: "保存模版",
  24. delete: "删除模版"
  25. }
  26. };
  27. } else if (lang.startsWith('zh')) {
  28. return {
  29. templates: {
  30. "範本 1": "這是範本1的內容。",
  31. "範本 2": "這是範本2的內容。",
  32. "範本 3": "這是範本3的內容。",
  33. "範本 4": "這是範本4的內容。",
  34. "範本 5": "這是範本5的內容。"
  35. },
  36. alerts: {
  37. saveSuccess: "範本已保存!",
  38. deleteConfirm: "確定要刪除選中的範本嗎?",
  39. deleteSuccess: "範本已刪除!",
  40. editorNotFound: "未找到具體的編輯器區域元素",
  41. iframeNotFound: "未找到 iframe 元素",
  42. enterTemplateName: "請輸入範本名稱!"
  43. },
  44. buttons: {
  45. save: "保存範本",
  46. delete: "刪除範本"
  47. }
  48. };
  49. } else if (lang.startsWith('en')) {
  50. return {
  51. templates: {
  52. "Template 1": "This is the content of Template 1.",
  53. "Template 2": "This is the content of Template 2.",
  54. "Template 3": "This is the content of Template 3.",
  55. "Template 4": "This is the content of Template 4.",
  56. "Template 5": "This is the content of Template 5."
  57. },
  58. alerts: {
  59. saveSuccess: "Template saved!",
  60. deleteConfirm: "Are you sure you want to delete the selected template?",
  61. deleteSuccess: "Template deleted!",
  62. editorNotFound: "Editor area element not found",
  63. iframeNotFound: "Iframe element not found",
  64. enterTemplateName: "Please enter a template name!"
  65. },
  66. buttons: {
  67. save: "Save Template",
  68. delete: "Delete Template"
  69. }
  70. };
  71. } else if (lang.startsWith('ja')) {
  72. return {
  73. templates: {
  74. "テンプレート 1": "これはテンプレート1の内容です。",
  75. "テンプレート 2": "これはテンプレート2の内容です。",
  76. "テンプレート 3": "これはテンプレート3の内容です。",
  77. "テンプレート 4": "これはテンプレート4の内容です。",
  78. "テンプレート 5": "これはテンプレート5の内容です。"
  79. },
  80. alerts: {
  81. saveSuccess: "テンプレートが保存されました!",
  82. deleteConfirm: "選択したテンプレートを削除しますか?",
  83. deleteSuccess: "テンプレートが削除されました!",
  84. editorNotFound: "エディターエリアが見つかりません",
  85. iframeNotFound: "iframeが見つかりません",
  86. enterTemplateName: "テンプレート名を入力してください!"
  87. },
  88. buttons: {
  89. save: "テンプレートを保存",
  90. delete: "テンプレートを削除"
  91. }
  92. };
  93. } else {
  94. return {
  95. templates: {
  96. "Template 1": "This is the content of Template 1.",
  97. "Template 2": "This is the content of Template 2.",
  98. "Template 3": "This is the content of Template 3.",
  99. "Template 4": "This is the content of Template 4.",
  100. "Template 5": "This is the content of Template 5."
  101. },
  102. alerts: {
  103. saveSuccess: "Template saved!",
  104. deleteConfirm: "Are you sure you want to delete the selected template?",
  105. deleteSuccess: "Template deleted!",
  106. editorNotFound: "Editor area element not found",
  107. iframeNotFound: "Iframe element not found",
  108. enterTemplateName: "Please enter a template name!"
  109. },
  110. buttons: {
  111. save: "Save Template",
  112. delete: "Delete Template"
  113. }
  114. };
  115. }
  116. };
  117. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址