Lint the use of data-i18n attributes
| @@ -820,8 +820,8 @@ | ||
| 820 | 820 | </div> |
| 821 | 821 | </div> |
| 822 | 822 | <div class="range-block m-t-1"> |
| 823 | 823 | <div class="range-block-title openai_restorable" data-i18n="World Info Format Template"> |
| 824 | 824 | <span data-i18n="World Info Format Template">World Info format template</span> |
| 825 | 825 | <div id="wi_format_restore" data-i18n="[title]Restore default format" title="Restore default format" class="right_menu_button"> |
| 826 | 826 | <div class="fa-solid fa-clock-rotate-left"></div> |
| 827 | 827 | </div> |
| @@ -1524,15 +1524,15 @@ | ||
| 1524 | 1524 | <div class=""> |
| 1525 | 1525 | <label class="checkbox_label" for="early_stopping_textgenerationwebui"> |
| 1526 | 1526 | <input type="checkbox" id="early_stopping_textgenerationwebui" /> |
| 1527 | 1527 | <small data-i18n="Early Stopping">Early Stopping</small> |
| 1528 | 1528 | <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]Controls the stopping condition for beam search. If checked, the generation stops as soon as there are '# of Beams' sequences. If not checked, a heuristic is applied and the generation is stopped when it's very unlikely to find better candidates." title="Controls the stopping condition for beam search. If checked, the generation stops as soon as there are '# of Beams' sequences. If not checked, a heuristic is applied and the generation is stopped when it's very unlikely to find better candidates."></div> |
| 1529 | - </small> | |
| 1530 | 1529 | </label> |
| 1531 | 1530 | </div> |
| 1532 | 1531 | </div> |
| 1533 | 1532 | </div> |
| 1534 | 1533 | <div data-tg-type="ooba" id="contrastiveSearchBlock" name="contrastiveSearchBlock" class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0"> |
| 1535 | 1534 | <h4 class="textAlignCenter" data-i18n="Contrastive search">Contrastive Search |
| 1535 | + <span data-i18n="Contrastive search">Contrastive Search</span> | |
| 1536 | 1536 | <div class=" fa-solid fa-circle-info opacity50p " data-i18n="Contrastive_search_txt" title="A sampler that encourages diversity while maintaining coherence, by exploiting the isotropicity of the representation space of most LLMs. For details, see the paper A Contrastive Framework for Neural Text Generation by Su et al. (2022)."></div> |
| 1537 | 1537 | </h4> |
| 1538 | 1538 | <div class="alignitemscenter flex-container flexFlowColumn wide100p gap0"> |
| @@ -1566,9 +1566,8 @@ | ||
| 1566 | 1566 | </label> |
| 1567 | 1567 | <label data-tg-type="vllm, aphrodite, infermaticai" class="checkbox_label" for="ignore_eos_token_textgenerationwebui"> |
| 1568 | 1568 | <input type="checkbox" id="ignore_eos_token_textgenerationwebui" /> |
| 1569 | 1569 | <small data-i18n="Ignore EOS Token">Ignore EOS Token</small> |
| 1570 | 1570 | <div class="fa-solid fa-circle-info opacity50p " data-i18n="[title]Ignore the EOS Token even if it generates." title="Ignore the EOS Token even if it generates."></div> |
| 1571 | - </small> | |
| 1572 | 1571 | </label> |
| 1573 | 1572 | <label class="checkbox_label flexGrow flexShrink" for="skip_special_tokens_textgenerationwebui"> |
| 1574 | 1573 | <input type="checkbox" id="skip_special_tokens_textgenerationwebui" /> |
| @@ -1629,7 +1628,8 @@ | ||
| 1629 | 1628 | </div> |
| 1630 | 1629 | <div id="cfg_block_ooba" data-tg-type="ooba, tabby" class="wide100p"> |
| 1631 | 1630 | <hr class="width100p"> |
| 1632 | 1631 | <h4 data-i18n="CFG" class="textAlignCenter">CFG |
| 1632 | + <span data-i18n="CFG">CFG</span> | |
| 1633 | 1633 | <div class="margin5 fa-solid fa-circle-info opacity50p " data-i18n="[title]Classifier Free Guidance. More helpful tip coming soon" title="Classifier Free Guidance. More helpful tip coming soon."></div> |
| 1634 | 1634 | </h4> |
| 1635 | 1635 | <div class="alignitemscenter flex-container flexFlowColumn flexShrink gap0"> |
| @@ -1965,8 +1965,10 @@ | ||
| 1965 | 1965 | <div id="logit_bias_openai" class="range-block-title openai_restorable" data-i18n="Logit Bias"> |
| 1966 | 1966 | Logit Bias |
| 1967 | 1967 | </div> |
| 1968 | 1968 | <div class="toggle-description justifyLeft" data-i18n="Helps to ban or reenforce the usage of certain words"> |
| 1969 | 1969 | <span data-i18n="Helps to ban or reinforcereenforce the usage of certain tokens.words">Helps Confirmto tokenban parsingor withreinforce <athe target="_blank"usage href="https://platform.openaiof certain tokens.com/tokenizer/">Tokenizer</aspan>. |
| 1970 | + <span data-i18n="Confirm token parsing with">Confirm token parsing with</span> | |
| 1971 | + <a target="_blank" href="https://platform.openai.com/tokenizer/" data-i18n="Tokenizer">Tokenizer</a>. | |
| 1970 | 1972 | </div> |
| 1971 | 1973 | <div class="openai_logit_bias_preset_form"> |
| 1972 | 1974 | <select id="openai_logit_bias_preset"> |
| @@ -2267,8 +2269,8 @@ | ||
| 2267 | 2269 | <div data-tg-type="mancer" class="flex-container flexFlowColumn"> |
| 2268 | 2270 | <div class="flex-container flexFlowColumn"> |
| 2269 | 2271 | </div> |
| 2270 | - <h4 data-i18n="Mancer API key"> | |
| 2272 | + <h4> | |
| 2271 | - Mancer API key | |
| 2273 | + <span data-i18n="Mancer API key">Mancer API key</span> | |
| 2272 | 2274 | <a href="https://mancer.tech/" class="notes-link" target="_blank"> |
| 2273 | 2275 | <span class="fa-solid fa-circle-question note-link-span"></span> |
| 2274 | 2276 | </a> |
| @@ -2615,8 +2617,9 @@ | ||
| 2615 | 2617 | </div> |
| 2616 | 2618 | <div class="toggle-description justifyLeft"> |
| 2617 | 2619 | <span data-i18n="Saved addresses and passwords."> |
| 2618 | 2620 | Saved addresses and passwords.<br> |
| 2619 | 2621 | </span> |
| 2622 | + <br> | |
| 2620 | 2623 | </div> |
| 2621 | 2624 | <div class="openai_logit_bias_preset_form"> |
| 2622 | 2625 | <select id="openai_proxy_preset"> |
| @@ -2629,8 +2632,9 @@ | ||
| 2629 | 2632 | </div> |
| 2630 | 2633 | <div class="toggle-description justifyLeft"> |
| 2631 | 2634 | <span data-i18n="This will show up as your saved preset."> |
| 2632 | 2635 | This will show up as your saved preset.<br> |
| 2633 | 2636 | </span> |
| 2637 | + <br> | |
| 2634 | 2638 | </div> |
| 2635 | 2639 | <div class="wide100p"> |
| 2636 | 2640 | <input id="openai_reverse_proxy_name" type="text" class="text_pole" placeholder="..." /> |
| @@ -2640,8 +2644,9 @@ | ||
| 2640 | 2644 | </div> |
| 2641 | 2645 | <div class="toggle-description justifyLeft wide100p"> |
| 2642 | 2646 | <span data-i18n="Alternative server URL (leave empty to use the default value)."> |
| 2643 | 2647 | Alternative server URL (leave empty to use the default value).<br> |
| 2644 | 2648 | </span> |
| 2649 | + <br> | |
| 2645 | 2650 | </div> |
| 2646 | 2651 | <div class="wide100p"> |
| 2647 | 2652 | <input id="openai_reverse_proxy" type="text" class="text_pole" placeholder="https://api.openai.com/v1" /> |
| @@ -2654,8 +2659,9 @@ | ||
| 2654 | 2659 | </div> |
| 2655 | 2660 | <div class="toggle-description justifyLeft"> |
| 2656 | 2661 | <span data-i18n="Will be used as a password for the proxy instead of API key."> |
| 2657 | 2662 | Will be used as a password for the proxy instead of API key.<br> |
| 2658 | 2663 | </span> |
| 2664 | + <br> | |
| 2659 | 2665 | </div> |
| 2660 | 2666 | <div class="flex-container width100p"> |
| 2661 | 2667 | <input id="openai_proxy_password" type="password" class="text_pole flex1" placeholder="" form="openai_form" autocomplete="off" /> |
| @@ -3743,7 +3749,11 @@ | ||
| 3743 | 3749 | <div id="wiTopBlock" class="flex-container"> |
| 3744 | 3750 | <div id="WIMultiSelector" class="flex1 flex alignSelfStart range-block"> |
| 3745 | 3751 | <div class="range-block-title justifyLeft"> |
| 3746 | - <span data-i18n="Active World(s) for all chats"><small>Active World(s) for all chats</small></span> | |
| 3752 | + <span> | |
| 3753 | + <small data-i18n="Active World(s) for all chats"> | |
| 3754 | + Active World(s) for all chats | |
| 3755 | + </small> | |
| 3756 | + </span> | |
| 3747 | 3757 | </div> |
| 3748 | 3758 | <div class="range-block-range"> |
| 3749 | 3759 | <select id="world_info" class="select2_multi_sameline" multiple> |
| @@ -4068,7 +4078,10 @@ | ||
| 4068 | 4078 | |
| 4069 | 4079 | <div class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0"> |
| 4070 | 4080 | <small> |
| 4071 | - <span data-i18n="Chat Width">Chat Width <i class="fa-solid fa-desktop"></i></span> | |
| 4081 | + <span> | |
| 4082 | + <span data-i18n="Chat Width">Chat Width</span> | |
| 4083 | + <i class="fa-solid fa-desktop"></i> | |
| 4084 | + </span> | |
| 4072 | 4085 | <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]Width of the main chat window in % of screen width" title="Width of the main chat window in % of screen width"></div> |
| 4073 | 4086 | </small> |
| 4074 | 4087 | <input class="neo-range-slider" type="range" id="chat_width_slider" name="chat_width_slider" min="25" max="100" step="1"> |
| @@ -4240,7 +4253,7 @@ | ||
| 4240 | 4253 | <div id="reload_chat" class="menu_button whitespacenowrap" data-i18n="[title]Reload and redraw the currently open chat" title="Reload and redraw the currently open chat."> |
| 4241 | 4254 | <small data-i18n="Reload Chat">Reload Chat</small> |
| 4242 | 4255 | </div> |
| 4243 | 4256 | <div id="debug_menu" class="menu_button whitespacenowrap" data-i18n="Debug Menu"> |
| 4244 | 4257 | <small data-i18n="Debug Menu">Debug Menu</small> |
| 4245 | 4258 | </div> |
| 4246 | 4259 | </div> |
| @@ -4359,8 +4372,10 @@ | ||
| 4359 | 4372 | </div> |
| 4360 | 4373 | </div> |
| 4361 | 4374 | <div id="examples-behavior-block"> |
| 4362 | - <label data-i18n="Example Messages Behavior"> | |
| 4375 | + <label> | |
| 4363 | 4376 | <small> data-i18n="Example Messages Behavior:</small"> |
| 4377 | + Example Messages Behavior: | |
| 4378 | + </small> | |
| 4364 | 4379 | </label> |
| 4365 | 4380 | <select id="example_messages_behavior"> |
| 4366 | 4381 | <option value="normal" data-i18n="Gradual push-out">Gradual push-out</option> |
| @@ -4524,7 +4539,9 @@ | ||
| 4524 | 4539 | </label> |
| 4525 | 4540 | <div class="flex-container"> |
| 4526 | 4541 | <div class="flex1" title="Determines how entries are found for autocomplete." data-i18n="[title]Determines how entries are found for autocomplete."> |
| 4527 | - <label for="stscript_matching" data-i18n="Autocomplete Matching"><small>Matching</small></label> | |
| 4542 | + <label for="stscript_matching"> | |
| 4543 | + <small data-i18n="Autocomplete Matching">Matching</small> | |
| 4544 | + </label> | |
| 4528 | 4545 | <select id="stscript_matching"> |
| 4529 | 4546 | <option data-i18n="Starts with" value="strict">Starts with</option> |
| 4530 | 4547 | <option data-i18n="Includes" value="includes">Includes</option> |
| @@ -4532,7 +4549,9 @@ | ||
| 4532 | 4549 | </select> |
| 4533 | 4550 | </div> |
| 4534 | 4551 | <div class="flex1" title="Sets the style of the autocomplete." data-i18n="[title]Sets the style of the autocomplete."> |
| 4535 | - <label for="stscript_autocomplete_style" data-i18n="Autocomplete Style"><small>Style</small></label> | |
| 4552 | + <label for="stscript_autocomplete_style"> | |
| 4553 | + <small data-i18n="Autocomplete Style">Style</small> | |
| 4554 | + </label> | |
| 4536 | 4555 | <div class="flex-container flexFlowRow alignItemsBaseline"> |
| 4537 | 4556 | <select id="stscript_autocomplete_style"> |
| 4538 | 4557 | <option data-i18n="Follow Theme" value="theme">Follow Theme</option> |
| @@ -4544,8 +4563,8 @@ | ||
| 4544 | 4563 | </div> |
| 4545 | 4564 | </div> |
| 4546 | 4565 | <div title="Determines which keys select an item from the AutoComplete suggestions"> |
| 4547 | 4566 | <label data-i18n="Keyboard"> |
| 4548 | 4567 | <small data-i18n="Keyboard">Keyboard:</small> |
| 4549 | 4568 | </label> |
| 4550 | 4569 | <select id="stscript_autocomplete_select"> |
| 4551 | 4570 | <option value="3" data-i18n="Select with Tab or Enter">Select with Tab or Enter</option> |
| @@ -4559,7 +4578,9 @@ | ||
| 4559 | 4578 | <input class="neo-range-input" type="number" min="0.5" max="2" step="0.01" data-for="stscript_autocomplete_font_scale" id="stscript_autocomplete_font_scale_counter"> |
| 4560 | 4579 | </div> |
| 4561 | 4580 | <div title="Sets the width of the autocomplete." data-i18n="[title]Sets the width of the autocomplete."> |
| 4562 | - <label for="stscript_autocomplete_width" data-i18n="Autocomplete Width"><small>Width</small></label> | |
| 4581 | + <label for="stscript_autocomplete_width"> | |
| 4582 | + <small data-i18n="Autocomplete Width">Width</small> | |
| 4583 | + </label> | |
| 4563 | 4584 | <div class="doubleRangeContainer"> |
| 4564 | 4585 | <div class="doubleRangeInputContainer"> |
| 4565 | 4586 | <input type="range" id="stscript_autocomplete_width_left" min="0" max="2" step="1"> |
| @@ -4587,14 +4608,18 @@ | ||
| 4587 | 4608 | <label><small data-i18n="Parser Flags">Parser Flags</small></label> |
| 4588 | 4609 | <label class="checkbox_label" title="Switch to stricter escaping, allowing all delimiting characters to be escaped with a backslash, and backslashes to be escaped as well." data-i18n="[title]Switch to stricter escaping, allowing all delimiting characters to be escaped with a backslash, and backslashes to be escaped as well."> |
| 4589 | 4610 | <input id="stscript_parser_flag_strict_escaping" type="checkbox" /> |
| 4590 | - <span data-i18n="STRICT_ESCAPING"><small>STRICT_ESCAPING</small></span> | |
| 4611 | + <span> | |
| 4612 | + <small data-i18n="STRICT_ESCAPING">STRICT_ESCAPING</small> | |
| 4613 | + </span> | |
| 4591 | 4614 | <a href="https://docs.sillytavern.app/usage/st-script/#strict-escaping" target="_blank" class="notes-link"> |
| 4592 | 4615 | <span class="fa-solid fa-circle-question note-link-span"></span> |
| 4593 | 4616 | </a> |
| 4594 | 4617 | </label> |
| 4595 | 4618 | <label class="checkbox_label" title="Prevents {{getvar::}} {{getglobalvar::}} macros from having literal macro-like values auto-evaluated.
e.g. "{{newline}}" remains as literal string "{{newline}}"

