Ver código fonte

fix: clarify that `synchronous` is for page mode

tophf 4 anos atrás
pai
commit
6815399972

+ 4 - 3
src/_locales/en/messages.yml

@@ -502,10 +502,11 @@ labelViewTable:
   description: Label for option in dashboard script list to show the scripts as a table.
   message: Table view
 labelXhrInject:
-  description: NEW_LOCALE_ITEM
-  message: Synchronous
+  description: >-
+    (`$1` will be shown as `page`) Option in Advanced settings to enable synchronous injection.
+  message: Synchronous $1 mode
 labelXhrInjectHint:
-  description: NEW_LOCALE_ITEM
+  description: Tooltip of the `Synchronous page mode` option in Advanced settings.
   message: >-
     Enable only if you have a script that needs to run before the page starts
     loading and currently it's running too late. Just like Instant injection

+ 3 - 1
src/options/views/tab-settings/index.vue

@@ -104,7 +104,9 @@
           <label>
             <setting-check name="xhrInject"/>
             <tooltip :content="i18n('labelXhrInjectHint')">
-              <span v-text="i18n('labelXhrInject')"/>
+              <locale-group i18n-key="labelXhrInject">
+                <code>page</code>
+              </locale-group>
             </tooltip>
           </label>
         </div>