Преглед на файлове

chore: pull translated messages

Gerald преди 5 години
родител
ревизия
216e0da199
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      scripts/transifex.js

+ 3 - 1
scripts/transifex.js

@@ -42,7 +42,9 @@ async function getLanguages() {
 }
 }
 
 
 async function loadRemote(lang) {
 async function loadRemote(lang) {
-  const result = await transifexRequest(`/api/2/project/violentmonkey-nex/resource/messagesjson/translation/${lang}/?mode=onlyreviewed`);
+  // Reference: https://docs.transifex.com/api/translations#downloading-and-uploading-translations
+  // Use translated messages since we don't have enough reviewers
+  const result = await transifexRequest(`/api/2/project/violentmonkey-nex/resource/messagesjson/translation/${lang}/?mode=onlytranslated`);
   const reviewed = JSON.parse(result.content);
   const reviewed = JSON.parse(result.content);
   return reviewed;
   return reviewed;
 }
 }