(This is done by internally replacing {{getvar::}} {{getglobalvar::}} macros with scoped variables.)" data-i18n="[title]stscript_parser_flag_replace_getvar_label"> |
| 4596 | 4619 | <input id="stscript_parser_flag_replace_getvar" type="checkbox" /> |
| 4597 | - <span data-i18n="REPLACE_GETVAR"><small>REPLACE_GETVAR</small></span> | |
| 4620 | + <span> | |
| 4621 | + <small data-i18n="REPLACE_GETVAR">REPLACE_GETVAR</small> | |
| 4622 | + </span> | |
| 4598 | 4623 | <a href="https://docs.sillytavern.app/usage/st-script/#replace-variable-macros" target="_blank" class="notes-link"> |
| 4599 | 4624 | <span class="fa-solid fa-circle-question note-link-span"></span> |
| 4600 | 4625 | </a> |
| @@ -4725,10 +4750,12 @@ | ||
| 4725 | 4750 | <div class="flex-container wide100p alignitemscenter spaceBetween flexNoGap"> |
| 4726 | 4751 | <div class="flex-container alignItemsBaseline wide100p"> |
| 4727 | 4752 | <div class="flex1 flex-container alignItemsBaseline"> |
| 4728 | 4753 | <h3 class="margin0" data-i18n="Persona Management">Persona Management</h3> |
| 4729 | - <a href="https://docs.sillytavern.app/usage/core-concepts/personas/" target="_blank" data-i18n="How do I use this?"> | |
| 4754 | + <span data-i18n="Persona Management">Persona Management</span> | |
| 4755 | + <a href="https://docs.sillytavern.app/usage/core-concepts/personas/" target="_blank"> | |
| 4730 | 4756 | <span class="fa-solid fa-circle-question note-link-span"></span> |
| 4731 | 4757 | </a> |
| 4758 | + </h3> | |
| 4732 | 4759 | </div> |
| 4733 | 4760 | <div class="flex-container"> |
| 4734 | 4761 | <div class="menu_button menu_button_icon user_stats_button" data-i18n="[title]Click for stats!" title="Click for stats!"> |
| @@ -5449,7 +5476,12 @@ | ||
| 5449 | 5476 | <span data-i18n="Examples of dialogue" class="mdhotkey_location">Examples of dialogue</span> |
| 5450 | 5477 | <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="mes_example_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i> |
| 5451 | 5478 | </h4> |
| 5452 | - <h5 data-i18n="Important to set the character's writing style.">Important to set the character's writing style. <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#examples-of-dialogue" class="notes-link" target="_blank"><span class="fa-solid fa-circle-question note-link-span"></span></a></h5> | |
| 5479 | + <h5> | |
| 5480 | + <span data-i18n="Important to set the character's writing style.">Important to set the character's writing style.</span> | |
| 5481 | + <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#examples-of-dialogue" class="notes-link" target="_blank"> | |
| 5482 | + <span class="fa-solid fa-circle-question note-link-span"></span> | |
| 5483 | + </a> | |
| 5484 | + </h5> | |
| 5453 | 5485 | </div> |
| 5454 | 5486 | <textarea id="mes_example_textarea" class="flexGrow mdHotkeys" name="mes_example" data-i18n="[placeholder](Examples of chat dialog. Begin each example with START on a new line.)" placeholder="(Examples of chat dialog. Begin each example with <START> on a new line.)" form="form_create" rows="6"></textarea> |
| 5455 | 5487 | <div class="extension_token_counter"> |
| @@ -5525,7 +5557,8 @@ | ||
| 5525 | 5557 | <div class="character_world range-block flexFlowColumn flex-container"> |
| 5526 | 5558 | <div class="range-block-title"> |
| 5527 | 5559 | <h3> |
| 5528 | 5560 | <span data-i18n="Select a World Info file for"> Select a World Info file for <span class="character_name"></span></span>: |
| 5561 | + <span class="character_name"></span>: | |
| 5529 | 5562 | </h3> |
| 5530 | 5563 | </div> |
| 5531 | 5564 | <h4 data-i18n="Primary Lorebook">Primary Lorebook</h4> |
| @@ -5826,7 +5859,7 @@ | ||
| 5826 | 5859 | </div> |
| 5827 | 5860 | <div class="flex2 flex-container flexFlowColumn flexNoGap" data-i18n="[title]Sticky entries will stay active for N messages after being triggered." title="Sticky entries will stay active for N messages after being triggered."> |
| 5828 | 5861 | <div class="flex-container justifySpaceBetween marginBot5"> |
| 5829 | 5862 | <small class="flex-container alignItemsBaseline" for="sticky" data-i18n="Sticky"> |
| 5830 | 5863 | <span data-i18n="Sticky"> |
| 5831 | 5864 | Sticky |
| 5832 | 5865 | </span> |
| @@ -5839,7 +5872,7 @@ | ||
| 5839 | 5872 | </div> |
| 5840 | 5873 | <div class="flex2 flex-container flexFlowColumn flexNoGap" data-i18n="[title]Entries with a cooldown can't be activated N messages after being triggered." title="Entries with a cooldown can't be activated N messages after being triggered."> |
| 5841 | 5874 | <div class="flex-container justifySpaceBetween marginBot5"> |
| 5842 | 5875 | <small class="flex-container alignItemsBaseline" for="cooldown" data-i18n="Cooldown"> |
| 5843 | 5876 | <span data-i18n="Cooldown"> |
| 5844 | 5877 | Cooldown |
| 5845 | 5878 | </span> |
| @@ -5852,7 +5885,7 @@ | ||
| 5852 | 5885 | </div> |
| 5853 | 5886 | <div class="flex2 flex-container flexFlowColumn flexNoGap" data-i18n="[title]Entries with a delay can't be activated until there are N messages present in the chat." title="Entries with a delay can't be activated until there are N messages present in the chat."> |
| 5854 | 5887 | <div class="flex-container justifySpaceBetween marginBot5"> |
| 5855 | 5888 | <small class="flex-container alignItemsBaseline" for="delay" data-i18n="Delay"> |
| 5856 | 5889 | <span data-i18n="Delay"> |
| 5857 | 5890 | Delay |
| 5858 | 5891 | </span> |
| @@ -40,7 +40,7 @@ | ||
| 40 | 40 | <div class="expression_fallback_block m-b-1 m-t-1"> |
| 41 | 41 | <label for="expression_fallback" data-i18n="Default / Fallback Expression">Default / Fallback Expression</label> |
| 42 | 42 | <small data-i18n="Set the default and fallback expression being used when no matching expression is found.">Set the default and fallback expression being used when no matching expression is found.</small> |
| 43 | 43 | <select id="expression_fallback" class="flex1 margin0" data-i18n="Fallback Expression" placeholder="Fallback Expression"></select> |
| 44 | 44 | </div> |
| 45 | 45 | <div class="expression_custom_block m-b-1 m-t-1"> |
| 46 | 46 | <label for="expression_custom" data-i18n="Custom Expressions">Custom Expressions</label> |
| @@ -57,7 +57,7 @@ | ||
| 57 | 57 | </div> |
| 58 | 58 | <div id="playback_rate_block" class="range-block"> |
| 59 | 59 | <hr> |
| 60 | 60 | <div class="range-block-title justifyLeft" data-i18n="Audio Playback Speed"> |
| 61 | 61 | <small data-i18n="Audio Playback Speed">Audio Playback Speed</small> |
| 62 | 62 | </div> |
| 63 | 63 | <div class="range-block-range-and-counter"> |